Changes

Mobile XAML

2,229 bytes added, 10 December
/* Performance */
When using multiple Lists on one page (e.g. in a TabbedView), it is necessary to set the AutomationId property uniquely for each list on the page, to support the remembering of the ScrollPosition.
=== Delay in UBIKContentView and ContentControl {{Version/MobileSince|5.1}} ===
Sometimes the UI of the app can be quite complex (especially in certain customizings) and it may take a while for it to get displayed. In such cases, the app might feel more responsive if the basic page is first displayed and the content of it gets displayed with a short delay. So starting from version 5.1, we introduced a small delay in the content heavy pages (child page, document page and query page).
 
And if necessary, this can be applied to other/smaller parts of the UI as well. For this, we introduced a new property on two existing controls which you could already use to insert UI templates: UBIKContentView and ContentControl. You can specify a delay (in milliseconds) on both controls so that the content of them is loaded after that amount of time. Examples are shown below.
<syntaxhighlight lang="xml">
<controls:UBIKContentView Delay="50" Converter="{StaticResource ChildAreaTemplateConverter}" />
</syntaxhighlight>
<syntaxhighlight lang="xml">
<controls:ContentControl Delay="50" ContentTemplate="{Binding [UBIKNavigationBar], Source={x:Static services:TemplateService.Instance}}" />
</syntaxhighlight>
 
 
Please note: The delay won't have any effect if you specify the Content of the UBIKContentView control instead of its Converter, because the Content is immediately laid out by the XAML framework that way. If you don't need a converter to determine the actual template name dynamically, you can still use the TemplateConverter and specify the template name like the following so that the delay applies.
<tabs>
<tab name="Delay applies">
<syntaxhighlight lang="xml">
<controls:UBIKContentView Delay="50" Converter="{StaticResource TemplateConverter}" ConverterParameter="UBIKChildArea" />
</syntaxhighlight>
</tab>
<tab name="Delay doesn't apply">
<syntaxhighlight lang="xml">
<controls:UBIKContentView Delay="50" Content="{Binding [UBIKChildArea], Source={x:Static services:TemplateService.Instance}}" />
</syntaxhighlight>
</tab>
</tabs>
 
[[Category:Client|Xamarin XAML]]
[[Category:Mobile|Mobile XAML]]
[[Category:Pages with broken file links|Xamarin XAML]]
[[Category:Styling|Xamarin XAML]]
[[Category:XAML|Xamarin XAML]]
= Known issues =