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

ListView not showing up in Windows Phone?

$
0
0

I have a page with some labels, a picture and a listview. My contents are long so I'm using a scrollview to wrap all the contents. While doing so the items in the list start to disappear, it's like they don't render. The same code works fine on iOS. I have attached screenshots to explain what's happening. Any kind of help is appreciated.

      if (Device.OS == TargetPlatform.iOS || Device.OS == TargetPlatform.WinPhone)
        {
          StackLayout  PageUI = new StackLayout
            {
                VerticalOptions = LayoutOptions.Start,
                Children = 
                {
                    EntityTitleLabel,
                    new StackLayout 
                    {
                        Padding = new Thickness (0, -7, 8, 0),
                        Spacing = -1,
                        Children = 
                        {
                            EntityGroupHeaderLabel,
                        },
                    },
                    EntityImage,
                    EntityDescriptionLabel,
                                detailListView,     //  <== LISTVIEW DOING WEIRD STUFF
                },
            };

            //=====================================SCROLL=========================================================
            ScrollView ContentPanel = new ScrollView { Padding = 10, Content = PageUI };

image
image


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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