Jump to: navigation, search

Changes


XAML Tips

1,049 bytes added, 12 January
/* FlipView */
VirtualizingStackPanel.VirtualizationMode offers two possibilities: Standard & Recycling. In case you are interested, here are their [https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.virtualizationmode?view=netframework-4.7.2 differences].
 
=== Delayed loading {{Version/WinXSince|4.7}} ===
By default the FlipView control (UWP only) doesn't have a delayed loading mechanism.
Imagine if you flip through a large list of documents quickly, the control would actually end up loading every single one of them even if you just want to look at the content of the last one. This has a very negative effect that the app wastes a lot of resources loading documents for nothing, while struggling to display the content you care about. In some extreme case, this can even lead to an app hang/crash.
 
We added such a delayed loading mechanism to this control. With it, the item content only starts to load when you stay on it for a while (1 second). If you are using the content of UBIKDocumentFlipView.xaml from an older version (before 4.7) and therefore experience such a performance/stability issue, please check the FlipView related section in the newer default templates of it.
=== Auto saving {{Version/WinXSince|4.6}} ===
</tabs>
[[Category:Client|XAML Tips]]
[[Category:Mobile|XAML Tips]]
[[Category:WinX|XAML Tips]]
[[Category:XAML|XAML Tips]]
== Platform and Device-specific UI with OnPlatform and OnIdiom {{Version/MobileSince|5.0}} ==