Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

ExtendedTextCell - Text not appearing?

$
0
0

I am trying to use the Xamarin.Labs ExtendedTextCell in a list. In the following simple code, the list binds to the correct number of cells, but no text is displayed. Am I missing something simple here?

        var itemTemplate = new DataTemplate(typeof(ExtendedTextCell));
        itemTemplate.SetBinding(ExtendedTextCell.TextProperty, "Text");

        var list = new ListView()
        {
            ItemsSource = new List<ExtendedTextCellItem>
            {
                new ExtendedTextCellItem(){Text ="Global Indicies", TextColor = Color.Blue},
                new ExtendedTextCellItem(){Text ="Energy (USD$)"}, 
            },
            ItemTemplate = itemTemplate  ,
            HasUnevenRows = true,
            VerticalOptions = LayoutOptions.FillAndExpand
        };

        Content = list;

Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>