Jump to: navigation, search

Changes


XAML Tips

484 bytes added, 14 May
/* Default Tab Selection */
<br>
== TabView == === UI virtualization ===When using the TabView control in your XAML code, UI virtualization can greatly improve initial loading performance, based on the scenario.Here's how to enable it: <tabs><tab name="Xamarin"><source lang = "xml"><tabView:SfTabView EnableVirtualization="true"> ...</tabView:SfTabView></source></tab></tabs> === Default Tab Selection ===
The tab selection in UBIKContentView defaults to the first tab, which is Children objects. However, for cases where it makes more sense to display Properties or Documents by default, it is possible to change the tab selection using the following classifications:
* [[SYSCLS_SHOWDOCUMENTS]]
* [[SYSCLS_SHOWPROPERTIES]]
{{Attention| <tabs><tab name="UWP">Adding the classification to a metaclass is enough for UWP. However, </tab><tab name="Xamarin">Xamarin currently requires additional customizing to make use of the TabSelector property.}}  ==== Implementation in Xamarin ====One approach is to add a DataTrigger to the SfTabView found in UBIKContentArea that is triggered by the value of the TabSelector property, as shown below;
<source lang = "xml">
<tabView:SfTabView VisibleHeaderCount="3" >
</tabView:SfTabView>
</source>
</tab>
</tabs>
<br>
<br>
 
[[Category:Client|XAML Tips]]
[[Category:WinX|XAML Tips]]
[[Category:XAML|XAML Tips]]
[[Category:Xamarin|XAML Tips]]
== FlipView ==