Changes

XAML Tips

651 bytes added, 16 April
/* FlipView */
</source>
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]. ==== Auto saving {{Version/WinXSince|4.6}} ====
Unsaved changes on the document (e.g. Annotations) are gonna be saved and committed automatically when flipping the page in the FlipView.
{{Attention|Changes are lost when leaving the page without flipping the document first.}}
{{Version/WinXSince|4.7}} {{Version/XamarinSince|4.7}} If you want to keep the changes when leaving the page by e.g. navigating away without flipping the document first, there is a boolean property called ''AutoSaveDocumentsOnPageClose'' (default value: false) which enables this behavior. It can be activated by adding the property to the UBIKThemes.xaml as follows:
<tabs>
<tab name="UWP">
<source lang = "xml">
<x:String x:Key="AutoSaveDocumentsOnPageClose">true</x:String>
</source>
</tab>
<tab name="Xamarin"><source lang = "xml">VirtualizingStackPanel.VirtualizationMode offers two possibilities<x: Standard & Recycling. In case you are interested, here are their [httpsString x:Key="AutoSaveDocumentsOnPageClose">true</x:String></docs.microsoft.comsource></en-ustab></dotnet/api/system.windows.controls.virtualizationmode?view=netframework-4.7.2 differences].tabs>
[[Category:Client|XAML Tips]]
257
edits