Changes

Xamarin XAML

874 bytes added, 10:30, 17 March 2023
* That's why we use a UBIKContentView control instead. You can find its example usage in the default UBIKContentArea.xamlx template.
[[Category:Client|Xamarin XAML]][[Category:Pages with broken file links|Xamarin XAML]][[Category:Styling|Xamarin XAML]][[Category:XAML|Xamarin XAML]][[Category:Xamarin|Xamarin XAML]]
=== Search ===
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.
 
= Kown issues =
=== Incorrect glyphs may be shown on buttons ===
 
When using glyphs on Buttons in Xamarin, sometimes a different glyph than the expected one will show up when viewing the app on Android.
They only seem to appear incorrectly when used as the Text property of the button (with FontFamily set to UBIKSymbols, such as the UBIKIconButton style.)
 
Please workaround by suplying icons through ImageSource.
 
<syntaxhighlight lang="xml">
<Button Command="{Binding BulkOperation.InvokeOnItemsCommand}">
<Button.ImageSource>
<FontImageSource
FontFamily="{DynamicResource UBIKSymbols}"
Glyph="{x:Static resources:UBIKIcons.MobileDelete}"
Color="{DynamicResource UBIKDarkThemeColor}"
Size="22"/>
</Button.ImageSource>
<Button.CommandParameter>
<classes:KeyValueList>
<classes:KeyValueParameter Key="Command" Value="DiscardContentCommand" />
</classes:KeyValueList>
</Button.CommandParameter>
</Button>
</syntaxhighlight>
[[Category:Client|Xamarin XAML]]
147
edits