Jump to: navigation, search

Changes


XAML Best practices

185 bytes removed, 24 June
/* Performance */
** ๐Ÿ† '''Alternatives to the optimized ListViews should be used with extreme caution.''' Controls such as CollectionView or BindableLayout are not optimized for good performance in UBIK.
<br><br>
 
[[Category:Pages with broken file links|XAML Best practices]]
[[Category:XAML|XAML Best practices]]
=== Using Styles and Templates ===
** Sometimes itโ€™s unavoidable that multiple containers are needed. In Xamarin, applying the [[Xamarin_XAML#Layout_compression_examples|HeadlessLayout]] style can reduce their impact on the visual tree.
** Some ideas for reducing the number of nested controls can be seen [[XAML_Best_practices#Alternatives_to_using_Multiple_Controls|later in this article]].
<br><br>
=== Implicit and Explicit Styling ===
* The localized Style definitions in this StackPanel will be passed down to all controls contained within it, no matter how deep the nesting goes.
* The BasedOn attribute can be used to create a sub-style based on another existing style. However, the TargetType must always match.
 [[Category:Pages with broken file links|XAML Best practices]][[Category:XAML|XAML Best practices]]<br><br>
=== Content Templating ===
487
edits