简体   繁体   中英

First ListView item doesnt displayed Windows Phone 8.1

i've got a problem described here ListView in Windows Phone 8.1 Wobbles while scrolling though long list (XAML)

So im solve that problem by that link, but when i add to my XAML DataTemplate ListView Grid Width="{Binding ActualWidth, ElementName=Content}" and after that, 1st item of ListView dosent displayed, its not rendring at all... how can i solve that?

I believe that is caused because you are estabish the itemsource of "Content" in an very earlier event(like LoadState event). It is possible that the ActualWidth is 0.0 when it tries to bind the first item.

So try to assign itemsource in event like page's loaded event to make sure the ActualWidth has a valid value.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM