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

List View not listens to XAML but Sized as number of initial itemssource.

$
0
0

I have listview. It's Vertical and Horizontal Options are fill in Xaml.
I am setting it's source as somelist in OnAppearing Window.
protected override void OnAppearing() { base.OnAppearing(); ((ListView)FindByName("attributesList")).ItemsSource = d.attributes; }
Listview will size itself as number of items in attributes. If two list view will be size of two rows. If something added it scrolls but size is of only two rows. If initially there is no item. Nothing is shown. If I comment this Itemssource line, The list will expand on whole page as needed.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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