<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wikitest.augmensys.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ARU</id>
		<title>UBIK Wiki Test / Augmensys - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wikitest.augmensys.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ARU"/>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Special:Contributions/ARU"/>
		<updated>2026-04-30T02:01:23Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=MROCLS_PICK_LIST_TASK&amp;diff=29718</id>
		<title>MROCLS PICK LIST TASK</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=MROCLS_PICK_LIST_TASK&amp;diff=29718"/>
				<updated>2026-04-22T09:36:08Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ClassificationInfoBox&lt;br /&gt;
| title = Pick list classification object&lt;br /&gt;
| name = {{PAGENAMEE}}&lt;br /&gt;
| inheritance = [[MROCLS_MRO_TASK]] &lt;br /&gt;
| namespace = MRO.Classification&lt;br /&gt;
| purpose = Classify tasks as pick list tasks&lt;br /&gt;
| version = 5.0.0&lt;br /&gt;
| id = {AC61934E-DDFD-4FAE-A28F-2F19EE70E0EE}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Classifies an object as a Pick List Task. &lt;br /&gt;
A Pick List Task needs a predefined [[UBIK_Active_Lists|Active List]] to pick from for its value property. The task counts as finished as soon as a list item has been selected. Each List item needs an integer value assigned to it.&lt;br /&gt;
&lt;br /&gt;
== MetaProperties ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; width=50%&lt;br /&gt;
|-&lt;br /&gt;
! width=30% | Name !! width=20% | Data type !! Comment&lt;br /&gt;
|-&lt;br /&gt;
| VALUE || {{Integer}} || Selected item&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[MROCLS_MRO_TASKOWNER#Task Owner]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_TASK#Task]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_MEASUREMENT_TASK#Measurement Task]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_PROGRESS_TASK# Progress Task]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_CHECK_TASK#Check Task]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_INSPECTION_TASK#Inspection Task]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_WORKPACKAGE#Work Package]] (Classification)&lt;br /&gt;
* [[MROCLS_SEQUENTIALTASK#Sequential Task]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_TASK#Switch Start Task]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_END_TASK#Switch End Task]] (Classification)&lt;br /&gt;
* [[MRO_Objects_(Client)#Work_Package]]&lt;br /&gt;
* [[MRO_(Plugin)#Work_Package]]&lt;br /&gt;
* [[MROCLS_PROCEDURE#Procedure Workpackage]] (Classification)&lt;br /&gt;
* [[MROCLS_CALCULATION_TASK#Calculation Task]] (Classification)&lt;br /&gt;
* [[UBIK_Active_Lists]]&lt;br /&gt;
* [[Active_List_Client]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Classifications|MROCLS PICK LIST TASK]]&lt;br /&gt;
[[Category:Plugin|MROCLS PICK LIST TASK]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Converters_In_Mobile&amp;diff=29701</id>
		<title>Converters In Mobile</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Converters_In_Mobile&amp;diff=29701"/>
				<updated>2026-04-20T09:27:52Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* List of Available Converters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Converters''' are used to prepare application data to format a UI defined by a XAML markup. These converters make it possible to show elements only when specific conditions (like data being available) are met. This allows the creation of a good UI with XAML code only, improving code readability while also decreasing code complexity.&lt;br /&gt;
&lt;br /&gt;
This page explains how to properly use converters for customizing the UBIK Mobile User Interface. Furthermore, all available converters are listed to provide a good reference.&lt;br /&gt;
&lt;br /&gt;
= Definition =&lt;br /&gt;
In Mobile clients, before converters can be used, they need to be defined in the page's ''Resources'' tag. Make sure to include the &amp;lt;code&amp;gt;UBIK.CPL.Converters&amp;lt;/code&amp;gt; namespace in the namespace definitions!&lt;br /&gt;
The following example shows how the &amp;lt;code&amp;gt;NullToBoolConverter&amp;lt;/code&amp;gt; can be defined:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ContentView x:Class=&amp;quot;UBIK.CPL.Resources.UBIKChildArea&amp;quot; &lt;br /&gt;
    xmlns=&amp;quot;http://xamarin.com/schemas/2014/forms&amp;quot; &lt;br /&gt;
    xmlns:x=&amp;quot;http://schemas.microsoft.com/winfx/2009/xaml&amp;quot; &lt;br /&gt;
    xmlns:converters=&amp;quot;clr-namespace:UBIK.CPL.Converters;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;converters:NullToBoolConverter x:Key=&amp;quot;NullToBool&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Cuztomizing --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The key ''NullToBool'' makes this converter accessible from the customizing in this page.&lt;br /&gt;
== Definition With Properties ==&lt;br /&gt;
In the following example, which is the same example from above, the '''StringFormatConverter''' will be additionally defined. To add more formatting possibilities, it has two extra properties, which need to be prefilled during initialization. Henceforth, these properties can be prefilled with static values or with static references.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ContentView x:Class=&amp;quot;UBIK.CPL.Resources.UBIKChildArea&amp;quot; &lt;br /&gt;
    xmlns=&amp;quot;http://xamarin.com/schemas/2014/forms&amp;quot; &lt;br /&gt;
    xmlns:x=&amp;quot;http://schemas.microsoft.com/winfx/2009/xaml&amp;quot; &lt;br /&gt;
    xmlns:converters=&amp;quot;clr-namespace:UBIK.CPL.Converters;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;converters:NullToBoolConverter x:Key=&amp;quot;NullToBool&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;converters:StringFormatConverter x:Key=&amp;quot;Formatter&amp;quot; Parameter1=&amp;quot;5&amp;quot; Parameter2=&amp;quot;{Binding Children.Items.Count}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Cuztomizing --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Whereever this converter is used within the file it was defined in, ''Formatter'' will always have its ''Parameter1'' set to ''5'' and its ''Parameter2'' to the number of children of the currently viewed UBIK object. If this behavior is not intended, consider defining another ''StringFormatConverter'' with a '''different Key''' in the same way as shown above.&amp;lt;br/&amp;gt;&lt;br /&gt;
See below to find out how to use this converter!&lt;br /&gt;
= Usage =&lt;br /&gt;
A converter can only be used in conjunction with a &amp;lt;code&amp;gt;{Binding}&amp;lt;/code&amp;gt;. The following is an easy example, showing how the ''NullToBool'' converter, defined above, can be used.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Label Text=&amp;quot;My Text&amp;quot; IsVisible=&amp;quot;{Binding MyBindableProperty, Converter={StaticResource NullToBool}}&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
If '''MyBindableProperty''' is ''null'' or an empty string, the converter will return '''true''', making the Label visible!&lt;br /&gt;
== Parameter ==&lt;br /&gt;
Some converters accept a '''ConverterParameter''', that passes additional information. Closely read the description of the available converters to find out which accept or even require a parameter to work properly. In Ubik, some converters accept a string parameter, consisting of multiple individual parameters separated by &amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An example of this behavior is the '''ContainsToBoolConverter''', which checks if the current value is contained within a collection of values (passed as the ''parameter''):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Label Text=&amp;quot;My Text&amp;quot; IsVisible=&amp;quot;{Binding MyValue, Converter={StaticResource ContainsToBool}, ConverterParameter=1|2|3|4|5|6|7|8|9}&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The label will only be visible if the ''MyValue'' property (which is expected to parse as an Integer in this example) is one of the values of the parameter.&amp;lt;br/&amp;gt;&lt;br /&gt;
Again, to get the converter working, don't forget to define it in the page's resources!&lt;br /&gt;
&lt;br /&gt;
== FallbackValue ==&lt;br /&gt;
In some rare cases, a converter might not return anything desired (like ''null'') if some condition doesn't work out as it should (e.g. ''value'' is ''null''). To still be able to get a usable return value, it's possible to define a '''FallbackValue'''.&lt;br /&gt;
&lt;br /&gt;
== Example Usage of StringFormatConverter ==&lt;br /&gt;
This converter can take up to two additional parameters during definition. Please see [[#Definition With Properties|Definition With Properties]] for more information!&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Label Text=&amp;quot;{Binding MyValue, Converter={StaticResource Formatter}, ConverterParameter=The Value of my value is \{0\}\, compared to \{1\} and \{2\}!}&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
It's important to note that special characters, like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;,&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, need to be escaped using a &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, else the expression will be wrongly interpreted (and nothing happens)!&lt;br /&gt;
&lt;br /&gt;
The text of the '''ConverterParameter''' will be analyzed, and any occurrance (including duplicates) of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{0}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{1}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{2}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; replaced with the '''binding value''', '''Formatter.Parameter1''' and '''Formatter.Parameter2''' respectively!&lt;br /&gt;
&lt;br /&gt;
Make sure to note, that Maui has a native '''[https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/data-binding/string-formatting?view=net-maui-9.0 string formatting]''' option as well, that is probably way faster than using a converter for it. Furthermore, it supports formatting options!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Data Source =&lt;br /&gt;
Although technically not a converter, the '''SfDataSourceExt''' control is currently on the way of replacing the '''SfDataSourceConverter''', due to improved performance.&lt;br /&gt;
The usage is pretty simple: Similar to the converters, it needs to be defined in the '''Page Resources'''. Then, a '''Key''' and '''Expression''', as well as an '''ItemsSource''' have to be defined. Last, but not least, the the converter can be used within the '''ItemsSource''' property of a Syncfusion '''SfListView'''. See the following example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ContentView x:Class=&amp;quot;UBIK.CPL.Resources.UBIKChildArea&amp;quot; &lt;br /&gt;
    xmlns=&amp;quot;http://xamarin.com/schemas/2014/forms&amp;quot; &lt;br /&gt;
    xmlns:x=&amp;quot;http://schemas.microsoft.com/winfx/2009/xaml&amp;quot; &lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
             &amp;lt;controls:SfDataSourceExt&lt;br /&gt;
                x:Key=&amp;quot;MyDataSource&amp;quot;&lt;br /&gt;
                ItemsSource=&amp;quot;{Binding Children.Items}&amp;quot;&lt;br /&gt;
                Expression=&amp;quot;Item.Content.MetaUID.ToString().ToLower()==&amp;amp;quot;85a50533-3817-4a0b-84cd-615b48b62565&amp;amp;quot; &amp;amp;amp;&amp;amp;amp; Item[&amp;amp;quot;ORGA_STATUS&amp;amp;quot;]!=100&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
    &amp;lt;sync:SfListView&lt;br /&gt;
           x:Name=&amp;quot;ListView1&amp;quot;&lt;br /&gt;
           AllowSwiping=&amp;quot;True&amp;quot;&lt;br /&gt;
           ItemSize=&amp;quot;60&amp;quot;&lt;br /&gt;
           ItemTemplate=&amp;quot;{StaticResource ChildTemplateSelector}&amp;quot;&lt;br /&gt;
           ItemsSource=&amp;quot;{Binding DisplayItems, Source={StaticResource MyDataSource}}&amp;quot;&lt;br /&gt;
           LeftSwipeTemplate=&amp;quot;{StaticResource SwipeLeftTemplateSelector}&amp;quot;&lt;br /&gt;
           RightSwipeTemplate=&amp;quot;{StaticResource SwipeRightTemplateSelector}&amp;quot;&lt;br /&gt;
           SelectionMode=&amp;quot;None&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Thanks to the given expression, filtering is applied once the data source is evaluated. It's important to have [https://www.advancedinstaller.com/user-guide/xml-escaped-chars.html XML special characters] correctly escaped, like the example shows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= List of Available Converters =&lt;br /&gt;
The following list contains all currently available converters for UBIK Mobile customizing. &lt;br /&gt;
&lt;br /&gt;
'''Two-way''' converters can be used with two-way bindings, e.g. a text-box displaying an editable value. If the value updates in the model, the text-box text changes. If the user edits the value, the value in the model behind also gets updated.&lt;br /&gt;
As a clarification, '''Value''' refers to the '''Binding Value''', and '''parameter''' to the '''ConverterParameter'''!&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; style=&amp;quot;width:100%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Converter !! 2-Way !! Output Type || Input Type || Parameter Type || Description &lt;br /&gt;
|-&lt;br /&gt;
| BooleanConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || Boolean || Boolean, String || || &lt;br /&gt;
Interprets a '''boolean value''' or a '''String value''' and returns it. If the value cannot be interpreted, ''false'' is returned.&lt;br /&gt;
|- &lt;br /&gt;
| BooleanInvertConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || Boolean || Boolean, String || || &lt;br /&gt;
Interprets a '''boolean value''' or a '''String value''' and converts it into its '''inverted value'''. If the value cannot be interpreted, ''false'' is returned.&lt;br /&gt;
|- &lt;br /&gt;
| BooleanToFontAttributeConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || FontAttribute || Boolean || || &lt;br /&gt;
Converts a '''boolean''' into a '''[https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.fontattributes?view=xamarin-forms font attribute]''' value. In detail, if the value is ''true'', the parameter is interpreted (''Bold'', ''Italic'', ''None'') and returned. The default returned font-attribute is ''None''.&lt;br /&gt;
|- &lt;br /&gt;
| ByteToImageSourceValueConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || ImageSource || Byte[ ],&amp;lt;br/&amp;gt;Byte Stream || || &lt;br /&gt;
Converts a '''byte stream''' value into an '''image source'''.&lt;br /&gt;
|- &lt;br /&gt;
| ChildAreaTemplateConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Child&amp;lt;wbr/&amp;gt;Area&amp;lt;wbr/&amp;gt;Template || Content&amp;lt;wbr/&amp;gt;ViewModel || || &lt;br /&gt;
Returns a '''ChildAreaTemplate''' from a '''Content&amp;lt;wbr/&amp;gt;ViewModel''' or ''null'' if the ViewModel cannot be interpreted.&lt;br /&gt;
|- &lt;br /&gt;
| ChildItem&amp;lt;wbr/&amp;gt;SelectionMode&amp;lt;wbr/&amp;gt;To&amp;lt;wbr/&amp;gt;SfListView&amp;lt;wbr/&amp;gt;SelectionMode&amp;lt;wbr/&amp;gt;Converter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || [https://help.syncfusion.com/cr/cref_files/xamarin/Syncfusion.SfListView.XForms~Syncfusion.ListView.XForms.SfListView~SelectionMode.html ListView&amp;lt;wbr/&amp;gt;SelectionMode] || ChildItem&amp;lt;wbr/&amp;gt;SelectionMode || || &lt;br /&gt;
Converts a '''ChildItem&amp;lt;wbr/&amp;gt;SelectionMode''' to a Syncfusion '''[https://help.syncfusion.com/cr/cref_files/xamarin/Syncfusion.SfListView.XForms~Syncfusion.ListView.XForms.SfListView~SelectionMode.html ListView&amp;lt;wbr/&amp;gt;SelectionMode]'''. Default is &amp;quot;Single&amp;quot;.&lt;br /&gt;
|- &lt;br /&gt;
| ClassificationToBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || ContentViewModel || || &lt;br /&gt;
Returns a '''boolean''' indicating whether the given '''ContentViewModel''' is successfully classified.&lt;br /&gt;
|- &lt;br /&gt;
| ContainsToBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || String,&amp;lt;br/&amp;gt;Guid,&amp;lt;br/&amp;gt;Object || || &lt;br /&gt;
Checks if the delivered value is '''contained''' within a collection of values (delivered in the parameter, seperated with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;). If the value is contained, ''true'' will be returned, else ''false''. The functionality is similar to the ''ContainsToVisibilityConverter'' in the WinX project.&lt;br /&gt;
|- &lt;br /&gt;
| ContainsToInvertedBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || String,&amp;lt;br/&amp;gt;Guid,&amp;lt;br/&amp;gt;Object || || &lt;br /&gt;
Same as the ''ContainsToBoolConverter'', but with '''inverted output'''.&lt;br /&gt;
|- &lt;br /&gt;
| ContentAreaTeamplateConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || UBIKContentArea || ContentViewModel || || This converter is '''not yet finished''' and just returns the ''UBIKContentArea'' if the value is a ''ContentViewModel''.&lt;br /&gt;
|- &lt;br /&gt;
| StringToDateTimeTypesConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓  || [https://docs.microsoft.com/en-us/dotnet/api/system.datetime DateTime], [https://docs.microsoft.com/en-us/dotnet/api/system.timespan TimeSpan] || String || || &lt;br /&gt;
Converts a String to the correct DateType, which can be either '''[https://docs.microsoft.com/en-us/dotnet/api/system.datetime DateTime]''' or '''[https://docs.microsoft.com/en-us/dotnet/api/system.timespan TimeSpan]'''. If the value cannot be interpreted, the unchanged String value is returned. The Converter can also be used to convert DateTime or TimeSpan into a string. The Format will be determined by the current culture.&lt;br /&gt;
|- &lt;br /&gt;
| DateTimeOffsetToDateConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || [https://docs.microsoft.com/en-us/dotnet/api/system.datetime DateTime] || [https://docs.microsoft.com/en-us/dotnet/api/system.datetimeoffset DateTimeOffset] || || &lt;br /&gt;
Converts a '''[https://docs.microsoft.com/en-us/dotnet/api/system.datetimeoffset DateTimeOffset]''' to the correct '''[https://docs.microsoft.com/en-us/dotnet/api/system.datetime DateTime]''', applied to the current date and time. If the value cannot be interpreted, a new ''DateTime'', generated from the device's current time (&amp;lt;code&amp;gt;DateTime.Now&amp;lt;/code&amp;gt;) is returned.&lt;br /&gt;
|- &lt;br /&gt;
| DateTimeToFromNowStringConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || String || [https://docs.microsoft.com/en-us/dotnet/api/system.datetime DateTime] || || &lt;br /&gt;
Returns a '''[https://docs.microsoft.com/en-us/dotnet/api/system.datetime DateTime]''' into a human-readable and easily understandable ''string message'' (the last applying one will be taken):&lt;br /&gt;
* Less than 5 minutes in the past: ''Just now''&lt;br /&gt;
* Less than 10 minutes in the past: ''A few minutes ago''&lt;br /&gt;
* Less than 1 hour in the past: ''An hour ago''&lt;br /&gt;
* Less than 23 Hours in the past: ''Some hours ago''&lt;br /&gt;
* Less than 1 day in the past: ''Yesterday''&lt;br /&gt;
* More than 1 day in the past: The ''DateTime'' value formatted according to the device's localization rules.&lt;br /&gt;
* Not interpretable: ''???''&lt;br /&gt;
|- &lt;br /&gt;
| DebugConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || Object || Object || || &lt;br /&gt;
A converter returning the given value for '''debug reasons'''.&lt;br /&gt;
|- &lt;br /&gt;
| DistanceToStringConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || String || Double || || &lt;br /&gt;
Returns the given value interpreted as '''length'''. Values are returned in kilometers with two comma digits (e.g. 2.84km), values smaller than 1km are returned as meters and ''NaN'' will be returned as ''infinity''. If the value cannot be interpreted, an empty string will be returned.&lt;br /&gt;
|- &lt;br /&gt;
| EqualityToBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || Object,&amp;lt;br/&amp;gt;String || Object,&amp;lt;br/&amp;gt;String || &lt;br /&gt;
Returns ''true'' if the given value and parameter are '''equal to each other''', ''false'' otherwise.&lt;br /&gt;
|- &lt;br /&gt;
| EqualityToInvertedBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || Object,&amp;lt;br/&amp;gt;String || Object,&amp;lt;br/&amp;gt;String || &lt;br /&gt;
Returns ''true'' if the given value and parameter are '''not equal to each other''', ''false'' otherwise.&lt;br /&gt;
|- &lt;br /&gt;
| SelectionChangedEventArgsConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || [https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.selectionchangedeventargs List&amp;lt;wbr/&amp;gt;Selection&amp;lt;wbr/&amp;gt;Changed&amp;lt;wbr/&amp;gt;EventArgs] || [https://help.syncfusion.com/cr/cref_files/xamarin/Syncfusion.SfListView.XForms~Syncfusion.ListView.XForms.ItemSelectionChangedEventArgs.html Item&amp;lt;wbr/&amp;gt;Selection&amp;lt;wbr/&amp;gt;Changed&amp;lt;wbr/&amp;gt;EventArgs] || || &lt;br /&gt;
Converts an Syncfusion '''[https://help.syncfusion.com/cr/cref_files/xamarin/Syncfusion.SfListView.XForms~Syncfusion.ListView.XForms.ItemSelectionChangedEventArgs.html Item&amp;lt;wbr/&amp;gt;Selection&amp;lt;wbr/&amp;gt;Changed&amp;lt;wbr/&amp;gt;EventArgs]''' to a '''[https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.selectionchangedeventargs List&amp;lt;wbr/&amp;gt;Selection&amp;lt;wbr/&amp;gt;Changed&amp;lt;wbr/&amp;gt;EventArgs]'''. &amp;lt;br/&amp;gt;The use-case of this converter is highly specific.&lt;br /&gt;
|- &lt;br /&gt;
| FilterCriterionToValueConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || String || FilterCriterion || || &lt;br /&gt;
Converts a [[Property_Based_Content_Filters|'''FilterCriterion''']] to its value. The functionality is similar to UWP's FilterCriterionToValueConverter.&lt;br /&gt;
|- &lt;br /&gt;
| GuidPropertyValueConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || String || Guid || Binding, where source is ContentViewModel || &lt;br /&gt;
Returns the '''first item''' of the parameter's ''Source-ViewModel'' that '''matches the given GUID''' value. If none is found, ''null'' is returned.&lt;br /&gt;
|- &lt;br /&gt;
| IntToColorConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Color || Integer || || &lt;br /&gt;
Converts an ARGB '''integer''' value to a '''color'''. If the value cannot be interpreted, the converter tries to parse the parameter as a ''color'' to return it. If everything fails, ''transparent'' is returned.&lt;br /&gt;
|- &lt;br /&gt;
| ItemCountToBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || Integer || Integer || &lt;br /&gt;
This converter has a '''property''' to set the '''boolean return value''', called ''LesserOrEqualReturnValue''. This property-value will be returned if the given value is '''smaller than or equal to''' the threshold (parameter, defaults to 0). If the value is '''bigger than''' the threshold, the '''inverted''' ''LesserOrEqualReturnValue'' will be returned.&amp;lt;br/&amp;gt;&lt;br /&gt;
In any other case (like the value cannot be interpreted), ''false'' is returned, so it's a good idea to set the converter's property in a way that the return is only ''true'' if you need it.&lt;br /&gt;
|- &lt;br /&gt;
| ItemCountToOverflowConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || String || Integer || Integer || Creates a '''human-readable text''' indicating '''how many items are available'''. The value will be interpreted as the '''total item count''' and the parameter as '''overflow threshold''' (defaults to 99). &amp;lt;br/&amp;gt;If there are more items than the overflow, the overflow value with a + sign will be returned (e.g. 99+). If not, the value itself will be returned. If everything fails, ''null'' is returned.&lt;br /&gt;
|- &lt;br /&gt;
| NullToBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || Boolean || Object,&amp;lt;br/&amp;gt;String|| || &lt;br /&gt;
''Null'' or an '''empty string''' value get converted to ''true'', and everything else to ''false''.&lt;br /&gt;
|- &lt;br /&gt;
| NullToInvertedBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || Boolean || Object,&amp;lt;br/&amp;gt;String || || &lt;br /&gt;
''Null'' or an '''empty string''' value get converted to ''false'', and everything else to ''true''.&lt;br /&gt;
|- &lt;br /&gt;
| PathToImageSourceValueConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Image Source || String || || &lt;br /&gt;
Reads the '''path''' provided as parameter and creates an '''image source''' from it.&lt;br /&gt;
|- &lt;br /&gt;
| PercentageToProgressConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Double || Integer,&amp;lt;br/&amp;gt;Double || || &lt;br /&gt;
The '''numeric value'''  (int or double), interpreted as '''percentage from 0 to 100''', get converted to a '''progress level'''  (0 to 1). Values outside this range will be contained.&lt;br /&gt;
|- &lt;br /&gt;
| PropertyNameExistsToBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean (Nullable) || ContentViewModel,&amp;lt;br/&amp;gt;IContent || || &lt;br /&gt;
Converts a property to a '''boolean''' based on its '''existence'''. If it exists, ''true'' will be returned, else ''false'' or ''null'' (if something couldn't be properly interpreted).&lt;br /&gt;
|- &lt;br /&gt;
| PropertyNameExistsToInvertedBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean (Nullable) || ContentViewModel,&amp;lt;br/&amp;gt;IContent || || &lt;br /&gt;
Converts a property to a '''boolean''' based on its '''existence'''. If it exists, ''false'' will be returned, else ''true'' or ''null'' (if something couldn't be properly interpreted).&lt;br /&gt;
|- &lt;br /&gt;
&lt;br /&gt;
| PropertyValueToSelectiveItemConverter  || style=&amp;quot;text-align: center;&amp;quot; | ✓ || Boolean,&amp;lt;br/&amp;gt;String,&amp;lt;br/&amp;gt;Integer,&amp;lt;br/&amp;gt;Double,&amp;lt;br/&amp;gt;DateTime,&amp;lt;br/&amp;gt;Guid,&amp;lt;br/&amp;gt;FileReferenceData,&amp;lt;br/&amp;gt;GeoData,&amp;lt;br/&amp;gt;Object || Boolean,&amp;lt;br/&amp;gt;String,&amp;lt;br/&amp;gt;Integer,&amp;lt;br/&amp;gt;Double,&amp;lt;br/&amp;gt;DateTime,&amp;lt;br/&amp;gt;Guid,&amp;lt;br/&amp;gt;FileReferenceData,&amp;lt;br/&amp;gt;GeoData,&amp;lt;br/&amp;gt;Object || || &lt;br /&gt;
Converts a '''item''' of an [[Active List Client]] or a [[MetaProperty]] [[MetaProperty#Selective List|Selective List]] to its value. If none is found, null will be returned.&lt;br /&gt;
|- &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| RootAreaTemplateConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || ContentView || Object || || &lt;br /&gt;
If the provided value is '''not null''', the '''UBIKRootArea template''' will be returned.&lt;br /&gt;
|- &lt;br /&gt;
| SelectiveItemToValueConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || Boolean,&amp;lt;br/&amp;gt;String,&amp;lt;br/&amp;gt;Integer,&amp;lt;br/&amp;gt;Double,&amp;lt;br/&amp;gt;DateTime,&amp;lt;br/&amp;gt;Guid,&amp;lt;br/&amp;gt;FileReferenceData,&amp;lt;br/&amp;gt;GeoData,&amp;lt;br/&amp;gt;Object || Boolean,&amp;lt;br/&amp;gt;String,&amp;lt;br/&amp;gt;Integer,&amp;lt;br/&amp;gt;Double,&amp;lt;br/&amp;gt;DateTime,&amp;lt;br/&amp;gt;Guid,&amp;lt;br/&amp;gt;FileReferenceData,&amp;lt;br/&amp;gt;GeoData,&amp;lt;br/&amp;gt;Object || Binding, where source is ContentViewModel || &lt;br /&gt;
Converts a '''item''' of a '''selective list''' to its value. If none is found, the passed ''value'' will be returned.&lt;br /&gt;
|- &lt;br /&gt;
| SelectiveListToItemsConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || List of PropertyItems  || IPropertyItem || || &lt;br /&gt;
Returns all items from a selective list. The converter can only be used in combination with a standard MetaProperty level [[SELECTIVELIST|SelectiveList]], not with an instance level [[Active_List_Client|Active list]].&lt;br /&gt;
|- &lt;br /&gt;
| SfDataSourceConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || DataSource (for ListView) || Double || String (Expression) || &lt;br /&gt;
It's an advanced converter used for '''loading items''' and '''applying filters''' on it. It replaces to ''CollectionToViewConverter'' from the WinX.UWP project. The data source can be directly used with a ''[https://help.syncfusion.com/xamarin/sflistview/overview SfListView]''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
'''This converter is obsolete!'''&amp;lt;br/&amp;gt;Use '''SfDataSourceExt''' (see [[#Data Source|Data Source]]) instead!&lt;br /&gt;
|- &lt;br /&gt;
| StringContainsToBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || String || String || &lt;br /&gt;
Returns a '''boolean''' indicating whether the parameter string is included in the value string.&lt;br /&gt;
|- &lt;br /&gt;
| StringContainsToInvertedBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || String || String || &lt;br /&gt;
Same as the ''StringContainsToBoolConverter'' but with '''inverted output'''.&lt;br /&gt;
|- &lt;br /&gt;
| StringFormatConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || String || Object || String || Allows the creation of a '''nicely formatted ''string'' message''', similar to [https://docs.microsoft.com/en-us/dotnet/api/system.string.format C#'s String.Format method].&amp;lt;br/&amp;gt;The value will be interpreted as the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{0}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; element, and the parameter is the template string (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;The total count is: {0}!&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Up to two additional parameters, named ''Parameter1'' and ''Parameter2'', can be defined at the converter declaration. Adding formatting options to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{0}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; notation is not possible.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Attention''', using the native '''[https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/data-binding/string-formatting StringFormat]''' option is not only faster, but it also offers more customizability of the value!&amp;lt;br/&amp;gt;&lt;br /&gt;
You might still want to use the ''StringFormatConverter'' in rare cases, though!&lt;br /&gt;
|- &lt;br /&gt;
| ToStringFormatConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || String || Double,&amp;lt;br/&amp;gt;Float,&amp;lt;br/&amp;gt;Integer,&amp;lt;br/&amp;gt;DateTime,&amp;lt;br/&amp;gt;String || String || Converts '''primitives''' or '''[https://docs.microsoft.com/en-us/dotnet/api/system.datetime DateTime]''' to string and allows the application of '''[https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings formatting options]''' (as parameter). &amp;lt;br/&amp;gt;Adding a &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; to the end of the format-parameter allows '''[https://docs.microsoft.com/en-us/dotnet/api/system.math.truncate truncation]''' of all decimal places.&lt;br /&gt;
|-&lt;br /&gt;
| TypeNameToBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || Object || String || Returns ''true'' if the type name of the value is present in the parameter-string (seperated by &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;).&lt;br /&gt;
|- &lt;br /&gt;
| TypeNameToInvertedBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || Object || String || Inverted ''TypeNameTo&amp;lt;wbr/&amp;gt;BoolConverter''.&lt;br /&gt;
|- &lt;br /&gt;
| DataTemplateItemTemplateSelectorConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || ChildItem&amp;lt;wbr/&amp;gt;Template&amp;lt;wbr/&amp;gt;Selector || String || String || Chooses what '''ChildItem&amp;lt;wbr/&amp;gt;Template&amp;lt;wbr/&amp;gt;Selector''' to return. Having a parameter with the content &amp;quot;Small&amp;quot; returns the small item template selector.&lt;br /&gt;
|- &lt;br /&gt;
| DataTemplateItemsPanelConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || ItemsPanelTemplate || Query&amp;lt;wbr/&amp;gt;Details&amp;lt;wbr/&amp;gt;Page&amp;lt;wbr/&amp;gt;ViewModel || || Chooses what '''ItemPanel&amp;lt;wbr/&amp;gt;Template''' to return. Having a parameter with the content &amp;quot;Small&amp;quot; returns the small item template selector.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Converters In Xamarin]]&lt;br /&gt;
[[Category:Mobile|Converters In Xamarin]]&lt;br /&gt;
[[Category:XAML|Converters In Xamarin]]&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
[[XAML#Converters|Converters in UWP/WinX]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Client | XAML | Xamarin]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Converters In Xamarin]]&lt;br /&gt;
[[Category:Mobile|Converters In Xamarin]]&lt;br /&gt;
[[Category:XAML|Converters In Xamarin]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=UBIK_Active_Lists&amp;diff=29700</id>
		<title>UBIK Active Lists</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=UBIK_Active_Lists&amp;diff=29700"/>
				<updated>2026-04-20T09:25:38Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UBIK}} ActiveLists provide the possibility to configure instance-specific lists for integer MetaProperties.&lt;br /&gt;
&lt;br /&gt;
= Purpose =&lt;br /&gt;
In some cases it is required to define a list of selectable values for an integer MetaProperty that is specific to a single instance rather than globally defined at the MetaClass level. For example, two instances of the same MetaClass can offer different selectable values for the same MetaProperty.&lt;br /&gt;
&lt;br /&gt;
{{UBIK}} ActiveLists are the representation of such lists. They update dynamically on the client side without requiring an ACM rebuild and can be maintained per instance through server methods.&lt;br /&gt;
&lt;br /&gt;
If a MetaProperty has both a SelectiveList and an ActiveList, the SelectiveList takes precedence when data is displayed on the client, and the ActiveList is ignored.&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionStart}}&lt;br /&gt;
= Client Behavior =&lt;br /&gt;
When the user opens an ActiveList:&lt;br /&gt;
* The label for each option is shown in the language configured on the web service. If a translation for the configured language is unavailable, the label is displayed in the default language.&lt;br /&gt;
* Each option in the ActiveList has an associated unique integer value that is set to the MetaProperty when selected.&lt;br /&gt;
* Only one option can be selected at a time. Selecting an option updates the MetaProperty value immediately.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sorting of items in the dropdown:&lt;br /&gt;
&lt;br /&gt;
* If all options in the ActiveList have unique sort order values, they are displayed in ascending order of these sort order values.&lt;br /&gt;
* If sort orders are not unique, options with the same sort order are sorted in ascending order by their label.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details see: [[Active List Client]]&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
= Server-Side Concept =&lt;br /&gt;
ActiveLists are stored in serialized JSON form in the '''ACTIVE_LISTS''' property of the instance.&lt;br /&gt;
&lt;br /&gt;
* Each list is associated with exactly one integer MetaProperty of the instance.&lt;br /&gt;
* An instance can have multiple ActiveLists, one for each integer MetaProperty.&lt;br /&gt;
* ActiveLists can be viewed in UBIK.Studio in the Object Explorer under “ActiveLists” for the instance, but they cannot be edited there.&lt;br /&gt;
&lt;br /&gt;
= Managing {{UBIK}} ActiveLists =&lt;br /&gt;
ActiveLists are managed entirely through server methods. The most relevant methods are:&lt;br /&gt;
&lt;br /&gt;
=== AddOrUpdateActiveList(metaProperty, value, labels, sortOrder) ===&lt;br /&gt;
Adds a new list item or updates the labels of an existing one. Optionally repositions the item according to sortOrder.&lt;br /&gt;
&lt;br /&gt;
=== SortActiveList(metaProperty, orderedValues) ===&lt;br /&gt;
Reorders the items of a list according to the specified sequence. Items not included in '''orderedValues''' are appended in their current order.&lt;br /&gt;
&lt;br /&gt;
=== RemoveActiveListItem(metaProperty, value) ===&lt;br /&gt;
Removes a single list item by its integer value.&lt;br /&gt;
&lt;br /&gt;
=== RemoveActiveList(metaProperty) ===&lt;br /&gt;
Removes the entire list for the given MetaProperty.&lt;br /&gt;
&lt;br /&gt;
=== GetActiveLists() ===&lt;br /&gt;
Returns all ActiveLists defined on the instance as '''UbikActiveList''' objects, each containing the MetaProperty name and its list items.&lt;br /&gt;
&lt;br /&gt;
= Who-Bert Example =&lt;br /&gt;
The following Who-Bert snippet demonstrates how to work with an ActiveList for a MetaProperty named &amp;quot;'''MP_INT_A'''&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using UBIK.Kernel;&lt;br /&gt;
using UBIK.Runtime;&lt;br /&gt;
using UBIK.Runtime.Sys;&lt;br /&gt;
using UBIK.Compiler;&lt;br /&gt;
using UBIK.Content;&lt;br /&gt;
&lt;br /&gt;
namespace Studio&lt;br /&gt;
{&lt;br /&gt;
    public class ObjectTest&lt;br /&gt;
    {&lt;br /&gt;
        public void TestObject(params BaseClass[] InVariables)&lt;br /&gt;
        {&lt;br /&gt;
            Debugger.Output(this, &amp;quot;*** Started ActiveList Example&amp;quot;);&lt;br /&gt;
            foreach (BaseClass obj in InVariables)&lt;br /&gt;
            {&lt;br /&gt;
                ContentClass c = obj as ContentClass;&lt;br /&gt;
&lt;br /&gt;
                var labels1 = new Dictionary&amp;lt;string, string&amp;gt; { { &amp;quot;en&amp;quot;, &amp;quot;One&amp;quot; }, { &amp;quot;de&amp;quot;, &amp;quot;Eins&amp;quot; } };&lt;br /&gt;
                var labels2 = new Dictionary&amp;lt;string, string&amp;gt; { { &amp;quot;en&amp;quot;, &amp;quot;Two&amp;quot; }, { &amp;quot;de&amp;quot;, &amp;quot;Zwei&amp;quot; } };&lt;br /&gt;
                var labels3 = new Dictionary&amp;lt;string, string&amp;gt; { { &amp;quot;en&amp;quot;, &amp;quot;Three&amp;quot; }, { &amp;quot;de&amp;quot;, &amp;quot;Drei&amp;quot; } };&lt;br /&gt;
&lt;br /&gt;
                // Add items&lt;br /&gt;
                c.AddOrUpdateActiveList(&amp;quot;MP_INT_A&amp;quot;, 1, labels1);&lt;br /&gt;
                c.AddOrUpdateActiveList(&amp;quot;MP_INT_A&amp;quot;, 2, labels2);&lt;br /&gt;
                c.AddOrUpdateActiveList(&amp;quot;MP_INT_A&amp;quot;, 3, labels3);&lt;br /&gt;
&lt;br /&gt;
                // Update labels and move item 3 to index 0&lt;br /&gt;
                var labels3Updated = new Dictionary&amp;lt;string, string&amp;gt; { { &amp;quot;en&amp;quot;, &amp;quot;Three Updated&amp;quot; }, { &amp;quot;de&amp;quot;, &amp;quot;Drei Aktualisiert&amp;quot; } };&lt;br /&gt;
                c.AddOrUpdateActiveList(&amp;quot;MP_INT_A&amp;quot;, 3, labels3Updated, 0);&lt;br /&gt;
&lt;br /&gt;
                // Sort items: 2, 1, 3&lt;br /&gt;
                c.SortActiveList(&amp;quot;MP_INT_A&amp;quot;, new int[] { 2, 1, 3 });&lt;br /&gt;
&lt;br /&gt;
                // Remove item 1&lt;br /&gt;
                c.RemoveActiveListItem(&amp;quot;MP_INT_A&amp;quot;, 1);&lt;br /&gt;
&lt;br /&gt;
                c.Save();&lt;br /&gt;
            }&lt;br /&gt;
            Debugger.Output(this, &amp;quot;*** Finished ActiveList Example&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
} &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Further Notes =&lt;br /&gt;
&lt;br /&gt;
* ActiveLists are designed for lightweight, instance-specific value lists that can be updated without ACM rebuilds.&lt;br /&gt;
* They are ideal for use cases where list content varies between instances of the same MetaClass.&lt;br /&gt;
* When both an ActiveList and a SelectiveList are defined for the same MetaProperty, the SelectiveList overrides the ActiveList on the client.&lt;br /&gt;
&lt;br /&gt;
[[Category:ActiveList|UBIK Active Lists]]&lt;br /&gt;
[[Category:Server|UBIK Active Lists]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Converters_In_Mobile&amp;diff=29699</id>
		<title>Converters In Mobile</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Converters_In_Mobile&amp;diff=29699"/>
				<updated>2026-04-20T09:22:18Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* List of Available Converters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Converters''' are used to prepare application data to format a UI defined by a XAML markup. These converters make it possible to show elements only when specific conditions (like data being available) are met. This allows the creation of a good UI with XAML code only, improving code readability while also decreasing code complexity.&lt;br /&gt;
&lt;br /&gt;
This page explains how to properly use converters for customizing the UBIK Mobile User Interface. Furthermore, all available converters are listed to provide a good reference.&lt;br /&gt;
&lt;br /&gt;
= Definition =&lt;br /&gt;
In Mobile clients, before converters can be used, they need to be defined in the page's ''Resources'' tag. Make sure to include the &amp;lt;code&amp;gt;UBIK.CPL.Converters&amp;lt;/code&amp;gt; namespace in the namespace definitions!&lt;br /&gt;
The following example shows how the &amp;lt;code&amp;gt;NullToBoolConverter&amp;lt;/code&amp;gt; can be defined:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ContentView x:Class=&amp;quot;UBIK.CPL.Resources.UBIKChildArea&amp;quot; &lt;br /&gt;
    xmlns=&amp;quot;http://xamarin.com/schemas/2014/forms&amp;quot; &lt;br /&gt;
    xmlns:x=&amp;quot;http://schemas.microsoft.com/winfx/2009/xaml&amp;quot; &lt;br /&gt;
    xmlns:converters=&amp;quot;clr-namespace:UBIK.CPL.Converters;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;converters:NullToBoolConverter x:Key=&amp;quot;NullToBool&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Cuztomizing --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The key ''NullToBool'' makes this converter accessible from the customizing in this page.&lt;br /&gt;
== Definition With Properties ==&lt;br /&gt;
In the following example, which is the same example from above, the '''StringFormatConverter''' will be additionally defined. To add more formatting possibilities, it has two extra properties, which need to be prefilled during initialization. Henceforth, these properties can be prefilled with static values or with static references.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ContentView x:Class=&amp;quot;UBIK.CPL.Resources.UBIKChildArea&amp;quot; &lt;br /&gt;
    xmlns=&amp;quot;http://xamarin.com/schemas/2014/forms&amp;quot; &lt;br /&gt;
    xmlns:x=&amp;quot;http://schemas.microsoft.com/winfx/2009/xaml&amp;quot; &lt;br /&gt;
    xmlns:converters=&amp;quot;clr-namespace:UBIK.CPL.Converters;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;converters:NullToBoolConverter x:Key=&amp;quot;NullToBool&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;converters:StringFormatConverter x:Key=&amp;quot;Formatter&amp;quot; Parameter1=&amp;quot;5&amp;quot; Parameter2=&amp;quot;{Binding Children.Items.Count}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Cuztomizing --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Whereever this converter is used within the file it was defined in, ''Formatter'' will always have its ''Parameter1'' set to ''5'' and its ''Parameter2'' to the number of children of the currently viewed UBIK object. If this behavior is not intended, consider defining another ''StringFormatConverter'' with a '''different Key''' in the same way as shown above.&amp;lt;br/&amp;gt;&lt;br /&gt;
See below to find out how to use this converter!&lt;br /&gt;
= Usage =&lt;br /&gt;
A converter can only be used in conjunction with a &amp;lt;code&amp;gt;{Binding}&amp;lt;/code&amp;gt;. The following is an easy example, showing how the ''NullToBool'' converter, defined above, can be used.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Label Text=&amp;quot;My Text&amp;quot; IsVisible=&amp;quot;{Binding MyBindableProperty, Converter={StaticResource NullToBool}}&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
If '''MyBindableProperty''' is ''null'' or an empty string, the converter will return '''true''', making the Label visible!&lt;br /&gt;
== Parameter ==&lt;br /&gt;
Some converters accept a '''ConverterParameter''', that passes additional information. Closely read the description of the available converters to find out which accept or even require a parameter to work properly. In Ubik, some converters accept a string parameter, consisting of multiple individual parameters separated by &amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An example of this behavior is the '''ContainsToBoolConverter''', which checks if the current value is contained within a collection of values (passed as the ''parameter''):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Label Text=&amp;quot;My Text&amp;quot; IsVisible=&amp;quot;{Binding MyValue, Converter={StaticResource ContainsToBool}, ConverterParameter=1|2|3|4|5|6|7|8|9}&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The label will only be visible if the ''MyValue'' property (which is expected to parse as an Integer in this example) is one of the values of the parameter.&amp;lt;br/&amp;gt;&lt;br /&gt;
Again, to get the converter working, don't forget to define it in the page's resources!&lt;br /&gt;
&lt;br /&gt;
== FallbackValue ==&lt;br /&gt;
In some rare cases, a converter might not return anything desired (like ''null'') if some condition doesn't work out as it should (e.g. ''value'' is ''null''). To still be able to get a usable return value, it's possible to define a '''FallbackValue'''.&lt;br /&gt;
&lt;br /&gt;
== Example Usage of StringFormatConverter ==&lt;br /&gt;
This converter can take up to two additional parameters during definition. Please see [[#Definition With Properties|Definition With Properties]] for more information!&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Label Text=&amp;quot;{Binding MyValue, Converter={StaticResource Formatter}, ConverterParameter=The Value of my value is \{0\}\, compared to \{1\} and \{2\}!}&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
It's important to note that special characters, like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;,&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, need to be escaped using a &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, else the expression will be wrongly interpreted (and nothing happens)!&lt;br /&gt;
&lt;br /&gt;
The text of the '''ConverterParameter''' will be analyzed, and any occurrance (including duplicates) of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{0}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{1}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{2}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; replaced with the '''binding value''', '''Formatter.Parameter1''' and '''Formatter.Parameter2''' respectively!&lt;br /&gt;
&lt;br /&gt;
Make sure to note, that Maui has a native '''[https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/data-binding/string-formatting?view=net-maui-9.0 string formatting]''' option as well, that is probably way faster than using a converter for it. Furthermore, it supports formatting options!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Data Source =&lt;br /&gt;
Although technically not a converter, the '''SfDataSourceExt''' control is currently on the way of replacing the '''SfDataSourceConverter''', due to improved performance.&lt;br /&gt;
The usage is pretty simple: Similar to the converters, it needs to be defined in the '''Page Resources'''. Then, a '''Key''' and '''Expression''', as well as an '''ItemsSource''' have to be defined. Last, but not least, the the converter can be used within the '''ItemsSource''' property of a Syncfusion '''SfListView'''. See the following example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ContentView x:Class=&amp;quot;UBIK.CPL.Resources.UBIKChildArea&amp;quot; &lt;br /&gt;
    xmlns=&amp;quot;http://xamarin.com/schemas/2014/forms&amp;quot; &lt;br /&gt;
    xmlns:x=&amp;quot;http://schemas.microsoft.com/winfx/2009/xaml&amp;quot; &lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
             &amp;lt;controls:SfDataSourceExt&lt;br /&gt;
                x:Key=&amp;quot;MyDataSource&amp;quot;&lt;br /&gt;
                ItemsSource=&amp;quot;{Binding Children.Items}&amp;quot;&lt;br /&gt;
                Expression=&amp;quot;Item.Content.MetaUID.ToString().ToLower()==&amp;amp;quot;85a50533-3817-4a0b-84cd-615b48b62565&amp;amp;quot; &amp;amp;amp;&amp;amp;amp; Item[&amp;amp;quot;ORGA_STATUS&amp;amp;quot;]!=100&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
    &amp;lt;sync:SfListView&lt;br /&gt;
           x:Name=&amp;quot;ListView1&amp;quot;&lt;br /&gt;
           AllowSwiping=&amp;quot;True&amp;quot;&lt;br /&gt;
           ItemSize=&amp;quot;60&amp;quot;&lt;br /&gt;
           ItemTemplate=&amp;quot;{StaticResource ChildTemplateSelector}&amp;quot;&lt;br /&gt;
           ItemsSource=&amp;quot;{Binding DisplayItems, Source={StaticResource MyDataSource}}&amp;quot;&lt;br /&gt;
           LeftSwipeTemplate=&amp;quot;{StaticResource SwipeLeftTemplateSelector}&amp;quot;&lt;br /&gt;
           RightSwipeTemplate=&amp;quot;{StaticResource SwipeRightTemplateSelector}&amp;quot;&lt;br /&gt;
           SelectionMode=&amp;quot;None&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Thanks to the given expression, filtering is applied once the data source is evaluated. It's important to have [https://www.advancedinstaller.com/user-guide/xml-escaped-chars.html XML special characters] correctly escaped, like the example shows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= List of Available Converters =&lt;br /&gt;
The following list contains all currently available converters for UBIK Mobile customizing. &lt;br /&gt;
&lt;br /&gt;
'''Two-way''' converters can be used with two-way bindings, e.g. a text-box displaying an editable value. If the value updates in the model, the text-box text changes. If the user edits the value, the value in the model behind also gets updated.&lt;br /&gt;
As a clarification, '''Value''' refers to the '''Binding Value''', and '''parameter''' to the '''ConverterParameter'''!&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; style=&amp;quot;width:100%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Converter !! 2-Way !! Output Type || Input Type || Parameter Type || Description &lt;br /&gt;
|-&lt;br /&gt;
| BooleanConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || Boolean || Boolean, String || || &lt;br /&gt;
Interprets a '''boolean value''' or a '''String value''' and returns it. If the value cannot be interpreted, ''false'' is returned.&lt;br /&gt;
|- &lt;br /&gt;
| BooleanInvertConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || Boolean || Boolean, String || || &lt;br /&gt;
Interprets a '''boolean value''' or a '''String value''' and converts it into its '''inverted value'''. If the value cannot be interpreted, ''false'' is returned.&lt;br /&gt;
|- &lt;br /&gt;
| BooleanToFontAttributeConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || FontAttribute || Boolean || || &lt;br /&gt;
Converts a '''boolean''' into a '''[https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.fontattributes?view=xamarin-forms font attribute]''' value. In detail, if the value is ''true'', the parameter is interpreted (''Bold'', ''Italic'', ''None'') and returned. The default returned font-attribute is ''None''.&lt;br /&gt;
|- &lt;br /&gt;
| ByteToImageSourceValueConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || ImageSource || Byte[ ],&amp;lt;br/&amp;gt;Byte Stream || || &lt;br /&gt;
Converts a '''byte stream''' value into an '''image source'''.&lt;br /&gt;
|- &lt;br /&gt;
| ChildAreaTemplateConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Child&amp;lt;wbr/&amp;gt;Area&amp;lt;wbr/&amp;gt;Template || Content&amp;lt;wbr/&amp;gt;ViewModel || || &lt;br /&gt;
Returns a '''ChildAreaTemplate''' from a '''Content&amp;lt;wbr/&amp;gt;ViewModel''' or ''null'' if the ViewModel cannot be interpreted.&lt;br /&gt;
|- &lt;br /&gt;
| ChildItem&amp;lt;wbr/&amp;gt;SelectionMode&amp;lt;wbr/&amp;gt;To&amp;lt;wbr/&amp;gt;SfListView&amp;lt;wbr/&amp;gt;SelectionMode&amp;lt;wbr/&amp;gt;Converter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || [https://help.syncfusion.com/cr/cref_files/xamarin/Syncfusion.SfListView.XForms~Syncfusion.ListView.XForms.SfListView~SelectionMode.html ListView&amp;lt;wbr/&amp;gt;SelectionMode] || ChildItem&amp;lt;wbr/&amp;gt;SelectionMode || || &lt;br /&gt;
Converts a '''ChildItem&amp;lt;wbr/&amp;gt;SelectionMode''' to a Syncfusion '''[https://help.syncfusion.com/cr/cref_files/xamarin/Syncfusion.SfListView.XForms~Syncfusion.ListView.XForms.SfListView~SelectionMode.html ListView&amp;lt;wbr/&amp;gt;SelectionMode]'''. Default is &amp;quot;Single&amp;quot;.&lt;br /&gt;
|- &lt;br /&gt;
| ClassificationToBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || ContentViewModel || || &lt;br /&gt;
Returns a '''boolean''' indicating whether the given '''ContentViewModel''' is successfully classified.&lt;br /&gt;
|- &lt;br /&gt;
| ContainsToBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || String,&amp;lt;br/&amp;gt;Guid,&amp;lt;br/&amp;gt;Object || || &lt;br /&gt;
Checks if the delivered value is '''contained''' within a collection of values (delivered in the parameter, seperated with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;). If the value is contained, ''true'' will be returned, else ''false''. The functionality is similar to the ''ContainsToVisibilityConverter'' in the WinX project.&lt;br /&gt;
|- &lt;br /&gt;
| ContainsToInvertedBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || String,&amp;lt;br/&amp;gt;Guid,&amp;lt;br/&amp;gt;Object || || &lt;br /&gt;
Same as the ''ContainsToBoolConverter'', but with '''inverted output'''.&lt;br /&gt;
|- &lt;br /&gt;
| ContentAreaTeamplateConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || UBIKContentArea || ContentViewModel || || This converter is '''not yet finished''' and just returns the ''UBIKContentArea'' if the value is a ''ContentViewModel''.&lt;br /&gt;
|- &lt;br /&gt;
| StringToDateTimeTypesConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓  || [https://docs.microsoft.com/en-us/dotnet/api/system.datetime DateTime], [https://docs.microsoft.com/en-us/dotnet/api/system.timespan TimeSpan] || String || || &lt;br /&gt;
Converts a String to the correct DateType, which can be either '''[https://docs.microsoft.com/en-us/dotnet/api/system.datetime DateTime]''' or '''[https://docs.microsoft.com/en-us/dotnet/api/system.timespan TimeSpan]'''. If the value cannot be interpreted, the unchanged String value is returned. The Converter can also be used to convert DateTime or TimeSpan into a string. The Format will be determined by the current culture.&lt;br /&gt;
|- &lt;br /&gt;
| DateTimeOffsetToDateConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || [https://docs.microsoft.com/en-us/dotnet/api/system.datetime DateTime] || [https://docs.microsoft.com/en-us/dotnet/api/system.datetimeoffset DateTimeOffset] || || &lt;br /&gt;
Converts a '''[https://docs.microsoft.com/en-us/dotnet/api/system.datetimeoffset DateTimeOffset]''' to the correct '''[https://docs.microsoft.com/en-us/dotnet/api/system.datetime DateTime]''', applied to the current date and time. If the value cannot be interpreted, a new ''DateTime'', generated from the device's current time (&amp;lt;code&amp;gt;DateTime.Now&amp;lt;/code&amp;gt;) is returned.&lt;br /&gt;
|- &lt;br /&gt;
| DateTimeToFromNowStringConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || String || [https://docs.microsoft.com/en-us/dotnet/api/system.datetime DateTime] || || &lt;br /&gt;
Returns a '''[https://docs.microsoft.com/en-us/dotnet/api/system.datetime DateTime]''' into a human-readable and easily understandable ''string message'' (the last applying one will be taken):&lt;br /&gt;
* Less than 5 minutes in the past: ''Just now''&lt;br /&gt;
* Less than 10 minutes in the past: ''A few minutes ago''&lt;br /&gt;
* Less than 1 hour in the past: ''An hour ago''&lt;br /&gt;
* Less than 23 Hours in the past: ''Some hours ago''&lt;br /&gt;
* Less than 1 day in the past: ''Yesterday''&lt;br /&gt;
* More than 1 day in the past: The ''DateTime'' value formatted according to the device's localization rules.&lt;br /&gt;
* Not interpretable: ''???''&lt;br /&gt;
|- &lt;br /&gt;
| DebugConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || Object || Object || || &lt;br /&gt;
A converter returning the given value for '''debug reasons'''.&lt;br /&gt;
|- &lt;br /&gt;
| DistanceToStringConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || String || Double || || &lt;br /&gt;
Returns the given value interpreted as '''length'''. Values are returned in kilometers with two comma digits (e.g. 2.84km), values smaller than 1km are returned as meters and ''NaN'' will be returned as ''infinity''. If the value cannot be interpreted, an empty string will be returned.&lt;br /&gt;
|- &lt;br /&gt;
| EqualityToBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || Object,&amp;lt;br/&amp;gt;String || Object,&amp;lt;br/&amp;gt;String || &lt;br /&gt;
Returns ''true'' if the given value and parameter are '''equal to each other''', ''false'' otherwise.&lt;br /&gt;
|- &lt;br /&gt;
| EqualityToInvertedBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || Object,&amp;lt;br/&amp;gt;String || Object,&amp;lt;br/&amp;gt;String || &lt;br /&gt;
Returns ''true'' if the given value and parameter are '''not equal to each other''', ''false'' otherwise.&lt;br /&gt;
|- &lt;br /&gt;
| SelectionChangedEventArgsConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || [https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.selectionchangedeventargs List&amp;lt;wbr/&amp;gt;Selection&amp;lt;wbr/&amp;gt;Changed&amp;lt;wbr/&amp;gt;EventArgs] || [https://help.syncfusion.com/cr/cref_files/xamarin/Syncfusion.SfListView.XForms~Syncfusion.ListView.XForms.ItemSelectionChangedEventArgs.html Item&amp;lt;wbr/&amp;gt;Selection&amp;lt;wbr/&amp;gt;Changed&amp;lt;wbr/&amp;gt;EventArgs] || || &lt;br /&gt;
Converts an Syncfusion '''[https://help.syncfusion.com/cr/cref_files/xamarin/Syncfusion.SfListView.XForms~Syncfusion.ListView.XForms.ItemSelectionChangedEventArgs.html Item&amp;lt;wbr/&amp;gt;Selection&amp;lt;wbr/&amp;gt;Changed&amp;lt;wbr/&amp;gt;EventArgs]''' to a '''[https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.selectionchangedeventargs List&amp;lt;wbr/&amp;gt;Selection&amp;lt;wbr/&amp;gt;Changed&amp;lt;wbr/&amp;gt;EventArgs]'''. &amp;lt;br/&amp;gt;The use-case of this converter is highly specific.&lt;br /&gt;
|- &lt;br /&gt;
| FilterCriterionToValueConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || String || FilterCriterion || || &lt;br /&gt;
Converts a [[Property_Based_Content_Filters|'''FilterCriterion''']] to its value. The functionality is similar to UWP's FilterCriterionToValueConverter.&lt;br /&gt;
|- &lt;br /&gt;
| GuidPropertyValueConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || String || Guid || Binding, where source is ContentViewModel || &lt;br /&gt;
Returns the '''first item''' of the parameter's ''Source-ViewModel'' that '''matches the given GUID''' value. If none is found, ''null'' is returned.&lt;br /&gt;
|- &lt;br /&gt;
| IntToColorConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Color || Integer || || &lt;br /&gt;
Converts an ARGB '''integer''' value to a '''color'''. If the value cannot be interpreted, the converter tries to parse the parameter as a ''color'' to return it. If everything fails, ''transparent'' is returned.&lt;br /&gt;
|- &lt;br /&gt;
| ItemCountToBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || Integer || Integer || &lt;br /&gt;
This converter has a '''property''' to set the '''boolean return value''', called ''LesserOrEqualReturnValue''. This property-value will be returned if the given value is '''smaller than or equal to''' the threshold (parameter, defaults to 0). If the value is '''bigger than''' the threshold, the '''inverted''' ''LesserOrEqualReturnValue'' will be returned.&amp;lt;br/&amp;gt;&lt;br /&gt;
In any other case (like the value cannot be interpreted), ''false'' is returned, so it's a good idea to set the converter's property in a way that the return is only ''true'' if you need it.&lt;br /&gt;
|- &lt;br /&gt;
| ItemCountToOverflowConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || String || Integer || Integer || Creates a '''human-readable text''' indicating '''how many items are available'''. The value will be interpreted as the '''total item count''' and the parameter as '''overflow threshold''' (defaults to 99). &amp;lt;br/&amp;gt;If there are more items than the overflow, the overflow value with a + sign will be returned (e.g. 99+). If not, the value itself will be returned. If everything fails, ''null'' is returned.&lt;br /&gt;
|- &lt;br /&gt;
| NullToBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || Boolean || Object,&amp;lt;br/&amp;gt;String|| || &lt;br /&gt;
''Null'' or an '''empty string''' value get converted to ''true'', and everything else to ''false''.&lt;br /&gt;
|- &lt;br /&gt;
| NullToInvertedBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || Boolean || Object,&amp;lt;br/&amp;gt;String || || &lt;br /&gt;
''Null'' or an '''empty string''' value get converted to ''false'', and everything else to ''true''.&lt;br /&gt;
|- &lt;br /&gt;
| PathToImageSourceValueConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Image Source || String || || &lt;br /&gt;
Reads the '''path''' provided as parameter and creates an '''image source''' from it.&lt;br /&gt;
|- &lt;br /&gt;
| PercentageToProgressConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Double || Integer,&amp;lt;br/&amp;gt;Double || || &lt;br /&gt;
The '''numeric value'''  (int or double), interpreted as '''percentage from 0 to 100''', get converted to a '''progress level'''  (0 to 1). Values outside this range will be contained.&lt;br /&gt;
|- &lt;br /&gt;
| PropertyNameExistsToBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean (Nullable) || ContentViewModel,&amp;lt;br/&amp;gt;IContent || || &lt;br /&gt;
Converts a property to a '''boolean''' based on its '''existence'''. If it exists, ''true'' will be returned, else ''false'' or ''null'' (if something couldn't be properly interpreted).&lt;br /&gt;
|- &lt;br /&gt;
| PropertyNameExistsToInvertedBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean (Nullable) || ContentViewModel,&amp;lt;br/&amp;gt;IContent || || &lt;br /&gt;
Converts a property to a '''boolean''' based on its '''existence'''. If it exists, ''false'' will be returned, else ''true'' or ''null'' (if something couldn't be properly interpreted).&lt;br /&gt;
|- &lt;br /&gt;
&lt;br /&gt;
| PropertyValueToSelectiveItemConverter  || style=&amp;quot;text-align: center;&amp;quot; | ✓ || Boolean,&amp;lt;br/&amp;gt;String,&amp;lt;br/&amp;gt;Integer,&amp;lt;br/&amp;gt;Double,&amp;lt;br/&amp;gt;DateTime,&amp;lt;br/&amp;gt;Guid,&amp;lt;br/&amp;gt;FileReferenceData,&amp;lt;br/&amp;gt;GeoData,&amp;lt;br/&amp;gt;Object || Boolean,&amp;lt;br/&amp;gt;String,&amp;lt;br/&amp;gt;Integer,&amp;lt;br/&amp;gt;Double,&amp;lt;br/&amp;gt;DateTime,&amp;lt;br/&amp;gt;Guid,&amp;lt;br/&amp;gt;FileReferenceData,&amp;lt;br/&amp;gt;GeoData,&amp;lt;br/&amp;gt;Object || || &lt;br /&gt;
Converts a '''item''' of an [[Active List Client]] or a [[MetaProperty]] [[MetaProperty#Selective List|Selective List]] to its value. If none is found, null will be returned.&lt;br /&gt;
|- &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| RootAreaTemplateConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || ContentView || Object || || &lt;br /&gt;
If the provided value is '''not null''', the '''UBIKRootArea template''' will be returned.&lt;br /&gt;
|- &lt;br /&gt;
| SelectiveItemToValueConverter || style=&amp;quot;text-align: center;&amp;quot; | ✓ || Boolean,&amp;lt;br/&amp;gt;String,&amp;lt;br/&amp;gt;Integer,&amp;lt;br/&amp;gt;Double,&amp;lt;br/&amp;gt;DateTime,&amp;lt;br/&amp;gt;Guid,&amp;lt;br/&amp;gt;FileReferenceData,&amp;lt;br/&amp;gt;GeoData,&amp;lt;br/&amp;gt;Object || Boolean,&amp;lt;br/&amp;gt;String,&amp;lt;br/&amp;gt;Integer,&amp;lt;br/&amp;gt;Double,&amp;lt;br/&amp;gt;DateTime,&amp;lt;br/&amp;gt;Guid,&amp;lt;br/&amp;gt;FileReferenceData,&amp;lt;br/&amp;gt;GeoData,&amp;lt;br/&amp;gt;Object || Binding, where source is ContentViewModel || &lt;br /&gt;
Converts a '''item''' of a '''selective list''' to its value. If none is found, the passed ''value'' will be returned.&lt;br /&gt;
|- &lt;br /&gt;
| SelectiveListToItemsConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || List of PropertyItems  || IPropertyItem || || &lt;br /&gt;
Returns all items from a selective list. The converter can only be used in combination with a standard MetaProperty level [[SELECTIVELIST|SelectiveList]], not with an instance level [[Active_List_Client|Active list]].&lt;br /&gt;
|- &lt;br /&gt;
| SfDataSourceConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || DataSource (for ListView) || Double || String (Expression) || &lt;br /&gt;
It's an advanced converter used for '''loading items''' and '''applying filters''' on it. It replaces to ''CollectionToViewConverter'' from the WinX.UWP project. The data source can be directly used with a ''[https://help.syncfusion.com/xamarin/sflistview/overview SfListView]''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
'''This converter is obsolete!'''&amp;lt;br/&amp;gt;Use '''SfDataSourceExt''' (see [[#Data Source|Data Source]]) instead!&lt;br /&gt;
|- &lt;br /&gt;
| StringContainsToBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || String || String || &lt;br /&gt;
Returns a '''boolean''' indicating whether the parameter string is included in the value string.&lt;br /&gt;
|- &lt;br /&gt;
| StringContainsToInvertedBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || String || String || &lt;br /&gt;
Same as the ''StringContainsToBoolConverter'' but with '''inverted output'''.&lt;br /&gt;
|- &lt;br /&gt;
| StringFormatConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || String || Object || String || Allows the creation of a '''nicely formatted ''string'' message''', similar to [https://docs.microsoft.com/en-us/dotnet/api/system.string.format C#'s String.Format method].&amp;lt;br/&amp;gt;The value will be interpreted as the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{0}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; element, and the parameter is the template string (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;The total count is: {0}!&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Up to two additional parameters, named ''Parameter1'' and ''Parameter2'', can be defined at the converter declaration. Adding formatting options to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{0}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; notation is not possible.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Attention''', using the native '''[https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/data-binding/string-formatting StringFormat]''' option is not only faster, but it also offers more customizability of the value!&amp;lt;br/&amp;gt;&lt;br /&gt;
You might still want to use the ''StringFormatConverter'' in rare cases, though!&lt;br /&gt;
|- &lt;br /&gt;
| ToStringFormatConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || String || Double,&amp;lt;br/&amp;gt;Float,&amp;lt;br/&amp;gt;Integer,&amp;lt;br/&amp;gt;DateTime,&amp;lt;br/&amp;gt;String || String || Converts '''primitives''' or '''[https://docs.microsoft.com/en-us/dotnet/api/system.datetime DateTime]''' to string and allows the application of '''[https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings formatting options]''' (as parameter). &amp;lt;br/&amp;gt;Adding a &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; to the end of the format-parameter allows '''[https://docs.microsoft.com/en-us/dotnet/api/system.math.truncate truncation]''' of all decimal places.&lt;br /&gt;
|-&lt;br /&gt;
| TypeNameToBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || Object || String || Returns ''true'' if the type name of the value is present in the parameter-string (seperated by &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;).&lt;br /&gt;
|- &lt;br /&gt;
| TypeNameToInvertedBoolConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || Boolean || Object || String || Inverted ''TypeNameTo&amp;lt;wbr/&amp;gt;BoolConverter''.&lt;br /&gt;
|- &lt;br /&gt;
| DataTemplateItemTemplateSelectorConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || ChildItem&amp;lt;wbr/&amp;gt;Template&amp;lt;wbr/&amp;gt;Selector || String || String || Chooses what '''ChildItem&amp;lt;wbr/&amp;gt;Template&amp;lt;wbr/&amp;gt;Selector''' to return. Having a parameter with the content &amp;quot;Small&amp;quot; returns the small item template selector.&lt;br /&gt;
|- &lt;br /&gt;
| DataTemplateItemsPanelConverter || style=&amp;quot;text-align: center;&amp;quot; | ✗ || ItemsPanelTemplate || Query&amp;lt;wbr/&amp;gt;Details&amp;lt;wbr/&amp;gt;Page&amp;lt;wbr/&amp;gt;ViewModel || || Chooses what '''ItemPanel&amp;lt;wbr/&amp;gt;Template''' to return. Having a parameter with the content &amp;quot;Small&amp;quot; returns the small item template selector.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Converters In Xamarin]]&lt;br /&gt;
[[Category:Mobile|Converters In Xamarin]]&lt;br /&gt;
[[Category:XAML|Converters In Xamarin]]&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
[[XAML#Converters|Converters in UWP/WinX]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Client | XAML | Xamarin]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Converters In Xamarin]]&lt;br /&gt;
[[Category:Mobile|Converters In Xamarin]]&lt;br /&gt;
[[Category:XAML|Converters In Xamarin]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29696</id>
		<title>Active List Client</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29696"/>
				<updated>2026-04-20T08:44:05Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
==Introduction {{Version/WinXSince|5.1.0.0}} {{Version/MobileSince|5.1.0.0}}==&lt;br /&gt;
If an Active List is defined on a [[Instance|Content Object]] that is associated with an [[MetaProperty#Integer|integer]] [[MetaProperty]], the property is displayed like a usual [[UBIK WinX Client Basics#Selective List Properties|SelectiveList]] which is based on a [[MetaProperty]]. An ActiveList (i.e., if it has been configured on the server for a content object) always takes precedence over a MetaProperty SelectiveList. For editing, it behaves exactly the same as with a standard [[SELECTIVELIST|SelectiveList]].&lt;br /&gt;
&lt;br /&gt;
{{Hint|There are no visible differences in the UI between an ActiveList and a MetaProperty SelectiveList.}}&lt;br /&gt;
&lt;br /&gt;
=== XAML ===&lt;br /&gt;
A new SelectiveItems property was added to the PropertyViewModel to enable access to an ActiveList via XAML. No DataTriggers or additional checks are required, as the correct list selection is handled automatically.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Mobile (MAUI)&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
xmlns:controls=&amp;quot;clr-namespace:UBIK.MAUI.Controls&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;SelectiveList&amp;quot;&lt;br /&gt;
    BindingContext=&amp;quot;{TemplateBinding BindingContext}&amp;quot;&lt;br /&gt;
    ItemSize=&amp;quot;40&amp;quot;&lt;br /&gt;
    ItemTemplate=&amp;quot;{StaticResource PopupSelectiveListItemTemplate}&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding SelectiveItems}&amp;quot;&lt;br /&gt;
    SelectedItem=&amp;quot;{Binding ValueItem.PropertyValue, Mode=OneWay, Converter={StaticResource PropertyValueToSelectiveItem}, ConverterParameter={Binding Source={x:Reference SelectiveList}, Path=ItemsSource}}&amp;quot;&lt;br /&gt;
    SelectionBackground=&amp;quot;{DynamicResource UBIKAccentColor}&amp;quot;&lt;br /&gt;
    SelectionMode=&amp;quot;Single&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource UBIKListView}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;UWP&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
xmlns:controls=&amp;quot;using:UBIK.WinX.Controls&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;controls:ComboBoxExt&lt;br /&gt;
    x:Name=&amp;quot;ComboBox&amp;quot;&lt;br /&gt;
    Grid.ColumnSpan=&amp;quot;2&amp;quot;&lt;br /&gt;
    HorizontalAlignment=&amp;quot;Stretch&amp;quot;&lt;br /&gt;
    DisplayMemberPath=&amp;quot;DisplayText&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding PropertyViewModel.SelectiveItems}&amp;quot;&lt;br /&gt;
    PlaceholderText=&amp;quot;{Binding PropertyEdit_PickerPlaceholder, Source={StaticResource AppResources}}&amp;quot;&lt;br /&gt;
    SelectedValue=&amp;quot;{Binding PropertyValue, Mode=TwoWay}&amp;quot;&lt;br /&gt;
    SelectedValuePath=&amp;quot;Value&amp;quot;&lt;br /&gt;
    Visibility=&amp;quot;{Binding PropertyViewModel.ShowComboBox, Converter={StaticResource BoolToVisConverter}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[UBIK Active Lists|Active Lists Server]]&lt;br /&gt;
* [[MROCLS PICK LIST TASK|Pick List Task]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:ActiveList|Active List Client]]&lt;br /&gt;
[[Category:Active List|Active List Client]]&lt;br /&gt;
[[Category:Client|Active List Client]]&lt;br /&gt;
[[Category:Mobile|Active List Client]]&lt;br /&gt;
[[Category:Version 5.1|Active List Client]]&lt;br /&gt;
[[Category:WinX|Active List Client]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=UBIK_Active_Lists&amp;diff=29695</id>
		<title>UBIK Active Lists</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=UBIK_Active_Lists&amp;diff=29695"/>
				<updated>2026-04-20T08:37:43Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UBIK}} ActiveLists provide the possibility to configure instance-specific lists for integer MetaProperties.&lt;br /&gt;
&lt;br /&gt;
= Purpose =&lt;br /&gt;
In some cases it is required to define a list of selectable values for an integer MetaProperty that is specific to a single instance rather than globally defined at the MetaClass level. For example, two instances of the same MetaClass can offer different selectable values for the same MetaProperty.&lt;br /&gt;
&lt;br /&gt;
{{UBIK}} ActiveLists are the representation of such lists. They update dynamically on the client side without requiring an ACM rebuild and can be maintained per instance through server methods.&lt;br /&gt;
&lt;br /&gt;
If a MetaProperty has both a SelectiveList and an ActiveList, the SelectiveList takes precedence when data is displayed on the client, and the ActiveList is ignored.&lt;br /&gt;
&lt;br /&gt;
= Client Behavior =&lt;br /&gt;
When the user opens an ActiveList:&lt;br /&gt;
* The label for each option is shown in the language configured on the web service. If a translation for the configured language is unavailable, the label is displayed in the default language.&lt;br /&gt;
* Each option in the ActiveList has an associated unique integer value that is set to the MetaProperty when selected.&lt;br /&gt;
* Only one option can be selected at a time. Selecting an option updates the MetaProperty value immediately.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sorting of items in the dropdown:&lt;br /&gt;
&lt;br /&gt;
* If all options in the ActiveList have unique sort order values, they are displayed in ascending order of these sort order values.&lt;br /&gt;
* If sort orders are not unique, options with the same sort order are sorted in ascending order by their label.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details see: [[Active List Client]]&lt;br /&gt;
&lt;br /&gt;
= Server-Side Concept =&lt;br /&gt;
ActiveLists are stored in serialized JSON form in the '''ACTIVE_LISTS''' property of the instance.&lt;br /&gt;
&lt;br /&gt;
* Each list is associated with exactly one integer MetaProperty of the instance.&lt;br /&gt;
* An instance can have multiple ActiveLists, one for each integer MetaProperty.&lt;br /&gt;
* ActiveLists can be viewed in UBIK.Studio in the Object Explorer under “ActiveLists” for the instance, but they cannot be edited there.&lt;br /&gt;
&lt;br /&gt;
= Managing {{UBIK}} ActiveLists =&lt;br /&gt;
ActiveLists are managed entirely through server methods. The most relevant methods are:&lt;br /&gt;
&lt;br /&gt;
=== AddOrUpdateActiveList(metaProperty, value, labels, sortOrder) ===&lt;br /&gt;
Adds a new list item or updates the labels of an existing one. Optionally repositions the item according to sortOrder.&lt;br /&gt;
&lt;br /&gt;
=== SortActiveList(metaProperty, orderedValues) ===&lt;br /&gt;
Reorders the items of a list according to the specified sequence. Items not included in '''orderedValues''' are appended in their current order.&lt;br /&gt;
&lt;br /&gt;
=== RemoveActiveListItem(metaProperty, value) ===&lt;br /&gt;
Removes a single list item by its integer value.&lt;br /&gt;
&lt;br /&gt;
=== RemoveActiveList(metaProperty) ===&lt;br /&gt;
Removes the entire list for the given MetaProperty.&lt;br /&gt;
&lt;br /&gt;
=== GetActiveLists() ===&lt;br /&gt;
Returns all ActiveLists defined on the instance as '''UbikActiveList''' objects, each containing the MetaProperty name and its list items.&lt;br /&gt;
&lt;br /&gt;
= Who-Bert Example =&lt;br /&gt;
The following Who-Bert snippet demonstrates how to work with an ActiveList for a MetaProperty named &amp;quot;'''MP_INT_A'''&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using UBIK.Kernel;&lt;br /&gt;
using UBIK.Runtime;&lt;br /&gt;
using UBIK.Runtime.Sys;&lt;br /&gt;
using UBIK.Compiler;&lt;br /&gt;
using UBIK.Content;&lt;br /&gt;
&lt;br /&gt;
namespace Studio&lt;br /&gt;
{&lt;br /&gt;
    public class ObjectTest&lt;br /&gt;
    {&lt;br /&gt;
        public void TestObject(params BaseClass[] InVariables)&lt;br /&gt;
        {&lt;br /&gt;
            Debugger.Output(this, &amp;quot;*** Started ActiveList Example&amp;quot;);&lt;br /&gt;
            foreach (BaseClass obj in InVariables)&lt;br /&gt;
            {&lt;br /&gt;
                ContentClass c = obj as ContentClass;&lt;br /&gt;
&lt;br /&gt;
                var labels1 = new Dictionary&amp;lt;string, string&amp;gt; { { &amp;quot;en&amp;quot;, &amp;quot;One&amp;quot; }, { &amp;quot;de&amp;quot;, &amp;quot;Eins&amp;quot; } };&lt;br /&gt;
                var labels2 = new Dictionary&amp;lt;string, string&amp;gt; { { &amp;quot;en&amp;quot;, &amp;quot;Two&amp;quot; }, { &amp;quot;de&amp;quot;, &amp;quot;Zwei&amp;quot; } };&lt;br /&gt;
                var labels3 = new Dictionary&amp;lt;string, string&amp;gt; { { &amp;quot;en&amp;quot;, &amp;quot;Three&amp;quot; }, { &amp;quot;de&amp;quot;, &amp;quot;Drei&amp;quot; } };&lt;br /&gt;
&lt;br /&gt;
                // Add items&lt;br /&gt;
                c.AddOrUpdateActiveList(&amp;quot;MP_INT_A&amp;quot;, 1, labels1);&lt;br /&gt;
                c.AddOrUpdateActiveList(&amp;quot;MP_INT_A&amp;quot;, 2, labels2);&lt;br /&gt;
                c.AddOrUpdateActiveList(&amp;quot;MP_INT_A&amp;quot;, 3, labels3);&lt;br /&gt;
&lt;br /&gt;
                // Update labels and move item 3 to index 0&lt;br /&gt;
                var labels3Updated = new Dictionary&amp;lt;string, string&amp;gt; { { &amp;quot;en&amp;quot;, &amp;quot;Three Updated&amp;quot; }, { &amp;quot;de&amp;quot;, &amp;quot;Drei Aktualisiert&amp;quot; } };&lt;br /&gt;
                c.AddOrUpdateActiveList(&amp;quot;MP_INT_A&amp;quot;, 3, labels3Updated, 0);&lt;br /&gt;
&lt;br /&gt;
                // Sort items: 2, 1, 3&lt;br /&gt;
                c.SortActiveList(&amp;quot;MP_INT_A&amp;quot;, new int[] { 2, 1, 3 });&lt;br /&gt;
&lt;br /&gt;
                // Remove item 1&lt;br /&gt;
                c.RemoveActiveListItem(&amp;quot;MP_INT_A&amp;quot;, 1);&lt;br /&gt;
&lt;br /&gt;
                c.Save();&lt;br /&gt;
            }&lt;br /&gt;
            Debugger.Output(this, &amp;quot;*** Finished ActiveList Example&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
} &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Further Notes =&lt;br /&gt;
&lt;br /&gt;
* ActiveLists are designed for lightweight, instance-specific value lists that can be updated without ACM rebuilds.&lt;br /&gt;
* They are ideal for use cases where list content varies between instances of the same MetaClass.&lt;br /&gt;
* When both an ActiveList and a SelectiveList are defined for the same MetaProperty, the SelectiveList overrides the ActiveList on the client.&lt;br /&gt;
&lt;br /&gt;
[[Category:ActiveList|UBIK Active Lists]]&lt;br /&gt;
[[Category:Server|UBIK Active Lists]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29694</id>
		<title>Active List Client</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29694"/>
				<updated>2026-04-20T08:35:43Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
==Introduction {{Version/WinXSince|5.1.0.0}} {{Version/MobileSince|5.1.0.0}}==&lt;br /&gt;
If an Active List is defined on a [[Instance|Content Object]] that is associated with an [[MetaProperty#Integer|integer]] [[MetaProperty]], the property is displayed like a usual [[UBIK WinX Client Basics#Selective List Properties|SelectiveList]]. An ActiveList (i.e., if it has been configured on the server for a content object) always takes precedence over a MetaProperty SelectiveList. For editing, it behaves exactly the same as with a standard SelectiveList.&lt;br /&gt;
&lt;br /&gt;
{{Hint|There are no visible differences in the UI between an ActiveList and a MetaProperty SelectiveList.}}&lt;br /&gt;
&lt;br /&gt;
=== XAML ===&lt;br /&gt;
A new SelectiveItems property was added to the PropertyViewModel to enable access to an ActiveList from XAML. No DataTriggers or additional checks are required, as the correct list selection is handled automatically.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;MAUI&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;SelectiveList&amp;quot;&lt;br /&gt;
    BindingContext=&amp;quot;{TemplateBinding BindingContext}&amp;quot;&lt;br /&gt;
    ItemSize=&amp;quot;40&amp;quot;&lt;br /&gt;
    ItemTemplate=&amp;quot;{StaticResource PopupSelectiveListItemTemplate}&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding SelectiveItems}&amp;quot;&lt;br /&gt;
    SelectedItem=&amp;quot;{Binding ValueItem.PropertyValue, Mode=OneWay, Converter={StaticResource PropertyValueToSelectiveItem}, ConverterParameter={Binding Source={x:Reference SelectiveList}, Path=ItemsSource}}&amp;quot;&lt;br /&gt;
    SelectionBackground=&amp;quot;{DynamicResource UBIKAccentColor}&amp;quot;&lt;br /&gt;
    SelectionMode=&amp;quot;Single&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource UBIKListView}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;UWP&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ComboBoxExt&lt;br /&gt;
    x:Name=&amp;quot;ComboBox&amp;quot;&lt;br /&gt;
    Grid.ColumnSpan=&amp;quot;2&amp;quot;&lt;br /&gt;
    HorizontalAlignment=&amp;quot;Stretch&amp;quot;&lt;br /&gt;
    DisplayMemberPath=&amp;quot;DisplayText&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding PropertyViewModel.SelectiveItems}&amp;quot;&lt;br /&gt;
    PlaceholderText=&amp;quot;{Binding PropertyEdit_PickerPlaceholder, Source={StaticResource AppResources}}&amp;quot;&lt;br /&gt;
    SelectedValue=&amp;quot;{Binding PropertyValue, Mode=TwoWay}&amp;quot;&lt;br /&gt;
    SelectedValuePath=&amp;quot;Value&amp;quot;&lt;br /&gt;
    Visibility=&amp;quot;{Binding PropertyViewModel.ShowComboBox, Converter={StaticResource BoolToVisConverter}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[UBIK Active Lists|Active Lists Server]]&lt;br /&gt;
* [[MROCLS PICK LIST TASK|Pick List Task]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:ActiveList|Active List Client]]&lt;br /&gt;
[[Category:Active List|Active List Client]]&lt;br /&gt;
[[Category:Client|Active List Client]]&lt;br /&gt;
[[Category:Mobile|Active List Client]]&lt;br /&gt;
[[Category:Version 5.1|Active List Client]]&lt;br /&gt;
[[Category:WinX|Active List Client]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29693</id>
		<title>Active List Client</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29693"/>
				<updated>2026-04-20T08:28:04Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
==Introduction {{Version/WinXSince|5.1.0.0}} {{Version/MobileSince|5.1.0.0}}==&lt;br /&gt;
If an Active List is defined on a [[Instance|Content Object]] that is associated with an [[MetaProperty#Integer|integer]] [[MetaProperty]], the property is displayed like a usual [[UBIK WinX Client Basics#Selective List Properties|SelectiveList]]. An ActiveList (i.e., if it has been configured on the server for a content object) always takes precedence over a MetaProperty SelectiveList. For editing, it behaves exactly the same as with a standard SelectiveList.&lt;br /&gt;
&lt;br /&gt;
When the user opens an ActiveList:&lt;br /&gt;
* All available options from the ActiveList are displayed as text labels.&lt;br /&gt;
* The label for each option is shown in the language configured on the web service. If a translation for the configured language is unavailable, the label is displayed in the default language.&lt;br /&gt;
* Each option in the ActiveList has an associated unique integer value that is set to the MetaProperty when selected.&lt;br /&gt;
* Only one option can be selected at a time. Selecting an option updates the MetaProperty value immediately.&lt;br /&gt;
&lt;br /&gt;
Sorting of items in the dropdown:&lt;br /&gt;
&lt;br /&gt;
* If all options in the ActiveList have unique sort order values, they are displayed in ascending order of these sort order values.&lt;br /&gt;
* If sort orders are not unique, options with the same sort order are sorted in ascending order by their label.&lt;br /&gt;
&lt;br /&gt;
{{Hint|There are no visible differences in the UI between an ActiveList and a MetaProperty SelectiveList.}}&lt;br /&gt;
&lt;br /&gt;
=== XAML ===&lt;br /&gt;
A new SelectiveItems property was added to the PropertyViewModel to enable access to an ActiveList from XAML. No DataTriggers or additional checks are required, as the correct list selection is handled automatically.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;MAUI&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;SelectiveList&amp;quot;&lt;br /&gt;
    BindingContext=&amp;quot;{TemplateBinding BindingContext}&amp;quot;&lt;br /&gt;
    ItemSize=&amp;quot;40&amp;quot;&lt;br /&gt;
    ItemTemplate=&amp;quot;{StaticResource PopupSelectiveListItemTemplate}&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding SelectiveItems}&amp;quot;&lt;br /&gt;
    SelectedItem=&amp;quot;{Binding ValueItem.PropertyValue, Mode=OneWay, Converter={StaticResource PropertyValueToSelectiveItem}, ConverterParameter={Binding Source={x:Reference SelectiveList}, Path=ItemsSource}}&amp;quot;&lt;br /&gt;
    SelectionBackground=&amp;quot;{DynamicResource UBIKAccentColor}&amp;quot;&lt;br /&gt;
    SelectionMode=&amp;quot;Single&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource UBIKListView}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;UWP&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ComboBoxExt&lt;br /&gt;
    x:Name=&amp;quot;ComboBox&amp;quot;&lt;br /&gt;
    Grid.ColumnSpan=&amp;quot;2&amp;quot;&lt;br /&gt;
    HorizontalAlignment=&amp;quot;Stretch&amp;quot;&lt;br /&gt;
    DisplayMemberPath=&amp;quot;DisplayText&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding PropertyViewModel.SelectiveItems}&amp;quot;&lt;br /&gt;
    PlaceholderText=&amp;quot;{Binding PropertyEdit_PickerPlaceholder, Source={StaticResource AppResources}}&amp;quot;&lt;br /&gt;
    SelectedValue=&amp;quot;{Binding PropertyValue, Mode=TwoWay}&amp;quot;&lt;br /&gt;
    SelectedValuePath=&amp;quot;Value&amp;quot;&lt;br /&gt;
    Visibility=&amp;quot;{Binding PropertyViewModel.ShowComboBox, Converter={StaticResource BoolToVisConverter}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[UBIK Active Lists|Active Lists Server]]&lt;br /&gt;
* [[MROCLS PICK LIST TASK|Pick List Task]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:ActiveList|Active List Client]]&lt;br /&gt;
[[Category:Active List|Active List Client]]&lt;br /&gt;
[[Category:Client|Active List Client]]&lt;br /&gt;
[[Category:Mobile|Active List Client]]&lt;br /&gt;
[[Category:Version 5.1|Active List Client]]&lt;br /&gt;
[[Category:WinX|Active List Client]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29692</id>
		<title>Active List Client</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29692"/>
				<updated>2026-04-20T08:27:29Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
==Introduction {{Version/WinXSince|5.1.0.0}} {{Version/MobileSince|5.1.0.0}}==&lt;br /&gt;
If an Active List is defined on a [[Instance|Content Object]] that is associated with an [[MetaProperty#Integer|integer]] [[MetaProperty]], the property is displayed like a usual [[UBIK WinX Client Basics#Selective List Properties|SelectiveList]]. An ActiveList (i.e., if it has been configured on the server for a content object) always takes precedence over a MetaProperty SelectiveList. For editing, it behaves exactly the same as with a standard SelectiveList.&lt;br /&gt;
&lt;br /&gt;
When the user opens an ActiveList:&lt;br /&gt;
* All available options from the ActiveList are displayed as text labels.&lt;br /&gt;
* The label for each option is shown in the language configured on the web service. If a translation for the configured language is unavailable, the label is displayed in the default language.&lt;br /&gt;
* Each option in the ActiveList has an associated unique integer value that is set to the MetaProperty when selected.&lt;br /&gt;
* Only one option can be selected at a time. Selecting an option updates the MetaProperty value immediately.&lt;br /&gt;
&lt;br /&gt;
Sorting of items in the dropdown:&lt;br /&gt;
&lt;br /&gt;
* If all options in the ActiveList have unique sort order values, they are displayed in ascending order of these sort order values.&lt;br /&gt;
* If sort orders are not unique, options with the same sort order are sorted in ascending order by their label.&lt;br /&gt;
&lt;br /&gt;
{{Hint|There are no visible differences in the UI between an ActiveList and a MetaProperty SelectiveList.}}&lt;br /&gt;
&lt;br /&gt;
=== XAML ===&lt;br /&gt;
A new SelectiveItems property was added to the PropertyViewModel to enable access to an ActiveList from XAML. No DataTriggers or additional checks are required, as the correct list selection is handled automatically.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;MAUI&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;SelectiveList&amp;quot;&lt;br /&gt;
    BindingContext=&amp;quot;{TemplateBinding BindingContext}&amp;quot;&lt;br /&gt;
    ItemSize=&amp;quot;40&amp;quot;&lt;br /&gt;
    ItemTemplate=&amp;quot;{StaticResource PopupSelectiveListItemTemplate}&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding SelectiveItems}&amp;quot;&lt;br /&gt;
    SelectedItem=&amp;quot;{Binding ValueItem.PropertyValue, Mode=OneWay, Converter={StaticResource PropertyValueToSelectiveItem}, ConverterParameter={Binding Source={x:Reference SelectiveList}, Path=ItemsSource}}&amp;quot;&lt;br /&gt;
    SelectionBackground=&amp;quot;{DynamicResource UBIKAccentColor}&amp;quot;&lt;br /&gt;
    SelectionMode=&amp;quot;Single&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource UBIKListView}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;UWP&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ComboBoxExt&lt;br /&gt;
    x:Name=&amp;quot;ComboBox&amp;quot;&lt;br /&gt;
    Grid.ColumnSpan=&amp;quot;2&amp;quot;&lt;br /&gt;
    HorizontalAlignment=&amp;quot;Stretch&amp;quot;&lt;br /&gt;
    DisplayMemberPath=&amp;quot;DisplayText&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding PropertyViewModel.SelectiveItems}&amp;quot;&lt;br /&gt;
    PlaceholderText=&amp;quot;{Binding PropertyEdit_PickerPlaceholder, Source={StaticResource AppResources}}&amp;quot;&lt;br /&gt;
    SelectedValue=&amp;quot;{Binding PropertyValue, Mode=TwoWay}&amp;quot;&lt;br /&gt;
    SelectedValuePath=&amp;quot;Value&amp;quot;&lt;br /&gt;
    Visibility=&amp;quot;{Binding PropertyViewModel.ShowComboBox, Converter={StaticResource BoolToVisConverter}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[UBIK Active Lists|Active Lists Server]]&lt;br /&gt;
* [[MROCLS PICK LIST TASK|Pick List Task]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:ActiveList|Active List Client]]&lt;br /&gt;
[[Category:Active List|Active List Client]]&lt;br /&gt;
[[Category:Client|Active List Client]]&lt;br /&gt;
[[Category:Version 5.1|Active List Client]]&lt;br /&gt;
[[Category:WinX|Active List Client]]&lt;br /&gt;
[[Category:MAUI|Active List Client]]&lt;br /&gt;
[[Category:Mobile|Active List Client]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29691</id>
		<title>Active List Client</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29691"/>
				<updated>2026-04-20T08:22:48Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
==Introduction {{Version/WinXSince|5.1.0.0}} {{Version/MobileSince|5.1.0.0}}==&lt;br /&gt;
If an Active List is defined on a [[Instance|Content Object]] that is associated with an [[MetaProperty#Integer|integer]] [[MetaProperty]], the property is displayed like a usual [[UBIK WinX Client Basics#Selective List Properties|SelectiveList]]. An ActiveList (i.e., if it has been configured on the server for a content object) always takes precedence over a MetaProperty SelectiveList. For editing, it behaves exactly the same as with a standard SelectiveList.&lt;br /&gt;
&lt;br /&gt;
When the user opens an ActiveList:&lt;br /&gt;
* All available options from the ActiveList are displayed as text labels.&lt;br /&gt;
* The label for each option is shown in the language configured on the web service. If a translation for the configured language is unavailable, the label is displayed in the default language.&lt;br /&gt;
* Each option in the ActiveList has an associated unique integer value that is set to the MetaProperty when selected.&lt;br /&gt;
* Only one option can be selected at a time. Selecting an option updates the MetaProperty value immediately.&lt;br /&gt;
&lt;br /&gt;
Sorting of items in the dropdown:&lt;br /&gt;
&lt;br /&gt;
* If all options in the ActiveList have unique sort order values, they are displayed in ascending order of these sort order values.&lt;br /&gt;
* If sort orders are not unique, options with the same sort order are sorted in ascending order by their label.&lt;br /&gt;
&lt;br /&gt;
{{Hint|There are no visible differences in the UI between an ActiveList and a MetaProperty SelectiveList.}}&lt;br /&gt;
&lt;br /&gt;
=== XAML ===&lt;br /&gt;
A new SelectiveItems property was added to the PropertyViewModel to enable access to an ActiveList from XAML. No DataTriggers or additional checks are required, as the correct list selection is handled automatically.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;MAUI&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;SelectiveList&amp;quot;&lt;br /&gt;
    BindingContext=&amp;quot;{TemplateBinding BindingContext}&amp;quot;&lt;br /&gt;
    ItemSize=&amp;quot;40&amp;quot;&lt;br /&gt;
    ItemTemplate=&amp;quot;{StaticResource PopupSelectiveListItemTemplate}&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding SelectiveItems}&amp;quot;&lt;br /&gt;
    SelectedItem=&amp;quot;{Binding ValueItem.PropertyValue, Mode=OneWay, Converter={StaticResource PropertyValueToSelectiveItem}, ConverterParameter={Binding Source={x:Reference SelectiveList}, Path=ItemsSource}}&amp;quot;&lt;br /&gt;
    SelectionBackground=&amp;quot;{DynamicResource UBIKAccentColor}&amp;quot;&lt;br /&gt;
    SelectionMode=&amp;quot;Single&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource UBIKListView}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;UWP&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ComboBoxExt&lt;br /&gt;
    x:Name=&amp;quot;ComboBox&amp;quot;&lt;br /&gt;
    Grid.ColumnSpan=&amp;quot;2&amp;quot;&lt;br /&gt;
    HorizontalAlignment=&amp;quot;Stretch&amp;quot;&lt;br /&gt;
    DisplayMemberPath=&amp;quot;DisplayText&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding PropertyViewModel.SelectiveItems}&amp;quot;&lt;br /&gt;
    PlaceholderText=&amp;quot;{Binding PropertyEdit_PickerPlaceholder, Source={StaticResource AppResources}}&amp;quot;&lt;br /&gt;
    SelectedValue=&amp;quot;{Binding PropertyValue, Mode=TwoWay}&amp;quot;&lt;br /&gt;
    SelectedValuePath=&amp;quot;Value&amp;quot;&lt;br /&gt;
    Visibility=&amp;quot;{Binding PropertyViewModel.ShowComboBox, Converter={StaticResource BoolToVisConverter}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[UBIK Active Lists|Active Lists Server]]&lt;br /&gt;
* [[MROCLS PICK LIST TASK|Pick List Task]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:ActiveList|Active List Client]]&lt;br /&gt;
[[Category:Active List|Active List Client]]&lt;br /&gt;
[[Category:Client|Active List Client]]&lt;br /&gt;
[[Category:Version 5.1|Active List Client]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29690</id>
		<title>Active List Client</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29690"/>
				<updated>2026-04-20T08:02:40Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
==Introduction {{Version/WinXSince|5.1.0.0}} {{Version/MobileSince|5.1.0.0}}==&lt;br /&gt;
If an Active List is defined on a [[Instance|Content Object]] that is associated with an [[MetaProperty#Integer|integer]] [[MetaProperty]], the property is displayed like a usual [[UBIK WinX Client Basics#Selective List Properties|SelectiveList]]. An ActiveList (i.e., if it has been configured on the server for a content object) always takes precedence over a MetaProperty SelectiveList. For editing, it behaves exactly the same as with a standard SelectiveList.&lt;br /&gt;
&lt;br /&gt;
When the user opens ActiveList:&lt;br /&gt;
* All available options from the ActiveList are displayed as text labels.&lt;br /&gt;
* The label for each option is shown in the language configured on the web service. If a translation for the configured language is unavailable, the label is displayed in the default language.&lt;br /&gt;
* Each option in the ActiveList has an associated unique integer value that is set to the MetaProperty when selected.&lt;br /&gt;
* Only one option can be selected at a time. Selecting an option updates the MetaProperty value immediately.&lt;br /&gt;
&lt;br /&gt;
Sorting of items in the dropdown:&lt;br /&gt;
&lt;br /&gt;
* If all options in the ActiveList have unique sort order values, they are displayed in ascending order of these sort order values.&lt;br /&gt;
* If sort orders are not unique, options with the same sort order are sorted in ascending order by their label.&lt;br /&gt;
&lt;br /&gt;
{{Hint|There are no visible differences in the UI between an ActiveList and a MetaProperty SelectiveList.}}&lt;br /&gt;
&lt;br /&gt;
=== XAML ===&lt;br /&gt;
To enable access to an ActiveList from XAML a new property named SelectiveItems was added to the PropertyViewModel. This property returns the ActiveList if one is configured on the content object; otherwise, it falls back to the SelectiveList defined on the MetaProperty if no ActiveList is available for the content object. Below is an example of how this can be implemented in XAML. For the SelectedItem, it is important to use the PropertyValueToSelectiveItem converter and pass the control’s own ItemsSource path as the ConverterParameter, so that the list can be provided to the converter. This means that no DataTriggers or similar mechanisms are required to switch between ActiveLists and MetaProperty SelectiveLists or to perform any checks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;MAUI&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;SelectiveList&amp;quot;&lt;br /&gt;
    BindingContext=&amp;quot;{TemplateBinding BindingContext}&amp;quot;&lt;br /&gt;
    ItemSize=&amp;quot;40&amp;quot;&lt;br /&gt;
    ItemTemplate=&amp;quot;{StaticResource PopupSelectiveListItemTemplate}&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding SelectiveItems}&amp;quot;&lt;br /&gt;
    SelectedItem=&amp;quot;{Binding ValueItem.PropertyValue, Mode=OneWay, Converter={StaticResource PropertyValueToSelectiveItem}, ConverterParameter={Binding Source={x:Reference SelectiveList}, Path=ItemsSource}}&amp;quot;&lt;br /&gt;
    SelectionBackground=&amp;quot;{DynamicResource UBIKAccentColor}&amp;quot;&lt;br /&gt;
    SelectionMode=&amp;quot;Single&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource UBIKListView}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;UWP&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ComboBoxExt&lt;br /&gt;
    x:Name=&amp;quot;ComboBox&amp;quot;&lt;br /&gt;
    Grid.ColumnSpan=&amp;quot;2&amp;quot;&lt;br /&gt;
    HorizontalAlignment=&amp;quot;Stretch&amp;quot;&lt;br /&gt;
    DisplayMemberPath=&amp;quot;DisplayText&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding PropertyViewModel.SelectiveItems}&amp;quot;&lt;br /&gt;
    PlaceholderText=&amp;quot;{Binding PropertyEdit_PickerPlaceholder, Source={StaticResource AppResources}}&amp;quot;&lt;br /&gt;
    SelectedValue=&amp;quot;{Binding PropertyValue, Mode=TwoWay}&amp;quot;&lt;br /&gt;
    SelectedValuePath=&amp;quot;Value&amp;quot;&lt;br /&gt;
    Visibility=&amp;quot;{Binding PropertyViewModel.ShowComboBox, Converter={StaticResource BoolToVisConverter}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Active List|Active List Client]]&lt;br /&gt;
[[Category:Client|Active List Client]]&lt;br /&gt;
[[Category:Version 5.1|Active List Client]]&lt;br /&gt;
[[Category:ActiveList|Active List Client]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29689</id>
		<title>Active List Client</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29689"/>
				<updated>2026-04-20T08:02:07Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
==Introduction {{Version/WinXSince|5.1.0.0}} {{Version/MobileSince|5.1.0.0}}==&lt;br /&gt;
If an Active List is defined on a [[Instance|Content Object]] that is associated with an [[MetaProperty#Integer|integer]] [[MetaProperty]], the property is displayed like a usual [[UBIK WinX Client Basics#Selective List Properties|SelectiveList]]. An ActiveList (i.e., if it has been configured on the server for a content object) always takes precedence over a MetaProperty SelectiveList. For editing, it behaves exactly the same as with a standard SelectiveList.&lt;br /&gt;
&lt;br /&gt;
When the user opens ActiveList:&lt;br /&gt;
* All available options from the ActiveList are displayed as text labels.&lt;br /&gt;
* The label for each option is shown in the language configured on the web service. If a translation for the configured language is unavailable, the label is displayed in the default language.&lt;br /&gt;
* Each option in the ActiveList has an associated unique integer value that is set to the MetaProperty when selected.&lt;br /&gt;
* Only one option can be selected at a time. Selecting an option updates the MetaProperty value immediately.&lt;br /&gt;
&lt;br /&gt;
Sorting of items in the dropdown:&lt;br /&gt;
&lt;br /&gt;
* If all options in the ActiveList have unique sort order values, they are displayed in ascending order of these sort order values.&lt;br /&gt;
* If sort orders are not unique, options with the same sort order are sorted in ascending order by their label.&lt;br /&gt;
&lt;br /&gt;
{{Hint|There are no visible differences in the UI between an ActiveList and a MetaProperty SelectiveList.}}&lt;br /&gt;
&lt;br /&gt;
=== XAML ===&lt;br /&gt;
To enable access to an ActiveList from XAML a new property named SelectiveItems was added to the PropertyViewModel. This property returns the ActiveList if one is configured on the content object; otherwise, it falls back to the SelectiveList defined on the MetaProperty if no ActiveList is available for the content object. Below is an example of how this can be implemented in XAML. For the SelectedItem, it is important to use the PropertyValueToSelectiveItem converter and pass the control’s own ItemsSource path as the ConverterParameter, so that the list can be provided to the converter. This means that no DataTriggers or similar mechanisms are required to switch between ActiveLists and MetaProperty SelectiveLists or to perform any checks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;MAUI&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;SelectiveList&amp;quot;&lt;br /&gt;
    BindingContext=&amp;quot;{TemplateBinding BindingContext}&amp;quot;&lt;br /&gt;
    ItemSize=&amp;quot;40&amp;quot;&lt;br /&gt;
    ItemTemplate=&amp;quot;{StaticResource PopupSelectiveListItemTemplate}&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding SelectiveItems}&amp;quot;&lt;br /&gt;
    SelectedItem=&amp;quot;{Binding ValueItem.PropertyValue, Mode=OneWay, Converter={StaticResource PropertyValueToSelectiveItem}, ConverterParameter={Binding Source={x:Reference SelectiveList}, Path=ItemsSource}}&amp;quot;&lt;br /&gt;
    SelectionBackground=&amp;quot;{DynamicResource UBIKAccentColor}&amp;quot;&lt;br /&gt;
    SelectionMode=&amp;quot;Single&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource UBIKListView}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;UWP&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ComboBoxExt&lt;br /&gt;
    x:Name=&amp;quot;ComboBox&amp;quot;&lt;br /&gt;
    Grid.ColumnSpan=&amp;quot;2&amp;quot;&lt;br /&gt;
    HorizontalAlignment=&amp;quot;Stretch&amp;quot;&lt;br /&gt;
    DisplayMemberPath=&amp;quot;DisplayText&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding PropertyViewModel.SelectiveItems}&amp;quot;&lt;br /&gt;
    PlaceholderText=&amp;quot;{Binding PropertyEdit_PickerPlaceholder, Source={StaticResource AppResources}}&amp;quot;&lt;br /&gt;
    SelectedValue=&amp;quot;{Binding PropertyValue, Mode=TwoWay}&amp;quot;&lt;br /&gt;
    SelectedValuePath=&amp;quot;Value&amp;quot;&lt;br /&gt;
    Visibility=&amp;quot;{Binding PropertyViewModel.ShowComboBox, Converter={StaticResource BoolToVisConverter}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Active List|Active List Client]]&lt;br /&gt;
[[Category:Client|Active List Client]]&lt;br /&gt;
[[Category:Version 5.1|Active List Client]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29688</id>
		<title>Active List Client</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29688"/>
				<updated>2026-04-20T07:49:39Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
==Introduction {{Version/WinXSince|5.1.0.0}} {{Version/MobileSince|5.1.0.0}}==&lt;br /&gt;
If an Active List is defined on a [[Instance|Content Object]] that is associated with an [[MetaProperty#Integer|integer]] [[MetaProperty]], the property is displayed using the existing icon (the same icon applied to properties with a [[UBIK WinX Client Basics#Selective List Properties|SelectiveList]]), followed by the property's display string and the label of the currently selected list item in a closed drop-down component. An ActiveList (i.e., if it has been configured on the server for a content object) always takes precedence over a MetaProperty SelectiveList.&lt;br /&gt;
&lt;br /&gt;
For editing, it behaves exactly the same as with a standard SelectiveList.&lt;br /&gt;
&lt;br /&gt;
When the user opens ActiveList:&lt;br /&gt;
* All available options from the ActiveList are displayed as text labels.&lt;br /&gt;
* The label for each option is shown in the language configured on the web service. If a translation for the configured language is unavailable, the label is displayed in the default language.&lt;br /&gt;
* Each option in the ActiveList has an associated unique integer value that is set to the MetaProperty when selected.&lt;br /&gt;
* Only one option can be selected at a time. Selecting an option updates the MetaProperty value immediately.&lt;br /&gt;
&lt;br /&gt;
Sorting of items in the dropdown:&lt;br /&gt;
&lt;br /&gt;
* If all options in the ActiveList have unique sort order values, they are displayed in ascending order of these sort order values.&lt;br /&gt;
* If sort orders are not unique, options with the same sort order are sorted in ascending order by their label.&lt;br /&gt;
&lt;br /&gt;
=== XAML ===&lt;br /&gt;
To enable access to an ActiveList from XAML a new property named SelectiveItems was added to the PropertyViewModel. This property returns the ActiveList if one is configured on the content object; otherwise, it falls back to the SelectiveList defined on the MetaProperty if no ActiveList is available for the content object. Below is an example of how this can be implemented in XAML. For the SelectedItem, it is important to use the PropertyValueToSelectiveItem converter and pass the control’s own ItemsSource path as the ConverterParameter, so that the list can be provided to the converter. This means that no DataTriggers or similar mechanisms are required to switch between ActiveLists and MetaProperty SelectiveLists or to perform any checks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;MAUI&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;SelectiveList&amp;quot;&lt;br /&gt;
    BindingContext=&amp;quot;{TemplateBinding BindingContext}&amp;quot;&lt;br /&gt;
    ItemSize=&amp;quot;40&amp;quot;&lt;br /&gt;
    ItemTemplate=&amp;quot;{StaticResource PopupSelectiveListItemTemplate}&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding SelectiveItems}&amp;quot;&lt;br /&gt;
    SelectedItem=&amp;quot;{Binding ValueItem.PropertyValue, Mode=OneWay, Converter={StaticResource PropertyValueToSelectiveItem}, ConverterParameter={Binding Source={x:Reference SelectiveList}, Path=ItemsSource}}&amp;quot;&lt;br /&gt;
    SelectionBackground=&amp;quot;{DynamicResource UBIKAccentColor}&amp;quot;&lt;br /&gt;
    SelectionMode=&amp;quot;Single&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource UBIKListView}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;UWP&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ComboBoxExt&lt;br /&gt;
    x:Name=&amp;quot;ComboBox&amp;quot;&lt;br /&gt;
    Grid.ColumnSpan=&amp;quot;2&amp;quot;&lt;br /&gt;
    HorizontalAlignment=&amp;quot;Stretch&amp;quot;&lt;br /&gt;
    DisplayMemberPath=&amp;quot;DisplayText&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding PropertyViewModel.SelectiveItems}&amp;quot;&lt;br /&gt;
    PlaceholderText=&amp;quot;{Binding PropertyEdit_PickerPlaceholder, Source={StaticResource AppResources}}&amp;quot;&lt;br /&gt;
    SelectedValue=&amp;quot;{Binding PropertyValue, Mode=TwoWay}&amp;quot;&lt;br /&gt;
    SelectedValuePath=&amp;quot;Value&amp;quot;&lt;br /&gt;
    Visibility=&amp;quot;{Binding PropertyViewModel.ShowComboBox, Converter={StaticResource BoolToVisConverter}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Active List|Active List Client]]&lt;br /&gt;
[[Category:Client|Active List Client]]&lt;br /&gt;
[[Category:Version 5.1|Active List Client]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29686</id>
		<title>Active List Client</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29686"/>
				<updated>2026-04-20T07:32:09Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
==Introduction {{Version/MobileSince|5.1.0.0}}==&lt;br /&gt;
If an Active List is defined on a [[Instance|Content Object]] that is associated with an [[MetaProperty#Integer|integer]] [[MetaProperty]], the property is displayed using the existing icon (the same icon applied to properties with a [[UBIK WinX Client Basics#Selective List Properties|SelectiveList]]), followed by the property's display string and the label of the currently selected list item in a closed drop-down component. An ActiveList (i.e., if it has been configured on the server for the content object) always takes precedence over a MetaProperty SelectiveList &lt;br /&gt;
&lt;br /&gt;
For editing, it behaves exactly the same as with a standard SelectiveList. The client uses a dropdown menu UI component and the dropdown menu allows the user to select exactly one value from the Active List.&lt;br /&gt;
&lt;br /&gt;
When the user opens the dropdown:&lt;br /&gt;
* All available options from the ActiveList are displayed as text labels.&lt;br /&gt;
* The label for each option is shown in the language configured on the web service. If a translation for the configured language is unavailable, the label is displayed in the default language.&lt;br /&gt;
* Each option in the ActiveList has an associated unique integer value that is set to the MetaProperty when selected.&lt;br /&gt;
* Only one option can be selected at a time. Selecting an option updates the MetaProperty value immediately.&lt;br /&gt;
&lt;br /&gt;
Sorting of items in the dropdown:&lt;br /&gt;
&lt;br /&gt;
* If all options in the ActiveList have unique sort order values, they are displayed in ascending order of these sort order values.&lt;br /&gt;
* If sort orders are not unique, options with the same sort order are sorted in ascending order by their label.&lt;br /&gt;
&lt;br /&gt;
=== XAML ===&lt;br /&gt;
To enable access to an ActiveList from XAML, a new property named SelectiveItems was added to the PropertyViewModel. This property returns the ActiveList if one is configured on the content object; otherwise, it falls back to the SelectiveList defined on the MetaProperty if no ActiveList is available for the content object. Below is an example of how this can be implemented in XAML. For the SelectedItem, it is important to use the PropertyValueToSelectiveItem converter and pass the control’s own ItemsSource path as the ConverterParameter, so that the list can be provided to the converter. This means that no DataTriggers or similar mechanisms are required to switch between ActiveLists and MetaProperty SelectiveLists or to perform any checks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;MAUI&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;SelectiveList&amp;quot;&lt;br /&gt;
    BindingContext=&amp;quot;{TemplateBinding BindingContext}&amp;quot;&lt;br /&gt;
    ItemSize=&amp;quot;40&amp;quot;&lt;br /&gt;
    ItemTemplate=&amp;quot;{StaticResource PopupSelectiveListItemTemplate}&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding SelectiveItems}&amp;quot;&lt;br /&gt;
    SelectedItem=&amp;quot;{Binding ValueItem.PropertyValue, Mode=OneWay, Converter={StaticResource PropertyValueToSelectiveItem}, ConverterParameter={Binding Source={x:Reference SelectiveList}, Path=ItemsSource}}&amp;quot;&lt;br /&gt;
    SelectionBackground=&amp;quot;{DynamicResource UBIKAccentColor}&amp;quot;&lt;br /&gt;
    SelectionMode=&amp;quot;Single&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource UBIKListView}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;UWP&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ComboBoxExt&lt;br /&gt;
    x:Name=&amp;quot;ComboBox&amp;quot;&lt;br /&gt;
    Grid.ColumnSpan=&amp;quot;2&amp;quot;&lt;br /&gt;
    HorizontalAlignment=&amp;quot;Stretch&amp;quot;&lt;br /&gt;
    DisplayMemberPath=&amp;quot;DisplayText&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding PropertyViewModel.SelectiveItems}&amp;quot;&lt;br /&gt;
    PlaceholderText=&amp;quot;{Binding PropertyEdit_PickerPlaceholder, Source={StaticResource AppResources}}&amp;quot;&lt;br /&gt;
    SelectedValue=&amp;quot;{Binding PropertyValue, Mode=TwoWay}&amp;quot;&lt;br /&gt;
    SelectedValuePath=&amp;quot;Value&amp;quot;&lt;br /&gt;
    Visibility=&amp;quot;{Binding PropertyViewModel.ShowComboBox, Converter={StaticResource BoolToVisConverter}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Active List|Active List Client]]&lt;br /&gt;
[[Category:Client|Active List Client]]&lt;br /&gt;
[[Category:Version 5.1|Active List Client]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29685</id>
		<title>Active List Client</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29685"/>
				<updated>2026-04-20T07:10:51Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* XAML */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
When an integer MetaProperty has an ActiveList defined, the property is displayed using the existing icon (the same icon applied to properties with a SelectiveList), followed by the property's display string and the label of the currently selected list item in a closed drop-down component. The ActiveList is returned if one is available (i.e., if it has been configured on the server for the content object) and always takes precedence over a MetaProperty SelectiveList {{Version/MobileSince|5.1.0.0}}.&lt;br /&gt;
&lt;br /&gt;
For editing, it behaves exactly the same as with a standard SelectiveList. The client uses a dropdown menu UI component and the dropdown menu allows the user to select exactly one value from the Active List.&lt;br /&gt;
&lt;br /&gt;
When the user opens the dropdown:&lt;br /&gt;
* All available options from the ActiveList are displayed as text labels.&lt;br /&gt;
* The label for each option is shown in the language configured on the web service. If a translation for the configured language is unavailable, the label is displayed in the default language.&lt;br /&gt;
* Each option in the ActiveList has an associated unique integer value that is set to the MetaProperty when selected.&lt;br /&gt;
* Only one option can be selected at a time. Selecting an option updates the MetaProperty value immediately.&lt;br /&gt;
&lt;br /&gt;
Sorting of items in the dropdown:&lt;br /&gt;
&lt;br /&gt;
* If all options in the ActiveList have unique sort order values, they are displayed in ascending order of these sort order values.&lt;br /&gt;
* If sort orders are not unique, options with the same sort order are sorted in ascending order by their label.&lt;br /&gt;
&lt;br /&gt;
=== XAML ===&lt;br /&gt;
To enable access to an ActiveList from XAML, a new property named SelectiveItems was added to the PropertyViewModel. This property returns the ActiveList if one is configured on the content object; otherwise, it falls back to the SelectiveList defined on the MetaProperty if no ActiveList is available for the content object. Below is an example of how this can be implemented in XAML. For the SelectedItem, it is important to use the PropertyValueToSelectiveItem converter and pass the control’s own ItemsSource path as the ConverterParameter, so that the list can be provided to the converter. This means that no DataTriggers or similar mechanisms are required to switch between ActiveLists and MetaProperty SelectiveLists or to perform any checks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;MAUI&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;SelectiveList&amp;quot;&lt;br /&gt;
    BindingContext=&amp;quot;{TemplateBinding BindingContext}&amp;quot;&lt;br /&gt;
    ItemSize=&amp;quot;40&amp;quot;&lt;br /&gt;
    ItemTemplate=&amp;quot;{StaticResource PopupSelectiveListItemTemplate}&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding SelectiveItems}&amp;quot;&lt;br /&gt;
    SelectedItem=&amp;quot;{Binding ValueItem.PropertyValue, Mode=OneWay, Converter={StaticResource PropertyValueToSelectiveItem}, ConverterParameter={Binding Source={x:Reference SelectiveList}, Path=ItemsSource}}&amp;quot;&lt;br /&gt;
    SelectionBackground=&amp;quot;{DynamicResource UBIKAccentColor}&amp;quot;&lt;br /&gt;
    SelectionMode=&amp;quot;Single&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource UBIKListView}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;UWP&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ComboBoxExt&lt;br /&gt;
    x:Name=&amp;quot;ComboBox&amp;quot;&lt;br /&gt;
    Grid.ColumnSpan=&amp;quot;2&amp;quot;&lt;br /&gt;
    HorizontalAlignment=&amp;quot;Stretch&amp;quot;&lt;br /&gt;
    DisplayMemberPath=&amp;quot;DisplayText&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding PropertyViewModel.SelectiveItems}&amp;quot;&lt;br /&gt;
    PlaceholderText=&amp;quot;{Binding PropertyEdit_PickerPlaceholder, Source={StaticResource AppResources}}&amp;quot;&lt;br /&gt;
    SelectedValue=&amp;quot;{Binding PropertyValue, Mode=TwoWay}&amp;quot;&lt;br /&gt;
    SelectedValuePath=&amp;quot;Value&amp;quot;&lt;br /&gt;
    Visibility=&amp;quot;{Binding PropertyViewModel.ShowComboBox, Converter={StaticResource BoolToVisConverter}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Active List|Active List Client]]&lt;br /&gt;
[[Category:Client|Active List Client]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29673</id>
		<title>Active List Client</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29673"/>
				<updated>2026-04-17T09:39:28Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
When an integer MetaProperty has an ActiveList defined, the property is displayed using the existing icon (the same icon applied to properties with a SelectiveList), followed by the property's display string and the label of the currently selected list item in a closed drop-down component. The ActiveList is returned if one is available (i.e., if it has been configured on the server for the content object) and always takes precedence over a MetaProperty SelectiveList {{Version/MobileSince|5.1.0.0}}.&lt;br /&gt;
&lt;br /&gt;
For editing, it behaves exactly the same as with a standard SelectiveList. The client uses a dropdown menu UI component and the dropdown menu allows the user to select exactly one value from the Active List.&lt;br /&gt;
&lt;br /&gt;
When the user opens the dropdown:&lt;br /&gt;
* All available options from the ActiveList are displayed as text labels.&lt;br /&gt;
* The label for each option is shown in the language configured on the web service. If a translation for the configured language is unavailable, the label is displayed in the default language.&lt;br /&gt;
* Each option in the ActiveList has an associated unique integer value that is set to the MetaProperty when selected.&lt;br /&gt;
* Only one option can be selected at a time. Selecting an option updates the MetaProperty value immediately.&lt;br /&gt;
&lt;br /&gt;
Sorting of items in the dropdown:&lt;br /&gt;
&lt;br /&gt;
* If all options in the ActiveList have unique sort order values, they are displayed in ascending order of these sort order values.&lt;br /&gt;
* If sort orders are not unique, options with the same sort order are sorted in ascending order by their label.&lt;br /&gt;
&lt;br /&gt;
=== XAML ===&lt;br /&gt;
To enable access to an ActiveList from XAML, a new property named SelectiveItems was added to the PropertyViewModel. This property returns the ActiveList if one is configured on the content object; otherwise, it falls back to the SelectiveList defined on the MetaProperty if no ActiveList is available for the content object. Below is an example of how this can be implemented in XAML. For the SelectedItem, it is important to use the PropertyValueToSelectiveItem converter and pass the control’s own ItemsSource path as the ConverterParameter, so that the list can be provided to the converter. This means that no DataTriggers or similar mechanisms are required to switch between ActiveLists and MetaProperty SelectiveLists or to perform any checks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;SelectiveList&amp;quot;&lt;br /&gt;
    BindingContext=&amp;quot;{TemplateBinding BindingContext}&amp;quot;&lt;br /&gt;
    ItemSize=&amp;quot;40&amp;quot;&lt;br /&gt;
    ItemTemplate=&amp;quot;{StaticResource PopupSelectiveListItemTemplate}&amp;quot;&lt;br /&gt;
    ItemsSource=&amp;quot;{Binding SelectiveItems}&amp;quot;&lt;br /&gt;
    SelectedItem=&amp;quot;{Binding ValueItem.PropertyValue, Mode=OneWay, Converter={StaticResource PropertyValueToSelectiveItem}, ConverterParameter={Binding Source={x:Reference SelectiveList}, Path=ItemsSource}}&amp;quot;&lt;br /&gt;
    SelectionBackground=&amp;quot;{DynamicResource UBIKAccentColor}&amp;quot;&lt;br /&gt;
    SelectionMode=&amp;quot;Single&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource UBIKListView}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Active List|Active List Client]]&lt;br /&gt;
[[Category:Client|Active List Client]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29672</id>
		<title>Active List Client</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29672"/>
				<updated>2026-04-17T08:32:40Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
When an integer MetaProperty has an ActiveList defined, the property is displayed using the existing icon (the same icon applied to properties with a SelectiveList), followed by the property's display string and the label of the currently selected list item in a closed drop-down component{{Version/ServerSince|5.0.0.0}}.&lt;br /&gt;
&lt;br /&gt;
For editing, the client uses a dropdown menu UI component. The dropdown menu enables users to select exactly one value for the MetaProperty from the ActiveList.&lt;br /&gt;
When the user opens the dropdown:&lt;br /&gt;
&lt;br /&gt;
* All available options from the ActiveList are displayed as text labels.&lt;br /&gt;
* The label for each option is shown in the language configured on the web service. If a translation for the configured language is unavailable, the label is displayed in the default language.&lt;br /&gt;
* Each option in the ActiveList has an associated unique integer value that is set to the MetaProperty when selected.&lt;br /&gt;
* Only one option can be selected at a time. Selecting an option updates the MetaProperty value immediately.&lt;br /&gt;
&lt;br /&gt;
Sorting of items in the dropdown:&lt;br /&gt;
&lt;br /&gt;
* If all options in the ActiveList have unique sort order values, they are displayed in ascending order of these sort order values.&lt;br /&gt;
* If sort orders are not unique, options with the same sort order are sorted in ascending order by their label.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Active List Client]]&lt;br /&gt;
[[Category:Active List|Active List Client]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29671</id>
		<title>Active List Client</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Active_List_Client&amp;diff=29671"/>
				<updated>2026-04-17T08:30:58Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: Created page with &amp;quot;{{UnderConstructionStart}}  When an integer MetaProperty has an ActiveList defined, the property is displayed using the existing icon (the same icon applied to properties with...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
When an integer MetaProperty has an ActiveList defined, the property is displayed using the existing icon (the same icon applied to properties with a SelectiveList), followed by the property's display string and the label of the currently selected list item in a closed drop-down component{{Version/ServerSince|5.0.0.0}}.&lt;br /&gt;
&lt;br /&gt;
For editing, the client uses a dropdown menu UI component. The dropdown menu enables users to select exactly one value for the MetaProperty from the ActiveList.&lt;br /&gt;
When the user opens the dropdown:&lt;br /&gt;
&lt;br /&gt;
* All available options from the ActiveList are displayed as text labels.&lt;br /&gt;
* The label for each option is shown in the language configured on the web service. If a translation for the configured language is unavailable, the label is displayed in the default language.&lt;br /&gt;
* Each option in the ActiveList has an associated unique integer value that is set to the MetaProperty when selected.&lt;br /&gt;
* Only one option can be selected at a time. Selecting an option updates the MetaProperty value immediately.&lt;br /&gt;
&lt;br /&gt;
Sorting of items in the dropdown:&lt;br /&gt;
&lt;br /&gt;
* If all options in the ActiveList have unique sort order values, they are displayed in ascending order of these sort order values.&lt;br /&gt;
* If sort orders are not unique, options with the same sort order are sorted in ascending order by their label.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Active List Client]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Category:Active_List&amp;diff=29670</id>
		<title>Category:Active List</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Category:Active_List&amp;diff=29670"/>
				<updated>2026-04-17T08:26:58Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: Created page with &amp;quot;Category:Client&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Client]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=UBIK_Active_Lists&amp;diff=29669</id>
		<title>UBIK Active Lists</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=UBIK_Active_Lists&amp;diff=29669"/>
				<updated>2026-04-17T08:25:26Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* Client Behavior */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UBIK}} ActiveLists provide the possibility to configure instance-specific lists for integer MetaProperties.&lt;br /&gt;
&lt;br /&gt;
= Purpose =&lt;br /&gt;
In some cases it is required to define a list of selectable values for an integer MetaProperty that is specific to a single instance rather than globally defined at the MetaClass level. For example, two instances of the same MetaClass can offer different selectable values for the same MetaProperty.&lt;br /&gt;
&lt;br /&gt;
{{UBIK}} ActiveLists are the representation of such lists. They update dynamically on the client side without requiring an ACM rebuild and can be maintained per instance through server methods.&lt;br /&gt;
&lt;br /&gt;
If a MetaProperty has both a SelectiveList and an ActiveList, the SelectiveList takes precedence when data is displayed on the client, and the ActiveList is ignored.&lt;br /&gt;
&lt;br /&gt;
= Client Behavior =&lt;br /&gt;
See also [[Active List Client]]&lt;br /&gt;
&lt;br /&gt;
[[Category:ActiveList|UBIK Active Lists]]&lt;br /&gt;
[[Category:Server|UBIK Active Lists]]&lt;br /&gt;
&lt;br /&gt;
= Server-Side Concept =&lt;br /&gt;
ActiveLists are stored in serialized JSON form in the '''ACTIVE_LISTS''' property of the instance.&lt;br /&gt;
&lt;br /&gt;
* Each list is associated with exactly one integer MetaProperty of the instance.&lt;br /&gt;
* An instance can have multiple ActiveLists, one for each integer MetaProperty.&lt;br /&gt;
* ActiveLists can be viewed in UBIK.Studio in the Object Explorer under “ActiveLists” for the instance, but they cannot be edited there.&lt;br /&gt;
&lt;br /&gt;
= Managing {{UBIK}} ActiveLists =&lt;br /&gt;
ActiveLists are managed entirely through server methods. The most relevant methods are:&lt;br /&gt;
&lt;br /&gt;
=== AddOrUpdateActiveList(metaProperty, value, labels, sortOrder) ===&lt;br /&gt;
Adds a new list item or updates the labels of an existing one. Optionally repositions the item according to sortOrder.&lt;br /&gt;
&lt;br /&gt;
=== SortActiveList(metaProperty, orderedValues) ===&lt;br /&gt;
Reorders the items of a list according to the specified sequence. Items not included in '''orderedValues''' are appended in their current order.&lt;br /&gt;
&lt;br /&gt;
=== RemoveActiveListItem(metaProperty, value) ===&lt;br /&gt;
Removes a single list item by its integer value.&lt;br /&gt;
&lt;br /&gt;
=== RemoveActiveList(metaProperty) ===&lt;br /&gt;
Removes the entire list for the given MetaProperty.&lt;br /&gt;
&lt;br /&gt;
=== GetActiveLists() ===&lt;br /&gt;
Returns all ActiveLists defined on the instance as '''UbikActiveList''' objects, each containing the MetaProperty name and its list items.&lt;br /&gt;
&lt;br /&gt;
= Who-Bert Example =&lt;br /&gt;
The following Who-Bert snippet demonstrates how to work with an ActiveList for a MetaProperty named &amp;quot;'''MP_INT_A'''&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using UBIK.Kernel;&lt;br /&gt;
using UBIK.Runtime;&lt;br /&gt;
using UBIK.Runtime.Sys;&lt;br /&gt;
using UBIK.Compiler;&lt;br /&gt;
using UBIK.Content;&lt;br /&gt;
&lt;br /&gt;
namespace Studio&lt;br /&gt;
{&lt;br /&gt;
    public class ObjectTest&lt;br /&gt;
    {&lt;br /&gt;
        public void TestObject(params BaseClass[] InVariables)&lt;br /&gt;
        {&lt;br /&gt;
            Debugger.Output(this, &amp;quot;*** Started ActiveList Example&amp;quot;);&lt;br /&gt;
            foreach (BaseClass obj in InVariables)&lt;br /&gt;
            {&lt;br /&gt;
                ContentClass c = obj as ContentClass;&lt;br /&gt;
&lt;br /&gt;
                var labels1 = new Dictionary&amp;lt;string, string&amp;gt; { { &amp;quot;en&amp;quot;, &amp;quot;One&amp;quot; }, { &amp;quot;de&amp;quot;, &amp;quot;Eins&amp;quot; } };&lt;br /&gt;
                var labels2 = new Dictionary&amp;lt;string, string&amp;gt; { { &amp;quot;en&amp;quot;, &amp;quot;Two&amp;quot; }, { &amp;quot;de&amp;quot;, &amp;quot;Zwei&amp;quot; } };&lt;br /&gt;
                var labels3 = new Dictionary&amp;lt;string, string&amp;gt; { { &amp;quot;en&amp;quot;, &amp;quot;Three&amp;quot; }, { &amp;quot;de&amp;quot;, &amp;quot;Drei&amp;quot; } };&lt;br /&gt;
&lt;br /&gt;
                // Add items&lt;br /&gt;
                c.AddOrUpdateActiveList(&amp;quot;MP_INT_A&amp;quot;, 1, labels1);&lt;br /&gt;
                c.AddOrUpdateActiveList(&amp;quot;MP_INT_A&amp;quot;, 2, labels2);&lt;br /&gt;
                c.AddOrUpdateActiveList(&amp;quot;MP_INT_A&amp;quot;, 3, labels3);&lt;br /&gt;
&lt;br /&gt;
                // Update labels and move item 3 to index 0&lt;br /&gt;
                var labels3Updated = new Dictionary&amp;lt;string, string&amp;gt; { { &amp;quot;en&amp;quot;, &amp;quot;Three Updated&amp;quot; }, { &amp;quot;de&amp;quot;, &amp;quot;Drei Aktualisiert&amp;quot; } };&lt;br /&gt;
                c.AddOrUpdateActiveList(&amp;quot;MP_INT_A&amp;quot;, 3, labels3Updated, 0);&lt;br /&gt;
&lt;br /&gt;
                // Sort items: 2, 1, 3&lt;br /&gt;
                c.SortActiveList(&amp;quot;MP_INT_A&amp;quot;, new int[] { 2, 1, 3 });&lt;br /&gt;
&lt;br /&gt;
                // Remove item 1&lt;br /&gt;
                c.RemoveActiveListItem(&amp;quot;MP_INT_A&amp;quot;, 1);&lt;br /&gt;
&lt;br /&gt;
                c.Save();&lt;br /&gt;
            }&lt;br /&gt;
            Debugger.Output(this, &amp;quot;*** Finished ActiveList Example&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
} &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:ActiveList|UBIK Active Lists]]&lt;br /&gt;
[[Category:Server|UBIK Active Lists]]&lt;br /&gt;
&lt;br /&gt;
= Further Notes =&lt;br /&gt;
&lt;br /&gt;
* ActiveLists are designed for lightweight, instance-specific value lists that can be updated without ACM rebuilds.&lt;br /&gt;
* They are ideal for use cases where list content varies between instances of the same MetaClass.&lt;br /&gt;
* When both an ActiveList and a SelectiveList are defined for the same MetaProperty, the SelectiveList overrides the ActiveList on the client.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server|UBIK Active Lists]]&lt;br /&gt;
[[Category:ActiveList|UBIK Active Lists]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Version_5.1_(Mobile)&amp;diff=29613</id>
		<title>Version 5.1 (Mobile)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Version_5.1_(Mobile)&amp;diff=29613"/>
				<updated>2026-03-23T13:56:59Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* Release */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Attention|Existing pre 5.0 XAMLs are not compatible with UBIK Mobile client 5.1. Please refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] for migrating them to the new client.}}&lt;br /&gt;
&lt;br /&gt;
{{Attention|UBIK 5 clients can only connect to {{UBIK}} Servers of [[Version 3.6(Server)|version 3.6]] and higher!}}&lt;br /&gt;
&lt;br /&gt;
{{Attention|The minimum supported OS versions are:&lt;br /&gt;
* Android 9;&lt;br /&gt;
* iOS 12.}}&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
{{key press|Android: Store}}{{key press|iOS: Store}}: Publicly available in Google Play Store / Apple App Store.&lt;br /&gt;
&lt;br /&gt;
{{key press|Android: Store Beta}}: Publicly available in Google Play Store as beta versions. You can opt in or out of the beta at any time in the store.&lt;br /&gt;
&lt;br /&gt;
{{key press|Android: Store Preview}}: Available through Google Play Store's [https://play.google.com/store/apps/details?id=com.augmensys.ubik.go invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|iOS: Store Beta}}: Available through Apple App Store's [https://testflight.apple.com/join/Kmb1HG9E invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|iOS: Store Preview}}: Available through Apple App Store's [https://testflight.apple.com/join/yHRnbYbt invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|Windows: Store Preview}}: The mobile Windows client is not an official product and is only distributed as test versions upon request and/or in our [https://release.augmensys.com/download/modules/client/mobile/ release portal].&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|Some customized XAMLs might need an update to work properly. These changes are marked with a ⚠️}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Release Notes =&lt;br /&gt;
&lt;br /&gt;
== Release ==&lt;br /&gt;
=== 5.1.?? 2026-??-?? {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* Introduced a new [[MRO_Objects_(Client)#Picture_Task|picture task]] type which can only be finished when there's at least one valid child document.&lt;br /&gt;
* The system flashlight can now also be enabled or disabled via XAML customization. For detailed information, see [[Mobile XAML#Flashlight|Flashlight]]&lt;br /&gt;
* Replaced app closing after repeated failed login attempts with a client-side temporary login block, including user feedback that indicates when login becomes available again.&lt;br /&gt;
* Added French localization to the app.&lt;br /&gt;
* [[MRO_Objects_(Client)#Signature_Task|MRO Signature Tasks]] have been introduced, which automatically displays the signee as well as the validation timestamp after the task has been signed.&lt;br /&gt;
* Fixed an issue where changes in property editing were not discarded when using the default Back button.&lt;br /&gt;
* Fixed an issue where the application crashed on Windows when navigating back from the VideoPlayer.&lt;br /&gt;
* Icon set Addition 8: Added Show/Hide, AI, Info, and various Procedure icons.&lt;br /&gt;
* Fixed an issue where the [[Object_hierarchy_in_XAML:_NextLevel,_ParentLevel,_LinkedLevel#LoadNextLevelCommand|LoadNextLevelCommand]] did not work under specific conditions (invoked in offline and then in online mode).&lt;br /&gt;
* Fixed an issue where [[SYSCLS_CHILDINFOOWNER|child count]] indicators did not update when you delete its child objects which only exist locally.&lt;br /&gt;
* Fixed an issue where MRO task items displayed an incorrect DataTemplate after scrolling within a list.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 5.1.30 2026-03-02 {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* Fixed an issue that prevented any documents from being uploaded when connecting to 5.1 webservices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 5.1.29 on 2026-02-26 {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* Fixed an issue where the POI button was only visible under certain condition (ShowUnreleasedFeatures in the profile is set to true).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 5.1.28 on 2026-02-10 {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* The following features which existed in pre 5.0 versions are now available again in 5.1.&lt;br /&gt;
** [[Map_View|Map view]].&lt;br /&gt;
** [[POI_View_(Mobile)|POI view]]. (Aruco and OCR are not yet supported)&lt;br /&gt;
** Location service.&lt;br /&gt;
** [[Native_Push_(Client)|Native push]].&lt;br /&gt;
** [[Charts]].&lt;br /&gt;
* UBIK now uses industry-standard JSON Web Token (JWT) technology for authorization, enhancing security and reliability. Session tokens are transmitted via HTTP headers instead of URLs for improved protection.&lt;br /&gt;
* Added support for conditionally showing the ImageEditor Save button only when edits have been made, enabled when MergeAnnotationsOnSave is set to true.&lt;br /&gt;
* Complete UI overhaul introduces a cleaner, more modern and adaptive user interface with various quality of life improvements.&lt;br /&gt;
* UBIKTabView supports both dynamic and static items in combination with lazy loading.&lt;br /&gt;
* Files in the app's data folder can now be opened or deleted directly in the developer settings.&lt;br /&gt;
* Introduced a fully resource-driven UI theming system enabling fast, safe customization (dark mode, resizing, and consistent styling) by adapting a small set of centralized resources.&lt;br /&gt;
* Added support for [[File_Upload_Size_Restriction|configurable file-upload size restrictions]], preventing oversized files from being uploaded and providing users with feedback when limits are exceeded.&lt;br /&gt;
* Fixed an issue where annotated image documents do not appear as changed until the UI refreshes.&lt;br /&gt;
* Fixed an issue where displayed file content does not update after you revert its changes.&lt;br /&gt;
* Fixed an issue where remembered scroll positions were lost when the ItemsSource property of an SfListViewExt changed (e.g., Properties.ShowAllProperties).&lt;br /&gt;
* The UI now updates correctly after mass deletion in multi-selection mode.&lt;br /&gt;
* Fixed issue that caused app to be stuck on splash screen after resuming from background.&lt;br /&gt;
* Fixed an issue where StatusColor was not shown in the UI for objects that didn't additionally have a Progress.&lt;br /&gt;
* Fixed an issue where the Chart Thresholds didn't update.&lt;br /&gt;
* Fixed an issue that caused content of the custom ContentControl to not be rendered sometimes.&lt;br /&gt;
* (Android) Fixed an issue in the WebView where some links could not be opened.&lt;br /&gt;
* Fixed an issue where toggling NA in the String Editor did not behave correctly.&lt;br /&gt;
* Fixed an issue where the deletion of some objects was not reflected in the UI until refresh.&lt;br /&gt;
* Fixed an issue where document creation might not be properly enabled in certain customizing scenarios. For example, a media creation button might be disabled until a page refresh.&lt;br /&gt;
* Fixed an issue where batch creating documents (by multi selecting files to attach) can be interrupted if you leave the page.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Mobile|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Version 5.1|Version 5.1 (Mobile)]]&lt;br /&gt;
&lt;br /&gt;
== Known issues ==&lt;br /&gt;
* Due to third-party limitations, the feature that shows the ImageEditor Save button only when edits have been made is only active when MergeAnnotationsOnSave is set to true. In Mobile, deleting the last annotation does not correctly update the editor's internal edit state. As a result, the Save button may remain visible even though no edits exist.&lt;br /&gt;
* When changing the device orientation during attaching a photo on iOS, the app gets stuck. This is an issue Microsoft confirmed in .NET9 and will fix in .NET10.&lt;br /&gt;
* When editing Guid Link properties, you can no longer further edit the filtering if there are predefined filter parameters (such as the [[Dynamic_Selective_List_(Client)#Dependency_property_values|dependency property values in dynamic selective lists]]). This is because those parameters are to be enforced by design and should not be changed by users. In the future, we might consider a finer level of control over which parameters can be edited in such cases.&lt;br /&gt;
* Currently, the Samsung keyboard doesn't show {{key press|,}} at all, regardless of the current language/locale setting of the device. Please use a different virtual keyboard (e.g. Gboard from Google) instead if {{key press|.}} is unacceptable.&lt;br /&gt;
* The periodic execution of background pushes is not guaranteed on iOS (the native push feature doesn't have this issue).&lt;br /&gt;
* There are still some [[Annotation_and_HotSpot#Known_issues|known issues with free text and text markup annotations]].&lt;br /&gt;
* It is currently not possible to select which camera to use for AR views (e.g. scan page) on Windows.&lt;br /&gt;
* SfPullToRefresh was removed due to [[Mobile_XAML#Issues_with_SfPullToRefresh_in_Mobile_client|existing issues]], and replaced with a Refresh option in the Context menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= ⚠️ XAML Notes =&lt;br /&gt;
Due to the change of the underlying XAML technology, the existing XAMLs for the old mobile clients (pre 5.0) are no longer compatible. Please refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] for migrating them to the new client.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;headertabs /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Mobile|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Version 5.1|Version 5.1 (Mobile)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Version_5.1_(Mobile)&amp;diff=29478</id>
		<title>Version 5.1 (Mobile)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Version_5.1_(Mobile)&amp;diff=29478"/>
				<updated>2026-03-10T09:58:15Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* Release */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Attention|Existing pre 5.0 XAMLs are not compatible with UBIK Mobile client 5.1. Please refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] for migrating them to the new client.}}&lt;br /&gt;
&lt;br /&gt;
{{Attention|UBIK 5 clients can only connect to {{UBIK}} Servers of [[Version 3.6(Server)|version 3.6]] and higher!}}&lt;br /&gt;
&lt;br /&gt;
{{Attention|The minimum supported OS versions are:&lt;br /&gt;
* Android 9;&lt;br /&gt;
* iOS 12.}}&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
{{key press|Android: Store}}{{key press|iOS: Store}}: Publicly available in Google Play Store / Apple App Store.&lt;br /&gt;
&lt;br /&gt;
{{key press|Android: Store Beta}}: Publicly available in Google Play Store as beta versions. You can opt in or out of the beta at any time in the store.&lt;br /&gt;
&lt;br /&gt;
{{key press|Android: Store Preview}}: Available through Google Play Store's [https://play.google.com/store/apps/details?id=com.augmensys.ubik.go invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|iOS: Store Beta}}: Available through Apple App Store's [https://testflight.apple.com/join/Kmb1HG9E invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|iOS: Store Preview}}: Available through Apple App Store's [https://testflight.apple.com/join/yHRnbYbt invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|Windows: Store Preview}}: The mobile Windows client is not an official product and is only distributed as test versions upon request and/or in our [https://release.augmensys.com/download/modules/client/mobile/ release portal].&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|Some customized XAMLs might need an update to work properly. These changes are marked with a ⚠️}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Release Notes =&lt;br /&gt;
&lt;br /&gt;
== Release ==&lt;br /&gt;
=== 5.1.?? 2026-??-?? {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* The system flashlight can now also be enabled or disabled via XAML customization. For detailed information, see [[Mobile XAML#Flashlight|Flashlight]]&lt;br /&gt;
* Replaced app closing after repeated failed login attempts with a client-side temporary login block, including user feedback that indicates when login becomes available again.&lt;br /&gt;
* Added French localization to the app.&lt;br /&gt;
* [[MRO_Objects_(Client)#Signature_Task|MRO Signature Tasks]] have been introduced, which automatically displays the signee as well as the validation timestamp after the task has been signed.&lt;br /&gt;
* Fixed an issue where changes in property editing were not discarded when using the default Back button.&lt;br /&gt;
* Fixed an issue where the application crashed on Windows when navigating back from the VideoPlayer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 5.1.30 2026-03-02 {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* Fixed an issue that prevented any documents from being uploaded when connecting to 5.1 webservices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 5.1.29 on 2026-02-26 {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* Fixed an issue where the POI button was only visible under certain condition (ShowUnreleasedFeatures in the profile is set to true).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 5.1.28 on 2026-02-10 {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* The following features which existed in pre 5.0 versions are now available again in 5.1.&lt;br /&gt;
** [[Map_View|Map view]].&lt;br /&gt;
** [[POI_View_(Mobile)|POI view]]. (Aruco and OCR are not yet supported)&lt;br /&gt;
** Location service.&lt;br /&gt;
** [[Native_Push_(Client)|Native push]].&lt;br /&gt;
** [[Charts]].&lt;br /&gt;
* UBIK now uses industry-standard JSON Web Token (JWT) technology for authorization, enhancing security and reliability. Session tokens are transmitted via HTTP headers instead of URLs for improved protection.&lt;br /&gt;
* Added support for conditionally showing the ImageEditor Save button only when edits have been made, enabled when MergeAnnotationsOnSave is set to true.&lt;br /&gt;
* Complete UI overhaul introduces a cleaner, more modern and adaptive user interface with various quality of life improvements.&lt;br /&gt;
* UBIKTabView supports both dynamic and static items in combination with lazy loading.&lt;br /&gt;
* Files in the app's data folder can now be opened or deleted directly in the developer settings.&lt;br /&gt;
* Introduced a fully resource-driven UI theming system enabling fast, safe customization (dark mode, resizing, and consistent styling) by adapting a small set of centralized resources.&lt;br /&gt;
* Added support for [[File_Upload_Size_Restriction|configurable file-upload size restrictions]], preventing oversized files from being uploaded and providing users with feedback when limits are exceeded.&lt;br /&gt;
* Fixed an issue where annotated image documents do not appear as changed until the UI refreshes.&lt;br /&gt;
* Fixed an issue where displayed file content does not update after you revert its changes.&lt;br /&gt;
* Fixed an issue where remembered scroll positions were lost when the ItemsSource property of an SfListViewExt changed (e.g., Properties.ShowAllProperties).&lt;br /&gt;
* The UI now updates correctly after mass deletion in multi-selection mode.&lt;br /&gt;
* Fixed issue that caused app to be stuck on splash screen after resuming from background.&lt;br /&gt;
* Fixed an issue where StatusColor was not shown in the UI for objects that didn't additionally have a Progress.&lt;br /&gt;
* Fixed an issue where the Chart Thresholds didn't update.&lt;br /&gt;
* Fixed an issue that caused content of the custom ContentControl to not be rendered sometimes.&lt;br /&gt;
* (Android) Fixed an issue in the WebView where some links could not be opened.&lt;br /&gt;
* Fixed an issue where toggling NA in the String Editor did not behave correctly.&lt;br /&gt;
* Fixed an issue where the deletion of some objects was not reflected in the UI until refresh.&lt;br /&gt;
* Fixed an issue where document creation might not be properly enabled in certain customizing scenarios. For example, a media creation button might be disabled until a page refresh.&lt;br /&gt;
* Fixed an issue where batch creating documents (by multi selecting files to attach) can be interrupted if you leave the page.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Mobile|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Version 5.1|Version 5.1 (Mobile)]]&lt;br /&gt;
&lt;br /&gt;
== Known issues ==&lt;br /&gt;
* Due to third-party limitations, the feature that shows the ImageEditor Save button only when edits have been made is only active when MergeAnnotationsOnSave is set to true. In Mobile, deleting the last annotation does not correctly update the editor's internal edit state. As a result, the Save button may remain visible even though no edits exist.&lt;br /&gt;
* When changing the device orientation during attaching a photo on iOS, the app gets stuck. This is an issue Microsoft confirmed in .NET9 and will fix in .NET10.&lt;br /&gt;
* When editing Guid Link properties, you can no longer further edit the filtering if there are predefined filter parameters (such as the [[Dynamic_Selective_List_(Client)#Dependency_property_values|dependency property values in dynamic selective lists]]). This is because those parameters are to be enforced by design and should not be changed by users. In the future, we might consider a finer level of control over which parameters can be edited in such cases.&lt;br /&gt;
* Currently, the Samsung keyboard doesn't show {{key press|,}} at all, regardless of the current language/locale setting of the device. Please use a different virtual keyboard (e.g. Gboard from Google) instead if {{key press|.}} is unacceptable.&lt;br /&gt;
* The periodic execution of background pushes is not guaranteed on iOS (the native push feature doesn't have this issue).&lt;br /&gt;
* There are still some [[Annotation_and_HotSpot#Known_issues|known issues with free text and text markup annotations]].&lt;br /&gt;
* It is currently not possible to select which camera to use for AR views (e.g. scan page) on Windows.&lt;br /&gt;
* SfPullToRefresh was removed due to [[Mobile_XAML#Issues_with_SfPullToRefresh_in_Mobile_client|existing issues]], and replaced with a Refresh option in the Context menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= ⚠️ XAML Notes =&lt;br /&gt;
Due to the change of the underlying XAML technology, the existing XAMLs for the old mobile clients (pre 5.0) are no longer compatible. Please refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] for migrating them to the new client.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;headertabs /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Mobile|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Version 5.1|Version 5.1 (Mobile)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=MRO_(Plugin)&amp;diff=29437</id>
		<title>MRO (Plugin)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=MRO_(Plugin)&amp;diff=29437"/>
				<updated>2026-03-02T15:47:22Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The MRO plugin provides a set of {{UBIK}} objects which allow to represent and document maintenance, repair and operations work on the mobile client. An respective implementation of this set of features is available on {{UBIK WinX}}.&lt;br /&gt;
&lt;br /&gt;
== Basic Features ==&lt;br /&gt;
Objects classified as MRO objects in general provide a technical and organisational status as well as the overall work progress based on the underlying data branch.&lt;br /&gt;
&lt;br /&gt;
=== Technical Status ===&lt;br /&gt;
For detailed information, see [[MRO Objects (Client)#Technical Status|Technical Status]]&lt;br /&gt;
&lt;br /&gt;
=== Organisational Status ===&lt;br /&gt;
For detailed information, see [[MRO Objects (Client)#Organisational Status|Organisational Status]]&lt;br /&gt;
&lt;br /&gt;
=== Work Progress ===&lt;br /&gt;
For detailed information, see [[MRO Objects (Client)#Work Progress|Work Progress]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== MRO Objects ==&lt;br /&gt;
A set of specific objects can be used to provide the required structure for MRO:&lt;br /&gt;
&lt;br /&gt;
=== Task Owner ===&lt;br /&gt;
A [[MROCLS_MRO_TASKOWNER|Task Owner]] is an object having a substructure of jobs to be done. It can have a tree of other task owners or work packages underneath that will update the status of the task owner. This status consists of technical, organisational and progress information. With a task owner a user can get an overview of all the work to be done in the underlying job structure.&lt;br /&gt;
&lt;br /&gt;
=== Work Package===&lt;br /&gt;
A [[MROCLS_MRO_WORKPACKAGE|Work Package]] is a collection of objects to collect and summarize other task owning objects, workpackages, or tasks. A simple workpackage has a certain amount of tasks that have to be finished in order to confirm the workpackage as done. More complex workpackages can also own other underlying workpackages that have to be confirmed.  Confirming a workpackage itself requires a progress of 100% of all related tasks, as well as 100% confirmed sub work packages.&lt;br /&gt;
&lt;br /&gt;
=== Task ===&lt;br /&gt;
A [[MROCLS_MRO_TASK|Task]] is an object reporting a certain progress to the owning workpackage. There are several specialized types of task objects. All kinds of tasks have a property called '''VALUE''' in common. It is very important, that this property is able to be validated. Therefore, a MetaAttribute (providing a validation timestamp by default) has to be attached on the used MetaProperty.&lt;br /&gt;
&lt;br /&gt;
{{Attention|The MetaProperty ''VALUE'' has to use [[Attributes]] in order to be validated. Otherwise, the calculation of work progress will not be possible.}}&lt;br /&gt;
&lt;br /&gt;
==== Measurement Task ====&lt;br /&gt;
A [[MROCLS_MRO_MEASUREMENT_TASK|Measurement Task]] inherits from [[MROCLS_MRO_TASK|Task]] and documents a measured value (e.g. read from a pressure gauge). Once a value has been entered, the task is finished. Alternatively, the task can also be closed by the option ''Not Applicable'' to document the situation of not being able to fullfill the measurement (e.g. the pressure gauge is broken). &lt;br /&gt;
&lt;br /&gt;
==== Progress Task ====&lt;br /&gt;
[[MROCLS_MRO_PROGRESS_TASK| Progress Task]] inherits from [[MROCLS_MRO_MEASUREMENT_TASK|Task]] and reports a certain progress while fullfilling a task. The progress will influence the overall progress of the owning workpackage. If the task cannot be fullfilled, it can also be finished with the option ''Not Applicable''.&lt;br /&gt;
&lt;br /&gt;
==== Check Task ====&lt;br /&gt;
[[MROCLS_MRO_CHECK_TASK|Check Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished by reporting ''Done'' or ''Not Applicable''. This is intended for a simple To-Do task that is either done or not.&lt;br /&gt;
&lt;br /&gt;
==== Inspection Task ====&lt;br /&gt;
A [[MROCLS_MRO_INSPECTION_TASK|Inspection Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished, when the user reports with a positive or negative answer or ''Not Applicable'' (e.g. reporting a yes/no answer for existing equipment).&lt;br /&gt;
&lt;br /&gt;
== MRO Implemented Objects ==&lt;br /&gt;
A set of specific objects extending functionalities of existing MRO elements.&amp;lt;br /&amp;gt;&lt;br /&gt;
For Task Objects, Value properties are assigned by default and implement necessary classifications.&lt;br /&gt;
&lt;br /&gt;
=== Procedure Workpackage ===&lt;br /&gt;
A [[MROCLS_PROCEDURE|Procedure Workpackage]] is a specialized type of [[MROCLS_MRO_WORKPACKAGE|Work Package]] designed to model complex workflows. It consists of sequential tasks that can include branching logic, modular structures, and references to linked data. Procedure Workpackages allow the execution of structured processes that may adapt dynamically depending on conditions. They support both online and offline execution, with certain steps (e.g. data exchange) triggered once connectivity is available.&lt;br /&gt;
&lt;br /&gt;
=== Switch Start Task ===&lt;br /&gt;
A [[MROCLS_SWITCH_START_TASK|Switch Start Task]] is a type of sequential task used within a Procedure Workpackage to define branching logic. It evaluates a predefined (boolean) condition, which can be checked by the client, to determine which branch (true or false) of the workflow will be followed. Each branch represents a different execution path composed of its own set of tasks. A Switch Start Task always requires a corresponding [[MROCLS_SWITCH_END_TASK|Switch End Task]], where all branches converge and the unified procedure continues.&lt;br /&gt;
&lt;br /&gt;
=== Switch End Task ===&lt;br /&gt;
A [[MROCLS_SWITCH_END_TASK|Switch End Task]] marks the end of a branching structure initiated by a [[MROCLS_SWITCH_TASK|Switch Task]]. It is a sequential task that connects the different branches back into a single workflow path. Each Switch End Task is directly linked to its respective Switch Task and ensures that, regardless of which branch was taken, the overall procedure continues in a consistent and controlled manner.&lt;br /&gt;
&lt;br /&gt;
=== Check Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Check Task]] allows the user to check the task as completed or Not Applicable.&lt;br /&gt;
&lt;br /&gt;
=== Numeric Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Numeric Task]] allows the user to input a numeric value (double). It includes a defined value range, and if the entered value falls outside this range, the task is visually marked as problematic.&lt;br /&gt;
&lt;br /&gt;
=== Inspection Task ===&lt;br /&gt;
An [[MRO_Implemented_Objects|Inspection Task]] presents the user with two customizable buttons representing different inspection outcomes, along with a Not Applicable option. The labels of the buttons can be defined during the procedure creation.&lt;br /&gt;
&lt;br /&gt;
=== Text Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Text Task]] provides a text input field for the user to enter free-form information. This task is useful for capturing qualitative data or comments during the procedure.&lt;br /&gt;
&lt;br /&gt;
=== Picture Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Picture Task]] enables the user to take and attach one or more photos. It includes a button to initiate the camera and another to confirm the task. The confirmation button remains disabled until at least one picture has been successfully captured.&lt;br /&gt;
&lt;br /&gt;
=== Dynamic List Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Dynamic List Task]] presents a button that, when clicked, displays a list of selectable options. These options are defined by the procedure creator and can vary depending on the context. This task is ideal for scenarios requiring user selection from a predefined but flexible set of choices.&lt;br /&gt;
&lt;br /&gt;
=== Supervisor Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Supervisor Task]] includes a button for NFC reading. If a supervisor successfully authenticates, it enables confirmation buttons, input fields, or other interactive elements.&lt;br /&gt;
&lt;br /&gt;
=== Interface Task ===&lt;br /&gt;
An [[MRO_Implemented_Objects|Interface Task]] performs a REST API request automatically when it becomes active. It does not include any visible buttons or user interaction. Once the server responds, the task is automatically confirmed based on the response.&lt;br /&gt;
&lt;br /&gt;
=== Calculation Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Calculation Task]] is used to evaluate a predefined expression and apply its result to a predefined property on its owner. It supports logical or numerical expressions. The result type is defined explicitly to ensure correct handling and validation by the client.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Signature Task ===&lt;br /&gt;
Signature Task prompts the user to provide a written signature to confirm task completion. The task is marked complete once the signature is submitted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[MROCLS_MRO_TASKOWNER#Task Owner]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_WORKPACKAGE#Work Package]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_TASK#Task]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_MEASUREMENT_TASK#Measurement Task]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_PROGRESS_TASK# Progress Task]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_CHECK_TASK#Check Task]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_INSPECTION_TASK#Inspection Task]] (Classification)&lt;br /&gt;
* [[MROCLS_SEQUENTIALTASK]] (Classification)&lt;br /&gt;
* [[MROCLS_GROUPEDTASK]] (Classification)&lt;br /&gt;
* [[MROCLS_PROJECT]] (Classification)&lt;br /&gt;
* [[MROCLS_PROJECTINFORMATION]] (Classification)&lt;br /&gt;
* [[MRO_Objects_(Client)]]&lt;br /&gt;
* [[MRO_Implemented_Objects]]&lt;br /&gt;
* [[MROCLS_PROCEDURE#Procedure Workpackage]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_START_TASK#Switch Start Task]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_END_TASK#Switch End Task]] (Classification)&lt;br /&gt;
* [[MROCLS_CALCULATION_TASK#Calculation Task]] (Classification)&lt;br /&gt;
&lt;br /&gt;
[[Category:Module|MRO (Plugin)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=MRO_Objects_(Client)&amp;diff=29436</id>
		<title>MRO Objects (Client)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=MRO_Objects_(Client)&amp;diff=29436"/>
				<updated>2026-03-02T15:45:19Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* MRO Objects */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:UI_WinX_MRO_ChildList.png|thumb|alt=MRO Child List UI (WinX)|MRO UI (WinX)]]&lt;br /&gt;
[[File:Android_mro_ui.jpg|thumb|alt=MRO Child List UI (Android)|MRO UI (Android)]]&lt;br /&gt;
The WinX client UI displays MRO configured objects like any other root- or child-object enriched by some additional logic and features.&lt;br /&gt;
&lt;br /&gt;
== Basic User Interface ==&lt;br /&gt;
The representation of MRO features comprises some indicators and interactive controls. In the {{UBIK}} child list, the main object displays cumulated technical and organisational status as well as the overall work progress based on the underlying data branch. Objects classified as MRO objects in general provide indicators for the MRO status. This means the status is shown next to the main icon of a child-/details-/documents-page as well as next to the icons of the child list items:&lt;br /&gt;
&lt;br /&gt;
=== Technical Status ===&lt;br /&gt;
&lt;br /&gt;
The technical status indicator is shown on all objects that represent a technical state or receive the technical status from subsequent objects in the underlying data branch. If e.g. a inventory object is reported as damaged, its parent objects will all display the exclamation mark symbol to indicate that a problem was reported in the child items.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_TechnicalStatusIndicator.png|thumb|Technical Status Indicator (WinX)&lt;br /&gt;
File:Android_tech_status.PNG|thumb|Technical Status Indicator (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Android|MRO Objects (UBIK WinX)]]&lt;br /&gt;
[[Category:Client|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Mobile|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Pages with broken file links|MRO Objects (Client)]]&lt;br /&gt;
[[Category:WinX|MRO Objects (UBIK WinX)]]&lt;br /&gt;
&lt;br /&gt;
=== Organisational Status ===&lt;br /&gt;
The organisational status indicates the amount of confirmed work within the data branch, including already confirmed work packages as well as tasks that are locked by their owning work package. The organisational status indicator is displayed on all objects that represent an organisational state or receive the organisational status from subsequent objects in the underlying data branch, and visualizes the amount of confirmed work performed within that branch.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_OrganisationalStatusIndicator.png|Organisational Status Indicator (WinX)&lt;br /&gt;
File:UI_WinX_MRO_WPConfirmedIndicator.png|MRO Workpackage Confirmed (Flag) Indicator (WinX)&lt;br /&gt;
File:Android_orga_status.PNG|Organisational Status Indicator (Android)&lt;br /&gt;
File:Android_orga_status_finished.PNG|MRO Workpackage Confirmed Indicator (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Work Progress ===&lt;br /&gt;
The work progress is calculated from the current work progress and from the progress cumulated from subsequent objects in the underlying data branch. This indicator shows the amount of work done in the data branch.&lt;br /&gt;
&lt;br /&gt;
{{Version/WinXSince|5.0}} {{Version/MobileSince|5.0}} By default, the progress is displayed with maximum one decimal place. For example, 99.75% is displayed as 99.8%. The format string used to achieve this is &amp;lt;code&amp;gt;{0:0.#}%&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If other numeric formats are preferred in your usecases, you can refer to [https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-numeric-format-strings custom numeric format strings] for more information. The template to customize for this is the UBIKMROProgressBadge within UBIKThemes.&lt;br /&gt;
&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== MRO Objects ==&lt;br /&gt;
A set of specific objects can be used to provide the required structure for MRO:&lt;br /&gt;
&lt;br /&gt;
=== Task Owner ===&lt;br /&gt;
A [[MROCLS_MRO_TASKOWNER|Task Owner]] is an object having a substructure of jobs to be done. It can have a tree of other task owners or work packages underneath that will update the status of the task owner. This status consists of technical, organisational and progress information. With a task owner a user can get an overview of all the work to be done in the underlying job structure.&lt;br /&gt;
&lt;br /&gt;
=== Work Package===&lt;br /&gt;
A [[MROCLS_MRO_WORKPACKAGE|Work Package]] is a collection of objects to collect and summarize other task owning objects, workpackages, or tasks. A simple workpackage has a certain amount of tasks that have to be finished in order to confirm the workpackage as done. More complex workpackages can also own other underlying workpackages that have to be confirmed.  Confirming a workpackage itself requires a progress of 100% of all related tasks, as well as 100% confirmed sub work packages.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_WPConfirmButton.png|MRO Workpackage confirm button (WinX)&lt;br /&gt;
File:UI_WinX_MRO_WPRevokeConfirmButton.png|MRO Workpackage revoke confirmation button (WinX)&lt;br /&gt;
File:Android_finish_workpackage.PNG|MRO Workpackage confirm button (Android)&lt;br /&gt;
File:Android reopen workpackage.PNG|MRO Workpackage revoke confirmation button (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Task ===&lt;br /&gt;
A [[MROCLS_MRO_TASK|Task]] is an object reporting a certain progress to the owning workpackage. There are several specialized types of task objects. All kinds of tasks have a property called '''VALUE''' in common. It is very important, that this property is able to be validated. Therefore, a MetaAttribute (providing a validation timestamp by default) has to be attached on the used MetaProperty.&lt;br /&gt;
&lt;br /&gt;
On both clients, a Task can be reverted by clicking twice on the Not Applicable button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|The MetaProperty ''VALUE'' has to use [[Attributes]] in order to be validated. Otherwise, the calculation of work progress will not be possible.}}&lt;br /&gt;
&lt;br /&gt;
==== Measurement Task ====&lt;br /&gt;
&lt;br /&gt;
A [[MROCLS_MRO_MEASUREMENT_TASK|Measurement Task]] inherits from [[MROCLS_MRO_TASK|Task]] and documents a measured value (e.g. read from a pressure gauge). Therefore, clicking the value on the shown task opens an editor to enter the desired value. If no value was entered before, an empty line will be shown. Once a value has been entered, the task is finished. Alternatively, the task can also be closed by the option ''Not Applicable'' to document the situation of not being able to fullfill the measurement (e.g. the pressure gauge is broken). An additional small value indicator below the main value can report e.g. the previously entered value. The behaviour of this previous value indicator has to be specified separately in the customizing.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Measurment Task Empty UWP.png|Measurement Task without a reported value (WinX)&lt;br /&gt;
File:Measurment Task Not Empty UWP.png|Measurement Task with a reported value (WinX)&lt;br /&gt;
File:Measurment Task Empty Android.jpg|Measurement Task without a reported value (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Progress Task ====&lt;br /&gt;
&lt;br /&gt;
[[MROCLS_MRO_PROGRESS_TASK| Progress Task]] inherits from [[MROCLS_MRO_MEASUREMENT_TASK|Task]] and reports a certain progress while fullfilling a task. The progress will influence the overall progress of the owning workpackage. If the task cannot be fullfilled, it can also be finished with the option ''Not Applicable''.&lt;br /&gt;
&lt;br /&gt;
There is also an [[MRO_PROGRESS_TASK_EDITOR|alternative editor]] available for progress tasks.{{Version/WinXSince|2.5.4}}&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Progress Task UWP.png|Progress Task with a reported work progress (WinX)&lt;br /&gt;
File:Progress Task Android.jpg|Progress Task with a reported work progress and a previous progress(Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Check Task ====&lt;br /&gt;
&lt;br /&gt;
A [[MROCLS_MRO_CHECK_TASK|Check Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished by reporting ''Done'' or ''Not Applicable''. This is intended for a simple To-Do task that is either done or not.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Check Task finished UWP.png|Unfinished MRO CheckTask (WinX)&lt;br /&gt;
File:Check Task android.jpg|Not Applicable MRO CheckTask (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Inspection Task ====&lt;br /&gt;
&lt;br /&gt;
[[MROCLS_MRO_INSPECTION_TASK|Inspection Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished, when the user reports with a positive or negative answer or ''Not Applicable'' (e.g. reporting a yes/no answer for existing equipment).&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Finished Inspection Task UWP.png|Finished MRO InspectionTask (WinX)&lt;br /&gt;
File:Inspection task android.jpg|Finished MRO InspectionTask (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Sequential Task ====&lt;br /&gt;
The [[MROCLS_SEQUENTIALTASK|sequential task classification]] allows you to pre-define a sequence in which tasks are to be resolved by users. This means that it is required for one or multiple tasks to be finished in order for other tasks to become &amp;quot;unlocked&amp;quot; and editable. A task can have any number of &amp;quot;predecessors&amp;quot;. Predecessors are the tasks that are required to be finished first.&lt;br /&gt;
&lt;br /&gt;
A task can have predecessors that live anywhere else in the object hierarchy. It is not necessary for a task and its predecessors to be part of the same work package, even though this is likely the most common use case.&lt;br /&gt;
&lt;br /&gt;
The state of a sequential task is evaluated both offline and online to get the best possible user experience. The user will see dependent tasks update immediately if their successors were finished, if those tasks are currently visible in the UI. There is 1 case in which the server-side state will override the client-side (offline) evaluation, discussed below.&lt;br /&gt;
The state of each sequential task is evaluated the following way:&lt;br /&gt;
&lt;br /&gt;
# If the server-side state says the task is open, we consider this as the truthful state and don't do any other evaluation.&lt;br /&gt;
# Check if the task has any predecessors.&lt;br /&gt;
# Try to load each predecessor task.&lt;br /&gt;
#* If loading of any predecessor fails (the object is not available offline), the task will be locked.&lt;br /&gt;
# If all predecessor tasks are finished, the task is open and can be edited. Otherwise, the task is locked.&lt;br /&gt;
&lt;br /&gt;
The customizer setting up the task dependency relations needs to ensure that the dependencies are not cyclical. In this case, it would be impossible for any tasks in the &amp;quot;cycle&amp;quot; to be finished.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&lt;br /&gt;
&lt;br /&gt;
As a demonstration of this feature, see [[Media:Sequential_tasks_winx.mp4|this video]]. The relations between tasks are defined as in [[Media:Task_relations.png|this image]], starting at A1 and A2, which are not dependent on any other tasks. The lines (from left to right) indicate dependencies. This means that B2 has tasks A1 and A2 as its predecessors, for example.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Grouped Task {{Version/WinXSince|4.2}}{{Version/XamarinSince|4.2}} ====&lt;br /&gt;
Sometimes, not all tasks have to be finished. More specifically, there might be a predefined condition where you only need to finish a certain number of tasks among a group of them. These are known in {{UBIK}} as [[MROCLS_GROUPEDTASK|grouped tasks]].&lt;br /&gt;
&lt;br /&gt;
The idea is, a group of tasks can be defined as siblings to each other and they also share the same server configured threshold. When the number of finished tasks among that group exceeds the threshold, the entire group is considered as no longer necessary. When reflected in the overall status of the task owner(s), these tasks would appear as if they are finished.&lt;br /&gt;
&lt;br /&gt;
{{Hint|Technically speaking, the finished status is completely independent from the not necessary status on a task. A grouped task which is no longer necessary can be both finished or not yet finished. In other words, users don't have to finish a not necessary grouped task, but they still can.}}&lt;br /&gt;
&lt;br /&gt;
{{Hint|The precise status calculation for grouped tasks and their task owners requires the knowledge of all siblings tasks. Imagine 2 out of 3 tasks must be finished but the client only knows 1 in total and the others are only available at the server at that time. This makes it impossible to draw conclusions whether the task(s) should be necessary or not. Under such circumstances, the local status calculation is done as if these are just regular tasks.}}&lt;br /&gt;
&lt;br /&gt;
{{Hint|Like with the other MRO objects, the client always chooses the best available statuses for grouped tasks to present to the users. More specifically, it uses the statuses calculated by the server when the client is not offline and there are no uncommitted local changes on the involved objects. Otherwise, it uses the statuses calculated locally to the best of its knowledge.}}&lt;br /&gt;
&lt;br /&gt;
A task can also be a grouped and a sequential one at the same time. In such a case, the grouped nature of the sibling tasks will affect the way the task sequence completes.&lt;br /&gt;
&lt;br /&gt;
For example, task A1, A2 and A3 are 3 grouped sibling tasks and only 1 of them needs to be finished. At the same time, they are all predecessors of task B. Normally, all predecessors must be finished (and locked) before task B becomes the next one in the sequence and therefore unlocked. In this case, however, as soon as one of the predecessors is finished, all three become unnecessary (and locked) and task B unlocks as a result of that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Supervisor Task {{Version/XamarinSince|4.8}} ====&lt;br /&gt;
As the name suggests, supervisor tasks are those that must be finished under supervision. When users want to finish a [[MROCLS_MRO_SUPERVISOR_TASK|supervisor task]], they must hand over their work devices to a supervisor. The latter checks the work status and scans an NFC tag if the work is approved. If the [[MROCLS_MRO_SUPERVISOR|supervisor]] has sufficient permissions for the task and the correct supervisor PIN is given, the task gets unlocked and the users can proceed to finish it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=300px&amp;gt;&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_Before_Verification.jpg|Supervisor Task Before Verification/Unlocking (Mobile)&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_Enter_PIN.jpg|Supervisor Task Enter PIN (Mobile)&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_After_Verification.jpg|Supervisor Task After Verification/Unlocking (Mobile)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A thing to note is that while the need to verify a supervisor task can be seen as a type of locking, it's certainly not the only reason for a [[Locked_Objects|locked object]]. This means a supervisor task can remain locked (although for different reasons) even after a supervisor has successfully verified it. This can often be the case if you use it in combination with other features such as [[MRO_Objects_(Client)#Sequential_Task|sequential tasks]], [[User_Rights|user rights]].&lt;br /&gt;
&lt;br /&gt;
{{Hint|For security reasons, the verification process is cancelled if the supervisor enters the wrong PIN for three times. Scanning the tag again is required in that case.}}&lt;br /&gt;
{{Hint|A setting controls [[RFID_tags#Choose_which_information_to_use_from_a_tag|which information in a scanned tag is used]] during this process.}}&lt;br /&gt;
&lt;br /&gt;
==== Signature Task {{Version/MobileSince|5.1}} ====&lt;br /&gt;
&lt;br /&gt;
The Signature Task is a task type that is completed by capturing a handwritten signature from the user. The task contains an editor field that serves as the entry point for the signing process. When the user clicks (or taps) on the editor field, a signature dialog opens. Within this dialog, the user can provide their signature. After confirming the input, the signature is saved and the task is automatically marked as completed.&lt;br /&gt;
&lt;br /&gt;
If the task is signed while the client is online:&lt;br /&gt;
* The User (signee) is resolved immediately by the server and displayed.&lt;br /&gt;
* The ValidationTimestamp is generated and displayed.&lt;br /&gt;
* Both values are shown directly in the editor field after signing.&lt;br /&gt;
&lt;br /&gt;
{{Hint|The User only gets resolved by the server and displayed once you're in online mode}}&lt;br /&gt;
&lt;br /&gt;
If the displayed User and/or ValidationTimestamp cannot be fully shown due to limited space in the editor field, the complete information can be accessed via a tooltip.&lt;br /&gt;
&lt;br /&gt;
* In '''UBIK WinX (UWP)''', hover over the editor field with the mouse.&lt;br /&gt;
* In '''UBIK Mobile''', perform a long press on the editor field.&lt;br /&gt;
A tooltip will appear, displaying the full User and ValidationTimestamp without truncation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MRO objects with project information (WinX only) {{Version/WinXSince|2.5.4}} ===&lt;br /&gt;
[[File:UI_WinX_MRO_ProjectInfo.png|thumb|MRO Object with Project Info (WinX)]]&lt;br /&gt;
An MRO object (except tasks) might also bring along [[MROCLS_PROJECTINFORMATION|project information]]. In this case, the project information together with the MRO progress are displayed in a bar chart. The start &amp;amp; end dates of the MRO object are displayed on the progress bar. The length and the position of the progress bar, together with the current date mark indicate the timeline.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Android|MRO Objects (UBIK WinX)]]&lt;br /&gt;
[[Category:Client|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Mobile|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Pages with broken file links|MRO Objects (Client)]]&lt;br /&gt;
[[Category:WinX|MRO Objects (UBIK WinX)]]&lt;br /&gt;
&lt;br /&gt;
== Locking ==&lt;br /&gt;
When an (MRO) object is locked, editing it becomes impossible. More details about [[Locked_Objects|locked objects]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[MRO (Plugin)]]&lt;br /&gt;
* [[MROCLS_PROJECT]]&lt;br /&gt;
* [[MROCLS_PROJECTINFORMATION]]&lt;br /&gt;
* [[MROCLS_SEQUENTIALTASK]]&lt;br /&gt;
* [[MROCLS_GROUPEDTASK]]&lt;br /&gt;
* [[MROCLS_MRO_CHECK_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_INSPECTION_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_MEASUREMENT_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_PROGRESS_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_TASKOWNER]]&lt;br /&gt;
* [[MROCLS_MRO_WORKPACKAGE]]&lt;br /&gt;
* [[MROCLS_PROCEDURE#Procedure Workpackage]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_TASK#Switch Task]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_END_TASK#Switch End Task]] (Classification)&lt;br /&gt;
* [[MROCLS_CALCULATION_TASK#Calculation Task]] (Classification)&lt;br /&gt;
&lt;br /&gt;
[[Category:Android|MRO Objects (UBIK WinX)]]&lt;br /&gt;
[[Category:Client|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Mobile|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Pages with broken file links|MRO Objects (Client)]]&lt;br /&gt;
[[Category:WinX|MRO Objects (UBIK WinX)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Version_5.1_(Mobile)&amp;diff=29435</id>
		<title>Version 5.1 (Mobile)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Version_5.1_(Mobile)&amp;diff=29435"/>
				<updated>2026-03-02T15:43:47Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* 5.1.?? 2026-??-?? {{key press|Android: Store}}{{key press|iOS: Store}} */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Attention|Existing pre 5.0 XAMLs are not compatible with UBIK Mobile client 5.1. Please refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] for migrating them to the new client.}}&lt;br /&gt;
&lt;br /&gt;
{{Attention|UBIK 5 clients can only connect to {{UBIK}} Servers of [[Version 3.6(Server)|version 3.6]] and higher!}}&lt;br /&gt;
&lt;br /&gt;
{{Attention|The minimum supported OS versions are:&lt;br /&gt;
* Android 9;&lt;br /&gt;
* iOS 12.}}&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
{{key press|Android: Store}}{{key press|iOS: Store}}: Publicly available in Google Play Store / Apple App Store.&lt;br /&gt;
&lt;br /&gt;
{{key press|Android: Store Beta}}: Publicly available in Google Play Store as beta versions. You can opt in or out of the beta at any time in the store.&lt;br /&gt;
&lt;br /&gt;
{{key press|Android: Store Preview}}: Available through Google Play Store's [https://play.google.com/store/apps/details?id=com.augmensys.ubik.go invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|iOS: Store Beta}}: Available through Apple App Store's [https://testflight.apple.com/join/Kmb1HG9E invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|iOS: Store Preview}}: Available through Apple App Store's [https://testflight.apple.com/join/yHRnbYbt invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|Windows: Store Preview}}: The mobile Windows client is not an official product and is only distributed as test versions upon request and/or in our [https://release.augmensys.com/download/modules/client/mobile/ release portal].&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|Some customized XAMLs might need an update to work properly. These changes are marked with a ⚠️}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Release Notes =&lt;br /&gt;
&lt;br /&gt;
== Release ==&lt;br /&gt;
=== 5.1.?? 2026-??-?? {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* The system flashlight can now also be enabled or disabled via XAML customization. For detailed information, see [[Mobile XAML#Flashlight|Flashlight]]&lt;br /&gt;
* Replaced app closing after repeated failed login attempts with a client-side temporary login block, including user feedback that indicates when login becomes available again.&lt;br /&gt;
* Added French localization to the app.&lt;br /&gt;
* [[MRO_Objects_(Client)#Signature_Task|MRO Signature Tasks]] have been introduced, which automatically displays the signee as well as the validation timestamp after the task has been signed.&lt;br /&gt;
* Fixed an issue where changes in property editing were not discarded when using the default Back button.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Mobile|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Version 5.1|Version 5.1 (Mobile)]]&lt;br /&gt;
&lt;br /&gt;
=== 5.1.30 2026-03-02 {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* Fixed an issue that prevented any documents from being uploaded when connecting to 5.1 webservices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 5.1.29 on 2026-02-26 {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* Fixed an issue where the POI button was only visible under certain condition (ShowUnreleasedFeatures in the profile is set to true).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 5.1.28 on 2026-02-10 {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* The following features which existed in pre 5.0 versions are now available again in 5.1.&lt;br /&gt;
** [[Map_View|Map view]].&lt;br /&gt;
** [[POI_View_(Mobile)|POI view]]. (Aruco and OCR are not yet supported)&lt;br /&gt;
** Location service.&lt;br /&gt;
** [[Native_Push_(Client)|Native push]].&lt;br /&gt;
** [[Charts]].&lt;br /&gt;
* UBIK now uses industry-standard JSON Web Token (JWT) technology for authorization, enhancing security and reliability. Session tokens are transmitted via HTTP headers instead of URLs for improved protection.&lt;br /&gt;
* Added support for conditionally showing the ImageEditor Save button only when edits have been made, enabled when MergeAnnotationsOnSave is set to true.&lt;br /&gt;
* Complete UI overhaul introduces a cleaner, more modern and adaptive user interface with various quality of life improvements.&lt;br /&gt;
* UBIKTabView supports both dynamic and static items in combination with lazy loading.&lt;br /&gt;
* Files in the app's data folder can now be opened or deleted directly in the developer settings.&lt;br /&gt;
* Introduced a fully resource-driven UI theming system enabling fast, safe customization (dark mode, resizing, and consistent styling) by adapting a small set of centralized resources.&lt;br /&gt;
* Added support for [[File_Upload_Size_Restriction|configurable file-upload size restrictions]], preventing oversized files from being uploaded and providing users with feedback when limits are exceeded.&lt;br /&gt;
* Fixed an issue where annotated image documents do not appear as changed until the UI refreshes.&lt;br /&gt;
* Fixed an issue where displayed file content does not update after you revert its changes.&lt;br /&gt;
* Fixed an issue where remembered scroll positions were lost when the ItemsSource property of an SfListViewExt changed (e.g., Properties.ShowAllProperties).&lt;br /&gt;
* The UI now updates correctly after mass deletion in multi-selection mode.&lt;br /&gt;
* Fixed issue that caused app to be stuck on splash screen after resuming from background.&lt;br /&gt;
* Fixed an issue where StatusColor was not shown in the UI for objects that didn't additionally have a Progress.&lt;br /&gt;
* Fixed an issue where the Chart Thresholds didn't update.&lt;br /&gt;
* Fixed an issue that caused content of the custom ContentControl to not be rendered sometimes.&lt;br /&gt;
* (Android) Fixed an issue in the WebView where some links could not be opened.&lt;br /&gt;
* Fixed an issue where toggling NA in the String Editor did not behave correctly.&lt;br /&gt;
* Fixed an issue where the deletion of some objects was not reflected in the UI until refresh.&lt;br /&gt;
* Fixed an issue where document creation might not be properly enabled in certain customizing scenarios. For example, a media creation button might be disabled until a page refresh.&lt;br /&gt;
* Fixed an issue where batch creating documents (by multi selecting files to attach) can be interrupted if you leave the page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Known issues ==&lt;br /&gt;
* Due to third-party limitations, the feature that shows the ImageEditor Save button only when edits have been made is only active when MergeAnnotationsOnSave is set to true. In Mobile, deleting the last annotation does not correctly update the editor's internal edit state. As a result, the Save button may remain visible even though no edits exist.&lt;br /&gt;
* When changing the device orientation during attaching a photo on iOS, the app gets stuck. This is an issue Microsoft confirmed in .NET9 and will fix in .NET10.&lt;br /&gt;
* When editing Guid Link properties, you can no longer further edit the filtering if there are predefined filter parameters (such as the [[Dynamic_Selective_List_(Client)#Dependency_property_values|dependency property values in dynamic selective lists]]). This is because those parameters are to be enforced by design and should not be changed by users. In the future, we might consider a finer level of control over which parameters can be edited in such cases.&lt;br /&gt;
* Currently, the Samsung keyboard doesn't show {{key press|,}} at all, regardless of the current language/locale setting of the device. Please use a different virtual keyboard (e.g. Gboard from Google) instead if {{key press|.}} is unacceptable.&lt;br /&gt;
* The periodic execution of background pushes is not guaranteed on iOS (the native push feature doesn't have this issue).&lt;br /&gt;
* There are still some [[Annotation_and_HotSpot#Known_issues|known issues with free text and text markup annotations]].&lt;br /&gt;
* It is currently not possible to select which camera to use for AR views (e.g. scan page) on Windows.&lt;br /&gt;
* SfPullToRefresh was removed due to [[Mobile_XAML#Issues_with_SfPullToRefresh_in_Mobile_client|existing issues]], and replaced with a Refresh option in the Context menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= ⚠️ XAML Notes =&lt;br /&gt;
Due to the change of the underlying XAML technology, the existing XAMLs for the old mobile clients (pre 5.0) are no longer compatible. Please refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] for migrating them to the new client.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;headertabs /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Mobile|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Version 5.1|Version 5.1 (Mobile)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=MRO_Objects_(Client)&amp;diff=29432</id>
		<title>MRO Objects (Client)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=MRO_Objects_(Client)&amp;diff=29432"/>
				<updated>2026-03-02T14:00:35Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* MRO Objects */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:UI_WinX_MRO_ChildList.png|thumb|alt=MRO Child List UI (WinX)|MRO UI (WinX)]]&lt;br /&gt;
[[File:Android_mro_ui.jpg|thumb|alt=MRO Child List UI (Android)|MRO UI (Android)]]&lt;br /&gt;
The WinX client UI displays MRO configured objects like any other root- or child-object enriched by some additional logic and features.&lt;br /&gt;
&lt;br /&gt;
== Basic User Interface ==&lt;br /&gt;
The representation of MRO features comprises some indicators and interactive controls. In the {{UBIK}} child list, the main object displays cumulated technical and organisational status as well as the overall work progress based on the underlying data branch. Objects classified as MRO objects in general provide indicators for the MRO status. This means the status is shown next to the main icon of a child-/details-/documents-page as well as next to the icons of the child list items:&lt;br /&gt;
&lt;br /&gt;
=== Technical Status ===&lt;br /&gt;
&lt;br /&gt;
The technical status indicator is shown on all objects that represent a technical state or receive the technical status from subsequent objects in the underlying data branch. If e.g. a inventory object is reported as damaged, its parent objects will all display the exclamation mark symbol to indicate that a problem was reported in the child items.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_TechnicalStatusIndicator.png|thumb|Technical Status Indicator (WinX)&lt;br /&gt;
File:Android_tech_status.PNG|thumb|Technical Status Indicator (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Android|MRO Objects (UBIK WinX)]]&lt;br /&gt;
[[Category:Client|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Mobile|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Pages with broken file links|MRO Objects (Client)]]&lt;br /&gt;
[[Category:WinX|MRO Objects (UBIK WinX)]]&lt;br /&gt;
&lt;br /&gt;
=== Organisational Status ===&lt;br /&gt;
The organisational status indicates the amount of confirmed work within the data branch, including already confirmed work packages as well as tasks that are locked by their owning work package. The organisational status indicator is displayed on all objects that represent an organisational state or receive the organisational status from subsequent objects in the underlying data branch, and visualizes the amount of confirmed work performed within that branch.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_OrganisationalStatusIndicator.png|Organisational Status Indicator (WinX)&lt;br /&gt;
File:UI_WinX_MRO_WPConfirmedIndicator.png|MRO Workpackage Confirmed (Flag) Indicator (WinX)&lt;br /&gt;
File:Android_orga_status.PNG|Organisational Status Indicator (Android)&lt;br /&gt;
File:Android_orga_status_finished.PNG|MRO Workpackage Confirmed Indicator (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Work Progress ===&lt;br /&gt;
The work progress is calculated from the current work progress and from the progress cumulated from subsequent objects in the underlying data branch. This indicator shows the amount of work done in the data branch.&lt;br /&gt;
&lt;br /&gt;
{{Version/WinXSince|5.0}} {{Version/MobileSince|5.0}} By default, the progress is displayed with maximum one decimal place. For example, 99.75% is displayed as 99.8%. The format string used to achieve this is &amp;lt;code&amp;gt;{0:0.#}%&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If other numeric formats are preferred in your usecases, you can refer to [https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-numeric-format-strings custom numeric format strings] for more information. The template to customize for this is the UBIKMROProgressBadge within UBIKThemes.&lt;br /&gt;
&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== MRO Objects ==&lt;br /&gt;
A set of specific objects can be used to provide the required structure for MRO:&lt;br /&gt;
&lt;br /&gt;
=== Task Owner ===&lt;br /&gt;
A [[MROCLS_MRO_TASKOWNER|Task Owner]] is an object having a substructure of jobs to be done. It can have a tree of other task owners or work packages underneath that will update the status of the task owner. This status consists of technical, organisational and progress information. With a task owner a user can get an overview of all the work to be done in the underlying job structure.&lt;br /&gt;
&lt;br /&gt;
=== Work Package===&lt;br /&gt;
A [[MROCLS_MRO_WORKPACKAGE|Work Package]] is a collection of objects to collect and summarize other task owning objects, workpackages, or tasks. A simple workpackage has a certain amount of tasks that have to be finished in order to confirm the workpackage as done. More complex workpackages can also own other underlying workpackages that have to be confirmed.  Confirming a workpackage itself requires a progress of 100% of all related tasks, as well as 100% confirmed sub work packages.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_WPConfirmButton.png|MRO Workpackage confirm button (WinX)&lt;br /&gt;
File:UI_WinX_MRO_WPRevokeConfirmButton.png|MRO Workpackage revoke confirmation button (WinX)&lt;br /&gt;
File:Android_finish_workpackage.PNG|MRO Workpackage confirm button (Android)&lt;br /&gt;
File:Android reopen workpackage.PNG|MRO Workpackage revoke confirmation button (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Task ===&lt;br /&gt;
A [[MROCLS_MRO_TASK|Task]] is an object reporting a certain progress to the owning workpackage. There are several specialized types of task objects. All kinds of tasks have a property called '''VALUE''' in common. It is very important, that this property is able to be validated. Therefore, a MetaAttribute (providing a validation timestamp by default) has to be attached on the used MetaProperty.&lt;br /&gt;
&lt;br /&gt;
On both clients, a Task can be reverted by clicking twice on the Not Applicable button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|The MetaProperty ''VALUE'' has to use [[Attributes]] in order to be validated. Otherwise, the calculation of work progress will not be possible.}}&lt;br /&gt;
&lt;br /&gt;
==== Measurement Task ====&lt;br /&gt;
&lt;br /&gt;
A [[MROCLS_MRO_MEASUREMENT_TASK|Measurement Task]] inherits from [[MROCLS_MRO_TASK|Task]] and documents a measured value (e.g. read from a pressure gauge). Therefore, clicking the value on the shown task opens an editor to enter the desired value. If no value was entered before, an empty line will be shown. Once a value has been entered, the task is finished. Alternatively, the task can also be closed by the option ''Not Applicable'' to document the situation of not being able to fullfill the measurement (e.g. the pressure gauge is broken). An additional small value indicator below the main value can report e.g. the previously entered value. The behaviour of this previous value indicator has to be specified separately in the customizing.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Measurment Task Empty UWP.png|Measurement Task without a reported value (WinX)&lt;br /&gt;
File:Measurment Task Not Empty UWP.png|Measurement Task with a reported value (WinX)&lt;br /&gt;
File:Measurment Task Empty Android.jpg|Measurement Task without a reported value (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Progress Task ====&lt;br /&gt;
&lt;br /&gt;
[[MROCLS_MRO_PROGRESS_TASK| Progress Task]] inherits from [[MROCLS_MRO_MEASUREMENT_TASK|Task]] and reports a certain progress while fullfilling a task. The progress will influence the overall progress of the owning workpackage. If the task cannot be fullfilled, it can also be finished with the option ''Not Applicable''.&lt;br /&gt;
&lt;br /&gt;
There is also an [[MRO_PROGRESS_TASK_EDITOR|alternative editor]] available for progress tasks.{{Version/WinXSince|2.5.4}}&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Progress Task UWP.png|Progress Task with a reported work progress (WinX)&lt;br /&gt;
File:Progress Task Android.jpg|Progress Task with a reported work progress and a previous progress(Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Check Task ====&lt;br /&gt;
&lt;br /&gt;
A [[MROCLS_MRO_CHECK_TASK|Check Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished by reporting ''Done'' or ''Not Applicable''. This is intended for a simple To-Do task that is either done or not.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Check Task finished UWP.png|Unfinished MRO CheckTask (WinX)&lt;br /&gt;
File:Check Task android.jpg|Not Applicable MRO CheckTask (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Inspection Task ====&lt;br /&gt;
&lt;br /&gt;
[[MROCLS_MRO_INSPECTION_TASK|Inspection Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished, when the user reports with a positive or negative answer or ''Not Applicable'' (e.g. reporting a yes/no answer for existing equipment).&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Finished Inspection Task UWP.png|Finished MRO InspectionTask (WinX)&lt;br /&gt;
File:Inspection task android.jpg|Finished MRO InspectionTask (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Sequential Task ====&lt;br /&gt;
The [[MROCLS_SEQUENTIALTASK|sequential task classification]] allows you to pre-define a sequence in which tasks are to be resolved by users. This means that it is required for one or multiple tasks to be finished in order for other tasks to become &amp;quot;unlocked&amp;quot; and editable. A task can have any number of &amp;quot;predecessors&amp;quot;. Predecessors are the tasks that are required to be finished first.&lt;br /&gt;
&lt;br /&gt;
A task can have predecessors that live anywhere else in the object hierarchy. It is not necessary for a task and its predecessors to be part of the same work package, even though this is likely the most common use case.&lt;br /&gt;
&lt;br /&gt;
The state of a sequential task is evaluated both offline and online to get the best possible user experience. The user will see dependent tasks update immediately if their successors were finished, if those tasks are currently visible in the UI. There is 1 case in which the server-side state will override the client-side (offline) evaluation, discussed below.&lt;br /&gt;
The state of each sequential task is evaluated the following way:&lt;br /&gt;
&lt;br /&gt;
# If the server-side state says the task is open, we consider this as the truthful state and don't do any other evaluation.&lt;br /&gt;
# Check if the task has any predecessors.&lt;br /&gt;
# Try to load each predecessor task.&lt;br /&gt;
#* If loading of any predecessor fails (the object is not available offline), the task will be locked.&lt;br /&gt;
# If all predecessor tasks are finished, the task is open and can be edited. Otherwise, the task is locked.&lt;br /&gt;
&lt;br /&gt;
The customizer setting up the task dependency relations needs to ensure that the dependencies are not cyclical. In this case, it would be impossible for any tasks in the &amp;quot;cycle&amp;quot; to be finished.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&lt;br /&gt;
&lt;br /&gt;
As a demonstration of this feature, see [[Media:Sequential_tasks_winx.mp4|this video]]. The relations between tasks are defined as in [[Media:Task_relations.png|this image]], starting at A1 and A2, which are not dependent on any other tasks. The lines (from left to right) indicate dependencies. This means that B2 has tasks A1 and A2 as its predecessors, for example.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Grouped Task {{Version/WinXSince|4.2}}{{Version/XamarinSince|4.2}} ====&lt;br /&gt;
Sometimes, not all tasks have to be finished. More specifically, there might be a predefined condition where you only need to finish a certain number of tasks among a group of them. These are known in {{UBIK}} as [[MROCLS_GROUPEDTASK|grouped tasks]].&lt;br /&gt;
&lt;br /&gt;
The idea is, a group of tasks can be defined as siblings to each other and they also share the same server configured threshold. When the number of finished tasks among that group exceeds the threshold, the entire group is considered as no longer necessary. When reflected in the overall status of the task owner(s), these tasks would appear as if they are finished.&lt;br /&gt;
&lt;br /&gt;
{{Hint|Technically speaking, the finished status is completely independent from the not necessary status on a task. A grouped task which is no longer necessary can be both finished or not yet finished. In other words, users don't have to finish a not necessary grouped task, but they still can.}}&lt;br /&gt;
&lt;br /&gt;
{{Hint|The precise status calculation for grouped tasks and their task owners requires the knowledge of all siblings tasks. Imagine 2 out of 3 tasks must be finished but the client only knows 1 in total and the others are only available at the server at that time. This makes it impossible to draw conclusions whether the task(s) should be necessary or not. Under such circumstances, the local status calculation is done as if these are just regular tasks.}}&lt;br /&gt;
&lt;br /&gt;
{{Hint|Like with the other MRO objects, the client always chooses the best available statuses for grouped tasks to present to the users. More specifically, it uses the statuses calculated by the server when the client is not offline and there are no uncommitted local changes on the involved objects. Otherwise, it uses the statuses calculated locally to the best of its knowledge.}}&lt;br /&gt;
&lt;br /&gt;
A task can also be a grouped and a sequential one at the same time. In such a case, the grouped nature of the sibling tasks will affect the way the task sequence completes.&lt;br /&gt;
&lt;br /&gt;
For example, task A1, A2 and A3 are 3 grouped sibling tasks and only 1 of them needs to be finished. At the same time, they are all predecessors of task B. Normally, all predecessors must be finished (and locked) before task B becomes the next one in the sequence and therefore unlocked. In this case, however, as soon as one of the predecessors is finished, all three become unnecessary (and locked) and task B unlocks as a result of that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Supervisor Task {{Version/XamarinSince|4.8}} ====&lt;br /&gt;
As the name suggests, supervisor tasks are those that must be finished under supervision. When users want to finish a [[MROCLS_MRO_SUPERVISOR_TASK|supervisor task]], they must hand over their work devices to a supervisor. The latter checks the work status and scans an NFC tag if the work is approved. If the [[MROCLS_MRO_SUPERVISOR|supervisor]] has sufficient permissions for the task and the correct supervisor PIN is given, the task gets unlocked and the users can proceed to finish it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=300px&amp;gt;&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_Before_Verification.jpg|Supervisor Task Before Verification/Unlocking (Mobile)&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_Enter_PIN.jpg|Supervisor Task Enter PIN (Mobile)&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_After_Verification.jpg|Supervisor Task After Verification/Unlocking (Mobile)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A thing to note is that while the need to verify a supervisor task can be seen as a type of locking, it's certainly not the only reason for a [[Locked_Objects|locked object]]. This means a supervisor task can remain locked (although for different reasons) even after a supervisor has successfully verified it. This can often be the case if you use it in combination with other features such as [[MRO_Objects_(Client)#Sequential_Task|sequential tasks]], [[User_Rights|user rights]].&lt;br /&gt;
&lt;br /&gt;
{{Hint|For security reasons, the verification process is cancelled if the supervisor enters the wrong PIN for three times. Scanning the tag again is required in that case.}}&lt;br /&gt;
{{Hint|A setting controls [[RFID_tags#Choose_which_information_to_use_from_a_tag|which information in a scanned tag is used]] during this process.}}&lt;br /&gt;
&lt;br /&gt;
==== Signature Task ====&lt;br /&gt;
&lt;br /&gt;
The Signature Task is a task type that is completed by capturing a handwritten signature from the user. The task contains an editor field that serves as the entry point for the signing process. When the user clicks (or taps) on the editor field, a signature dialog opens. Within this dialog, the user can provide their signature. After confirming the input, the signature is saved and the task is automatically marked as completed.&lt;br /&gt;
&lt;br /&gt;
If the task is signed while the client is online:&lt;br /&gt;
* The User (signee) is resolved immediately by the server and displayed.&lt;br /&gt;
* The ValidationTimestamp is generated and displayed.&lt;br /&gt;
* Both values are shown directly in the editor field after signing.&lt;br /&gt;
&lt;br /&gt;
{{Hint|The User only gets resolved by the server and displayed once you're in online mode}}&lt;br /&gt;
&lt;br /&gt;
If the displayed User and/or ValidationTimestamp cannot be fully shown due to limited space in the editor field, the complete information can be accessed via a tooltip.&lt;br /&gt;
&lt;br /&gt;
* In '''UBIK WinX (UWP)''', hover over the editor field with the mouse.&lt;br /&gt;
* In '''UBIK Mobile''', perform a long press on the editor field.&lt;br /&gt;
A tooltip will appear, displaying the full User and ValidationTimestamp without truncation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MRO objects with project information (WinX only) {{Version/WinXSince|2.5.4}} ===&lt;br /&gt;
[[File:UI_WinX_MRO_ProjectInfo.png|thumb|MRO Object with Project Info (WinX)]]&lt;br /&gt;
An MRO object (except tasks) might also bring along [[MROCLS_PROJECTINFORMATION|project information]]. In this case, the project information together with the MRO progress are displayed in a bar chart. The start &amp;amp; end dates of the MRO object are displayed on the progress bar. The length and the position of the progress bar, together with the current date mark indicate the timeline.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Android|MRO Objects (UBIK WinX)]]&lt;br /&gt;
[[Category:Client|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Mobile|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Pages with broken file links|MRO Objects (Client)]]&lt;br /&gt;
[[Category:WinX|MRO Objects (UBIK WinX)]]&lt;br /&gt;
&lt;br /&gt;
== Locking ==&lt;br /&gt;
When an (MRO) object is locked, editing it becomes impossible. More details about [[Locked_Objects|locked objects]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[MRO (Plugin)]]&lt;br /&gt;
* [[MROCLS_PROJECT]]&lt;br /&gt;
* [[MROCLS_PROJECTINFORMATION]]&lt;br /&gt;
* [[MROCLS_SEQUENTIALTASK]]&lt;br /&gt;
* [[MROCLS_GROUPEDTASK]]&lt;br /&gt;
* [[MROCLS_MRO_CHECK_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_INSPECTION_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_MEASUREMENT_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_PROGRESS_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_TASKOWNER]]&lt;br /&gt;
* [[MROCLS_MRO_WORKPACKAGE]]&lt;br /&gt;
* [[MROCLS_PROCEDURE#Procedure Workpackage]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_TASK#Switch Task]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_END_TASK#Switch End Task]] (Classification)&lt;br /&gt;
* [[MROCLS_CALCULATION_TASK#Calculation Task]] (Classification)&lt;br /&gt;
&lt;br /&gt;
[[Category:Android|MRO Objects (UBIK WinX)]]&lt;br /&gt;
[[Category:Client|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Mobile|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Pages with broken file links|MRO Objects (Client)]]&lt;br /&gt;
[[Category:WinX|MRO Objects (UBIK WinX)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=MRO_Objects_(Client)&amp;diff=29431</id>
		<title>MRO Objects (Client)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=MRO_Objects_(Client)&amp;diff=29431"/>
				<updated>2026-03-02T13:42:54Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* Technical Status */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:UI_WinX_MRO_ChildList.png|thumb|alt=MRO Child List UI (WinX)|MRO UI (WinX)]]&lt;br /&gt;
[[File:Android_mro_ui.jpg|thumb|alt=MRO Child List UI (Android)|MRO UI (Android)]]&lt;br /&gt;
The WinX client UI displays MRO configured objects like any other root- or child-object enriched by some additional logic and features.&lt;br /&gt;
&lt;br /&gt;
== Basic User Interface ==&lt;br /&gt;
The representation of MRO features comprises some indicators and interactive controls. In the {{UBIK}} child list, the main object displays cumulated technical and organisational status as well as the overall work progress based on the underlying data branch. Objects classified as MRO objects in general provide indicators for the MRO status. This means the status is shown next to the main icon of a child-/details-/documents-page as well as next to the icons of the child list items:&lt;br /&gt;
&lt;br /&gt;
=== Technical Status ===&lt;br /&gt;
&lt;br /&gt;
The technical status indicator is shown on all objects that represent a technical state or receive the technical status from subsequent objects in the underlying data branch. If e.g. a inventory object is reported as damaged, its parent objects will all display the exclamation mark symbol to indicate that a problem was reported in the child items.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_TechnicalStatusIndicator.png|thumb|Technical Status Indicator (WinX)&lt;br /&gt;
File:Android_tech_status.PNG|thumb|Technical Status Indicator (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Android|MRO Objects (UBIK WinX)]]&lt;br /&gt;
[[Category:Client|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Mobile|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Pages with broken file links|MRO Objects (Client)]]&lt;br /&gt;
[[Category:WinX|MRO Objects (UBIK WinX)]]&lt;br /&gt;
&lt;br /&gt;
=== Organisational Status ===&lt;br /&gt;
The organisational status indicates the amount of confirmed work within the data branch, including already confirmed work packages as well as tasks that are locked by their owning work package. The organisational status indicator is displayed on all objects that represent an organisational state or receive the organisational status from subsequent objects in the underlying data branch, and visualizes the amount of confirmed work performed within that branch.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_OrganisationalStatusIndicator.png|Organisational Status Indicator (WinX)&lt;br /&gt;
File:UI_WinX_MRO_WPConfirmedIndicator.png|MRO Workpackage Confirmed (Flag) Indicator (WinX)&lt;br /&gt;
File:Android_orga_status.PNG|Organisational Status Indicator (Android)&lt;br /&gt;
File:Android_orga_status_finished.PNG|MRO Workpackage Confirmed Indicator (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Work Progress ===&lt;br /&gt;
The work progress is calculated from the current work progress and from the progress cumulated from subsequent objects in the underlying data branch. This indicator shows the amount of work done in the data branch.&lt;br /&gt;
&lt;br /&gt;
{{Version/WinXSince|5.0}} {{Version/MobileSince|5.0}} By default, the progress is displayed with maximum one decimal place. For example, 99.75% is displayed as 99.8%. The format string used to achieve this is &amp;lt;code&amp;gt;{0:0.#}%&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If other numeric formats are preferred in your usecases, you can refer to [https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-numeric-format-strings custom numeric format strings] for more information. The template to customize for this is the UBIKMROProgressBadge within UBIKThemes.&lt;br /&gt;
&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== MRO Objects ==&lt;br /&gt;
A set of specific objects can be used to provide the required structure for MRO:&lt;br /&gt;
&lt;br /&gt;
=== Task Owner ===&lt;br /&gt;
A [[MROCLS_MRO_TASKOWNER|Task Owner]] is an object having a substructure of jobs to be done. It can have a tree of other task owners or work packages underneath that will update the status of the task owner. This status consists of technical, organisational and progress information. With a task owner a user can get an overview of all the work to be done in the underlying job structure.&lt;br /&gt;
&lt;br /&gt;
=== Work Package===&lt;br /&gt;
A [[MROCLS_MRO_WORKPACKAGE|Work Package]] is a collection of objects to collect and summarize other task owning objects, workpackages, or tasks. A simple workpackage has a certain amount of tasks that have to be finished in order to confirm the workpackage as done. More complex workpackages can also own other underlying workpackages that have to be confirmed.  Confirming a workpackage itself requires a progress of 100% of all related tasks, as well as 100% confirmed sub work packages.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_WPConfirmButton.png|MRO Workpackage confirm button (WinX)&lt;br /&gt;
File:UI_WinX_MRO_WPRevokeConfirmButton.png|MRO Workpackage revoke confirmation button (WinX)&lt;br /&gt;
File:Android_finish_workpackage.PNG|MRO Workpackage confirm button (Android)&lt;br /&gt;
File:Android reopen workpackage.PNG|MRO Workpackage revoke confirmation button (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Task ===&lt;br /&gt;
A [[MROCLS_MRO_TASK|Task]] is an object reporting a certain progress to the owning workpackage. There are several specialized types of task objects. All kinds of tasks have a property called '''VALUE''' in common. It is very important, that this property is able to be validated. Therefore, a MetaAttribute (providing a validation timestamp by default) has to be attached on the used MetaProperty.&lt;br /&gt;
&lt;br /&gt;
On both clients, a Task can be reverted by clicking twice on the Not Applicable button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|The MetaProperty ''VALUE'' has to use [[Attributes]] in order to be validated. Otherwise, the calculation of work progress will not be possible.}}&lt;br /&gt;
&lt;br /&gt;
==== Measurement Task ====&lt;br /&gt;
&lt;br /&gt;
A [[MROCLS_MRO_MEASUREMENT_TASK|Measurement Task]] inherits from [[MROCLS_MRO_TASK|Task]] and documents a measured value (e.g. read from a pressure gauge). Therefore, clicking the value on the shown task opens an editor to enter the desired value. If no value was entered before, an empty line will be shown. Once a value has been entered, the task is finished. Alternatively, the task can also be closed by the option ''Not Applicable'' to document the situation of not being able to fullfill the measurement (e.g. the pressure gauge is broken). An additional small value indicator below the main value can report e.g. the previously entered value. The behaviour of this previous value indicator has to be specified separately in the customizing.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Measurment Task Empty UWP.png|Measurement Task without a reported value (WinX)&lt;br /&gt;
File:Measurment Task Not Empty UWP.png|Measurement Task with a reported value (WinX)&lt;br /&gt;
File:Measurment Task Empty Android.jpg|Measurement Task without a reported value (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Progress Task ====&lt;br /&gt;
&lt;br /&gt;
[[MROCLS_MRO_PROGRESS_TASK| Progress Task]] inherits from [[MROCLS_MRO_MEASUREMENT_TASK|Task]] and reports a certain progress while fullfilling a task. The progress will influence the overall progress of the owning workpackage. If the task cannot be fullfilled, it can also be finished with the option ''Not Applicable''.&lt;br /&gt;
&lt;br /&gt;
There is also an [[MRO_PROGRESS_TASK_EDITOR|alternative editor]] available for progress tasks.{{Version/WinXSince|2.5.4}}&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Progress Task UWP.png|Progress Task with a reported work progress (WinX)&lt;br /&gt;
File:Progress Task Android.jpg|Progress Task with a reported work progress and a previous progress(Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Check Task ====&lt;br /&gt;
&lt;br /&gt;
A [[MROCLS_MRO_CHECK_TASK|Check Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished by reporting ''Done'' or ''Not Applicable''. This is intended for a simple To-Do task that is either done or not.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Check Task finished UWP.png|Unfinished MRO CheckTask (WinX)&lt;br /&gt;
File:Check Task android.jpg|Not Applicable MRO CheckTask (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Inspection Task ====&lt;br /&gt;
&lt;br /&gt;
[[MROCLS_MRO_INSPECTION_TASK|Inspection Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished, when the user reports with a positive or negative answer or ''Not Applicable'' (e.g. reporting a yes/no answer for existing equipment).&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Finished Inspection Task UWP.png|Finished MRO InspectionTask (WinX)&lt;br /&gt;
File:Inspection task android.jpg|Finished MRO InspectionTask (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Sequential Task ====&lt;br /&gt;
The [[MROCLS_SEQUENTIALTASK|sequential task classification]] allows you to pre-define a sequence in which tasks are to be resolved by users. This means that it is required for one or multiple tasks to be finished in order for other tasks to become &amp;quot;unlocked&amp;quot; and editable. A task can have any number of &amp;quot;predecessors&amp;quot;. Predecessors are the tasks that are required to be finished first.&lt;br /&gt;
&lt;br /&gt;
A task can have predecessors that live anywhere else in the object hierarchy. It is not necessary for a task and its predecessors to be part of the same work package, even though this is likely the most common use case.&lt;br /&gt;
&lt;br /&gt;
The state of a sequential task is evaluated both offline and online to get the best possible user experience. The user will see dependent tasks update immediately if their successors were finished, if those tasks are currently visible in the UI. There is 1 case in which the server-side state will override the client-side (offline) evaluation, discussed below.&lt;br /&gt;
The state of each sequential task is evaluated the following way:&lt;br /&gt;
&lt;br /&gt;
# If the server-side state says the task is open, we consider this as the truthful state and don't do any other evaluation.&lt;br /&gt;
# Check if the task has any predecessors.&lt;br /&gt;
# Try to load each predecessor task.&lt;br /&gt;
#* If loading of any predecessor fails (the object is not available offline), the task will be locked.&lt;br /&gt;
# If all predecessor tasks are finished, the task is open and can be edited. Otherwise, the task is locked.&lt;br /&gt;
&lt;br /&gt;
The customizer setting up the task dependency relations needs to ensure that the dependencies are not cyclical. In this case, it would be impossible for any tasks in the &amp;quot;cycle&amp;quot; to be finished.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&lt;br /&gt;
&lt;br /&gt;
As a demonstration of this feature, see [[Media:Sequential_tasks_winx.mp4|this video]]. The relations between tasks are defined as in [[Media:Task_relations.png|this image]], starting at A1 and A2, which are not dependent on any other tasks. The lines (from left to right) indicate dependencies. This means that B2 has tasks A1 and A2 as its predecessors, for example.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Grouped Task {{Version/WinXSince|4.2}}{{Version/XamarinSince|4.2}} ====&lt;br /&gt;
Sometimes, not all tasks have to be finished. More specifically, there might be a predefined condition where you only need to finish a certain number of tasks among a group of them. These are known in {{UBIK}} as [[MROCLS_GROUPEDTASK|grouped tasks]].&lt;br /&gt;
&lt;br /&gt;
The idea is, a group of tasks can be defined as siblings to each other and they also share the same server configured threshold. When the number of finished tasks among that group exceeds the threshold, the entire group is considered as no longer necessary. When reflected in the overall status of the task owner(s), these tasks would appear as if they are finished.&lt;br /&gt;
&lt;br /&gt;
{{Hint|Technically speaking, the finished status is completely independent from the not necessary status on a task. A grouped task which is no longer necessary can be both finished or not yet finished. In other words, users don't have to finish a not necessary grouped task, but they still can.}}&lt;br /&gt;
&lt;br /&gt;
{{Hint|The precise status calculation for grouped tasks and their task owners requires the knowledge of all siblings tasks. Imagine 2 out of 3 tasks must be finished but the client only knows 1 in total and the others are only available at the server at that time. This makes it impossible to draw conclusions whether the task(s) should be necessary or not. Under such circumstances, the local status calculation is done as if these are just regular tasks.}}&lt;br /&gt;
&lt;br /&gt;
{{Hint|Like with the other MRO objects, the client always chooses the best available statuses for grouped tasks to present to the users. More specifically, it uses the statuses calculated by the server when the client is not offline and there are no uncommitted local changes on the involved objects. Otherwise, it uses the statuses calculated locally to the best of its knowledge.}}&lt;br /&gt;
&lt;br /&gt;
A task can also be a grouped and a sequential one at the same time. In such a case, the grouped nature of the sibling tasks will affect the way the task sequence completes.&lt;br /&gt;
&lt;br /&gt;
For example, task A1, A2 and A3 are 3 grouped sibling tasks and only 1 of them needs to be finished. At the same time, they are all predecessors of task B. Normally, all predecessors must be finished (and locked) before task B becomes the next one in the sequence and therefore unlocked. In this case, however, as soon as one of the predecessors is finished, all three become unnecessary (and locked) and task B unlocks as a result of that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Supervisor Task {{Version/XamarinSince|4.8}} ====&lt;br /&gt;
As the name suggests, supervisor tasks are those that must be finished under supervision. When users want to finish a [[MROCLS_MRO_SUPERVISOR_TASK|supervisor task]], they must hand over their work devices to a supervisor. The latter checks the work status and scans an NFC tag if the work is approved. If the [[MROCLS_MRO_SUPERVISOR|supervisor]] has sufficient permissions for the task and the correct supervisor PIN is given, the task gets unlocked and the users can proceed to finish it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=300px&amp;gt;&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_Before_Verification.jpg|Supervisor Task Before Verification/Unlocking (Mobile)&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_Enter_PIN.jpg|Supervisor Task Enter PIN (Mobile)&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_After_Verification.jpg|Supervisor Task After Verification/Unlocking (Mobile)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A thing to note is that while the need to verify a supervisor task can be seen as a type of locking, it's certainly not the only reason for a [[Locked_Objects|locked object]]. This means a supervisor task can remain locked (although for different reasons) even after a supervisor has successfully verified it. This can often be the case if you use it in combination with other features such as [[MRO_Objects_(Client)#Sequential_Task|sequential tasks]], [[User_Rights|user rights]].&lt;br /&gt;
&lt;br /&gt;
{{Hint|For security reasons, the verification process is cancelled if the supervisor enters the wrong PIN for three times. Scanning the tag again is required in that case.}}&lt;br /&gt;
{{Hint|A setting controls [[RFID_tags#Choose_which_information_to_use_from_a_tag|which information in a scanned tag is used]] during this process.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
==== Signature Task ====&lt;br /&gt;
&lt;br /&gt;
The Signature Task is a task type that is completed by capturing a handwritten signature from the user. The task contains an editor field that serves as the entry point for the signing process. When the user clicks (or taps) on the editor field, a signature dialog opens. Within this dialog, the user can provide their signature. After confirming the input, the signature is saved and the task is automatically marked as completed.&lt;br /&gt;
&lt;br /&gt;
'''Online Mode''' &amp;lt;br/&amp;gt;&lt;br /&gt;
If the task is signed while the client is online:&lt;br /&gt;
* The User (signee) is resolved immediately by the server and displayed.&lt;br /&gt;
* The ValidationTimestamp is generated and displayed.&lt;br /&gt;
* Both values are shown directly in the editor field after signing.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Offline Mode''' &amp;lt;br/&amp;gt;&lt;br /&gt;
If the task is signed while the client is offline:&lt;br /&gt;
* The ValidationTimestamp is generated locally and displayed.&lt;br /&gt;
* The User cannot yet be resolved by the server; therefore, no user information is displayed at this time. &amp;lt;br/&amp;gt;&lt;br /&gt;
As soon as the client reconnects and goes back online, the User is resolved by the server and the editor field is updated accordingly.&lt;br /&gt;
&lt;br /&gt;
If the displayed User and/or ValidationTimestamp cannot be fully shown due to limited space in the editor field, the complete information can be accessed via a tooltip.&lt;br /&gt;
&lt;br /&gt;
* In '''UWP''', hover over the editor field with the mouse.&lt;br /&gt;
* In '''MAUI''', perform a long press on the editor field.&lt;br /&gt;
A tooltip will appear, displaying the full User and ValidationTimestamp without truncation.&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MRO objects with project information (WinX only) {{Version/WinXSince|2.5.4}} ===&lt;br /&gt;
[[File:UI_WinX_MRO_ProjectInfo.png|thumb|MRO Object with Project Info (WinX)]]&lt;br /&gt;
An MRO object (except tasks) might also bring along [[MROCLS_PROJECTINFORMATION|project information]]. In this case, the project information together with the MRO progress are displayed in a bar chart. The start &amp;amp; end dates of the MRO object are displayed on the progress bar. The length and the position of the progress bar, together with the current date mark indicate the timeline.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Locking ==&lt;br /&gt;
When an (MRO) object is locked, editing it becomes impossible. More details about [[Locked_Objects|locked objects]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[MRO (Plugin)]]&lt;br /&gt;
* [[MROCLS_PROJECT]]&lt;br /&gt;
* [[MROCLS_PROJECTINFORMATION]]&lt;br /&gt;
* [[MROCLS_SEQUENTIALTASK]]&lt;br /&gt;
* [[MROCLS_GROUPEDTASK]]&lt;br /&gt;
* [[MROCLS_MRO_CHECK_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_INSPECTION_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_MEASUREMENT_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_PROGRESS_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_TASKOWNER]]&lt;br /&gt;
* [[MROCLS_MRO_WORKPACKAGE]]&lt;br /&gt;
* [[MROCLS_PROCEDURE#Procedure Workpackage]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_TASK#Switch Task]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_END_TASK#Switch End Task]] (Classification)&lt;br /&gt;
* [[MROCLS_CALCULATION_TASK#Calculation Task]] (Classification)&lt;br /&gt;
&lt;br /&gt;
[[Category:Android|MRO Objects (UBIK WinX)]]&lt;br /&gt;
[[Category:Client|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Mobile|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Pages with broken file links|MRO Objects (Client)]]&lt;br /&gt;
[[Category:WinX|MRO Objects (UBIK WinX)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=MRO_Objects_(Client)&amp;diff=29430</id>
		<title>MRO Objects (Client)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=MRO_Objects_(Client)&amp;diff=29430"/>
				<updated>2026-03-02T12:55:06Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:UI_WinX_MRO_ChildList.png|thumb|alt=MRO Child List UI (WinX)|MRO UI (WinX)]]&lt;br /&gt;
[[File:Android_mro_ui.jpg|thumb|alt=MRO Child List UI (Android)|MRO UI (Android)]]&lt;br /&gt;
The WinX client UI displays MRO configured objects like any other root- or child-object enriched by some additional logic and features.&lt;br /&gt;
&lt;br /&gt;
== Basic User Interface ==&lt;br /&gt;
The representation of MRO features comprises some indicators and interactive controls. In the {{UBIK}} child list, the main object displays cumulated technical and organisational status as well as the overall work progress based on the underlying data branch. Objects classified as MRO objects in general provide indicators for the MRO status. This means the status is shown next to the main icon of a child-/details-/documents-page as well as next to the icons of the child list items:&lt;br /&gt;
&lt;br /&gt;
=== Technical Status ===&lt;br /&gt;
{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
The technical status indicator is shown on all objects that represent a technical state or receive the technical status from subsequent objects in the underlying data branch. If e.g. a inventory object is reported as damaged, its parent objects will all display the exclamation mark symbol to indicate that a problem was reported in the child items.&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_TechnicalStatusIndicator.png|thumb|Technical Status Indicator (WinX)&lt;br /&gt;
File:Android_tech_status.PNG|thumb|Technical Status Indicator (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Organisational Status ===&lt;br /&gt;
The organisational status indicates the amount of confirmed work within the data branch, including already confirmed work packages as well as tasks that are locked by their owning work package. The organisational status indicator is displayed on all objects that represent an organisational state or receive the organisational status from subsequent objects in the underlying data branch, and visualizes the amount of confirmed work performed within that branch.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_OrganisationalStatusIndicator.png|Organisational Status Indicator (WinX)&lt;br /&gt;
File:UI_WinX_MRO_WPConfirmedIndicator.png|MRO Workpackage Confirmed (Flag) Indicator (WinX)&lt;br /&gt;
File:Android_orga_status.PNG|Organisational Status Indicator (Android)&lt;br /&gt;
File:Android_orga_status_finished.PNG|MRO Workpackage Confirmed Indicator (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Work Progress ===&lt;br /&gt;
The work progress is calculated from the current work progress and from the progress cumulated from subsequent objects in the underlying data branch. This indicator shows the amount of work done in the data branch.&lt;br /&gt;
&lt;br /&gt;
{{Version/WinXSince|5.0}} {{Version/MobileSince|5.0}} By default, the progress is displayed with maximum one decimal place. For example, 99.75% is displayed as 99.8%. The format string used to achieve this is &amp;lt;code&amp;gt;{0:0.#}%&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If other numeric formats are preferred in your usecases, you can refer to [https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-numeric-format-strings custom numeric format strings] for more information. The template to customize for this is the UBIKMROProgressBadge within UBIKThemes.&lt;br /&gt;
&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== MRO Objects ==&lt;br /&gt;
A set of specific objects can be used to provide the required structure for MRO:&lt;br /&gt;
&lt;br /&gt;
=== Task Owner ===&lt;br /&gt;
A [[MROCLS_MRO_TASKOWNER|Task Owner]] is an object having a substructure of jobs to be done. It can have a tree of other task owners or work packages underneath that will update the status of the task owner. This status consists of technical, organisational and progress information. With a task owner a user can get an overview of all the work to be done in the underlying job structure.&lt;br /&gt;
&lt;br /&gt;
=== Work Package===&lt;br /&gt;
A [[MROCLS_MRO_WORKPACKAGE|Work Package]] is a collection of objects to collect and summarize other task owning objects, workpackages, or tasks. A simple workpackage has a certain amount of tasks that have to be finished in order to confirm the workpackage as done. More complex workpackages can also own other underlying workpackages that have to be confirmed.  Confirming a workpackage itself requires a progress of 100% of all related tasks, as well as 100% confirmed sub work packages.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_WPConfirmButton.png|MRO Workpackage confirm button (WinX)&lt;br /&gt;
File:UI_WinX_MRO_WPRevokeConfirmButton.png|MRO Workpackage revoke confirmation button (WinX)&lt;br /&gt;
File:Android_finish_workpackage.PNG|MRO Workpackage confirm button (Android)&lt;br /&gt;
File:Android reopen workpackage.PNG|MRO Workpackage revoke confirmation button (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Task ===&lt;br /&gt;
A [[MROCLS_MRO_TASK|Task]] is an object reporting a certain progress to the owning workpackage. There are several specialized types of task objects. All kinds of tasks have a property called '''VALUE''' in common. It is very important, that this property is able to be validated. Therefore, a MetaAttribute (providing a validation timestamp by default) has to be attached on the used MetaProperty.&lt;br /&gt;
&lt;br /&gt;
On both clients, a Task can be reverted by clicking twice on the Not Applicable button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|The MetaProperty ''VALUE'' has to use [[Attributes]] in order to be validated. Otherwise, the calculation of work progress will not be possible.}}&lt;br /&gt;
&lt;br /&gt;
==== Measurement Task ====&lt;br /&gt;
&lt;br /&gt;
A [[MROCLS_MRO_MEASUREMENT_TASK|Measurement Task]] inherits from [[MROCLS_MRO_TASK|Task]] and documents a measured value (e.g. read from a pressure gauge). Therefore, clicking the value on the shown task opens an editor to enter the desired value. If no value was entered before, an empty line will be shown. Once a value has been entered, the task is finished. Alternatively, the task can also be closed by the option ''Not Applicable'' to document the situation of not being able to fullfill the measurement (e.g. the pressure gauge is broken). An additional small value indicator below the main value can report e.g. the previously entered value. The behaviour of this previous value indicator has to be specified separately in the customizing.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Measurment Task Empty UWP.png|Measurement Task without a reported value (WinX)&lt;br /&gt;
File:Measurment Task Not Empty UWP.png|Measurement Task with a reported value (WinX)&lt;br /&gt;
File:Measurment Task Empty Android.jpg|Measurement Task without a reported value (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Progress Task ====&lt;br /&gt;
&lt;br /&gt;
[[MROCLS_MRO_PROGRESS_TASK| Progress Task]] inherits from [[MROCLS_MRO_MEASUREMENT_TASK|Task]] and reports a certain progress while fullfilling a task. The progress will influence the overall progress of the owning workpackage. If the task cannot be fullfilled, it can also be finished with the option ''Not Applicable''.&lt;br /&gt;
&lt;br /&gt;
There is also an [[MRO_PROGRESS_TASK_EDITOR|alternative editor]] available for progress tasks.{{Version/WinXSince|2.5.4}}&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Progress Task UWP.png|Progress Task with a reported work progress (WinX)&lt;br /&gt;
File:Progress Task Android.jpg|Progress Task with a reported work progress and a previous progress(Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Check Task ====&lt;br /&gt;
&lt;br /&gt;
A [[MROCLS_MRO_CHECK_TASK|Check Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished by reporting ''Done'' or ''Not Applicable''. This is intended for a simple To-Do task that is either done or not.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Check Task finished UWP.png|Unfinished MRO CheckTask (WinX)&lt;br /&gt;
File:Check Task android.jpg|Not Applicable MRO CheckTask (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Inspection Task ====&lt;br /&gt;
&lt;br /&gt;
[[MROCLS_MRO_INSPECTION_TASK|Inspection Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished, when the user reports with a positive or negative answer or ''Not Applicable'' (e.g. reporting a yes/no answer for existing equipment).&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Finished Inspection Task UWP.png|Finished MRO InspectionTask (WinX)&lt;br /&gt;
File:Inspection task android.jpg|Finished MRO InspectionTask (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Sequential Task ====&lt;br /&gt;
The [[MROCLS_SEQUENTIALTASK|sequential task classification]] allows you to pre-define a sequence in which tasks are to be resolved by users. This means that it is required for one or multiple tasks to be finished in order for other tasks to become &amp;quot;unlocked&amp;quot; and editable. A task can have any number of &amp;quot;predecessors&amp;quot;. Predecessors are the tasks that are required to be finished first.&lt;br /&gt;
&lt;br /&gt;
A task can have predecessors that live anywhere else in the object hierarchy. It is not necessary for a task and its predecessors to be part of the same work package, even though this is likely the most common use case.&lt;br /&gt;
&lt;br /&gt;
The state of a sequential task is evaluated both offline and online to get the best possible user experience. The user will see dependent tasks update immediately if their successors were finished, if those tasks are currently visible in the UI. There is 1 case in which the server-side state will override the client-side (offline) evaluation, discussed below.&lt;br /&gt;
The state of each sequential task is evaluated the following way:&lt;br /&gt;
&lt;br /&gt;
# If the server-side state says the task is open, we consider this as the truthful state and don't do any other evaluation.&lt;br /&gt;
# Check if the task has any predecessors.&lt;br /&gt;
# Try to load each predecessor task.&lt;br /&gt;
#* If loading of any predecessor fails (the object is not available offline), the task will be locked.&lt;br /&gt;
# If all predecessor tasks are finished, the task is open and can be edited. Otherwise, the task is locked.&lt;br /&gt;
&lt;br /&gt;
The customizer setting up the task dependency relations needs to ensure that the dependencies are not cyclical. In this case, it would be impossible for any tasks in the &amp;quot;cycle&amp;quot; to be finished.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&lt;br /&gt;
&lt;br /&gt;
As a demonstration of this feature, see [[Media:Sequential_tasks_winx.mp4|this video]]. The relations between tasks are defined as in [[Media:Task_relations.png|this image]], starting at A1 and A2, which are not dependent on any other tasks. The lines (from left to right) indicate dependencies. This means that B2 has tasks A1 and A2 as its predecessors, for example.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Grouped Task {{Version/WinXSince|4.2}}{{Version/XamarinSince|4.2}} ====&lt;br /&gt;
Sometimes, not all tasks have to be finished. More specifically, there might be a predefined condition where you only need to finish a certain number of tasks among a group of them. These are known in {{UBIK}} as [[MROCLS_GROUPEDTASK|grouped tasks]].&lt;br /&gt;
&lt;br /&gt;
The idea is, a group of tasks can be defined as siblings to each other and they also share the same server configured threshold. When the number of finished tasks among that group exceeds the threshold, the entire group is considered as no longer necessary. When reflected in the overall status of the task owner(s), these tasks would appear as if they are finished.&lt;br /&gt;
&lt;br /&gt;
{{Hint|Technically speaking, the finished status is completely independent from the not necessary status on a task. A grouped task which is no longer necessary can be both finished or not yet finished. In other words, users don't have to finish a not necessary grouped task, but they still can.}}&lt;br /&gt;
&lt;br /&gt;
{{Hint|The precise status calculation for grouped tasks and their task owners requires the knowledge of all siblings tasks. Imagine 2 out of 3 tasks must be finished but the client only knows 1 in total and the others are only available at the server at that time. This makes it impossible to draw conclusions whether the task(s) should be necessary or not. Under such circumstances, the local status calculation is done as if these are just regular tasks.}}&lt;br /&gt;
&lt;br /&gt;
{{Hint|Like with the other MRO objects, the client always chooses the best available statuses for grouped tasks to present to the users. More specifically, it uses the statuses calculated by the server when the client is not offline and there are no uncommitted local changes on the involved objects. Otherwise, it uses the statuses calculated locally to the best of its knowledge.}}&lt;br /&gt;
&lt;br /&gt;
A task can also be a grouped and a sequential one at the same time. In such a case, the grouped nature of the sibling tasks will affect the way the task sequence completes.&lt;br /&gt;
&lt;br /&gt;
For example, task A1, A2 and A3 are 3 grouped sibling tasks and only 1 of them needs to be finished. At the same time, they are all predecessors of task B. Normally, all predecessors must be finished (and locked) before task B becomes the next one in the sequence and therefore unlocked. In this case, however, as soon as one of the predecessors is finished, all three become unnecessary (and locked) and task B unlocks as a result of that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Supervisor Task {{Version/XamarinSince|4.8}} ====&lt;br /&gt;
As the name suggests, supervisor tasks are those that must be finished under supervision. When users want to finish a [[MROCLS_MRO_SUPERVISOR_TASK|supervisor task]], they must hand over their work devices to a supervisor. The latter checks the work status and scans an NFC tag if the work is approved. If the [[MROCLS_MRO_SUPERVISOR|supervisor]] has sufficient permissions for the task and the correct supervisor PIN is given, the task gets unlocked and the users can proceed to finish it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=300px&amp;gt;&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_Before_Verification.jpg|Supervisor Task Before Verification/Unlocking (Mobile)&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_Enter_PIN.jpg|Supervisor Task Enter PIN (Mobile)&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_After_Verification.jpg|Supervisor Task After Verification/Unlocking (Mobile)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A thing to note is that while the need to verify a supervisor task can be seen as a type of locking, it's certainly not the only reason for a [[Locked_Objects|locked object]]. This means a supervisor task can remain locked (although for different reasons) even after a supervisor has successfully verified it. This can often be the case if you use it in combination with other features such as [[MRO_Objects_(Client)#Sequential_Task|sequential tasks]], [[User_Rights|user rights]].&lt;br /&gt;
&lt;br /&gt;
{{Hint|For security reasons, the verification process is cancelled if the supervisor enters the wrong PIN for three times. Scanning the tag again is required in that case.}}&lt;br /&gt;
{{Hint|A setting controls [[RFID_tags#Choose_which_information_to_use_from_a_tag|which information in a scanned tag is used]] during this process.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
==== Signature Task ====&lt;br /&gt;
&lt;br /&gt;
The Signature Task is a task type that is completed by capturing a handwritten signature from the user. The task contains an editor field that serves as the entry point for the signing process. When the user clicks (or taps) on the editor field, a signature dialog opens. Within this dialog, the user can provide their signature. After confirming the input, the signature is saved and the task is automatically marked as completed.&lt;br /&gt;
&lt;br /&gt;
'''Online Mode''' &amp;lt;br/&amp;gt;&lt;br /&gt;
If the task is signed while the client is online:&lt;br /&gt;
* The User (signee) is resolved immediately by the server and displayed.&lt;br /&gt;
* The ValidationTimestamp is generated and displayed.&lt;br /&gt;
* Both values are shown directly in the editor field after signing.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Offline Mode''' &amp;lt;br/&amp;gt;&lt;br /&gt;
If the task is signed while the client is offline:&lt;br /&gt;
* The ValidationTimestamp is generated locally and displayed.&lt;br /&gt;
* The User cannot yet be resolved by the server; therefore, no user information is displayed at this time. &amp;lt;br/&amp;gt;&lt;br /&gt;
As soon as the client reconnects and goes back online, the User is resolved by the server and the editor field is updated accordingly.&lt;br /&gt;
&lt;br /&gt;
If the displayed User and/or ValidationTimestamp cannot be fully shown due to limited space in the editor field, the complete information can be accessed via a tooltip.&lt;br /&gt;
&lt;br /&gt;
* In '''UWP''', hover over the editor field with the mouse.&lt;br /&gt;
* In '''MAUI''', perform a long press on the editor field.&lt;br /&gt;
A tooltip will appear, displaying the full User and ValidationTimestamp without truncation.&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MRO objects with project information (WinX only) {{Version/WinXSince|2.5.4}} ===&lt;br /&gt;
[[File:UI_WinX_MRO_ProjectInfo.png|thumb|MRO Object with Project Info (WinX)]]&lt;br /&gt;
An MRO object (except tasks) might also bring along [[MROCLS_PROJECTINFORMATION|project information]]. In this case, the project information together with the MRO progress are displayed in a bar chart. The start &amp;amp; end dates of the MRO object are displayed on the progress bar. The length and the position of the progress bar, together with the current date mark indicate the timeline.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Locking ==&lt;br /&gt;
When an (MRO) object is locked, editing it becomes impossible. More details about [[Locked_Objects|locked objects]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[MRO (Plugin)]]&lt;br /&gt;
* [[MROCLS_PROJECT]]&lt;br /&gt;
* [[MROCLS_PROJECTINFORMATION]]&lt;br /&gt;
* [[MROCLS_SEQUENTIALTASK]]&lt;br /&gt;
* [[MROCLS_GROUPEDTASK]]&lt;br /&gt;
* [[MROCLS_MRO_CHECK_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_INSPECTION_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_MEASUREMENT_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_PROGRESS_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_TASKOWNER]]&lt;br /&gt;
* [[MROCLS_MRO_WORKPACKAGE]]&lt;br /&gt;
* [[MROCLS_PROCEDURE#Procedure Workpackage]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_TASK#Switch Task]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_END_TASK#Switch End Task]] (Classification)&lt;br /&gt;
* [[MROCLS_CALCULATION_TASK#Calculation Task]] (Classification)&lt;br /&gt;
&lt;br /&gt;
[[Category:Android|MRO Objects (UBIK WinX)]]&lt;br /&gt;
[[Category:Client|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Mobile|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Pages with broken file links|MRO Objects (Client)]]&lt;br /&gt;
[[Category:WinX|MRO Objects (UBIK WinX)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Version_5.1_(Mobile)&amp;diff=29429</id>
		<title>Version 5.1 (Mobile)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Version_5.1_(Mobile)&amp;diff=29429"/>
				<updated>2026-03-02T12:25:36Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* 5.1.?? 2026-??-?? {{key press|Android: Store}}{{key press|iOS: Store}} */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Attention|Existing pre 5.0 XAMLs are not compatible with UBIK Mobile client 5.1. Please refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] for migrating them to the new client.}}&lt;br /&gt;
&lt;br /&gt;
{{Attention|UBIK 5 clients can only connect to {{UBIK}} Servers of [[Version 3.6(Server)|version 3.6]] and higher!}}&lt;br /&gt;
&lt;br /&gt;
{{Attention|The minimum supported OS versions are:&lt;br /&gt;
* Android 9;&lt;br /&gt;
* iOS 12.}}&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
{{key press|Android: Store}}{{key press|iOS: Store}}: Publicly available in Google Play Store / Apple App Store.&lt;br /&gt;
&lt;br /&gt;
{{key press|Android: Store Beta}}: Publicly available in Google Play Store as beta versions. You can opt in or out of the beta at any time in the store.&lt;br /&gt;
&lt;br /&gt;
{{key press|Android: Store Preview}}: Available through Google Play Store's [https://play.google.com/store/apps/details?id=com.augmensys.ubik.go invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|iOS: Store Beta}}: Available through Apple App Store's [https://testflight.apple.com/join/Kmb1HG9E invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|iOS: Store Preview}}: Available through Apple App Store's [https://testflight.apple.com/join/yHRnbYbt invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|Windows: Store Preview}}: The mobile Windows client is not an official product and is only distributed as test versions upon request and/or in our [https://release.augmensys.com/download/modules/client/mobile/ release portal].&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|Some customized XAMLs might need an update to work properly. These changes are marked with a ⚠️}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Release Notes =&lt;br /&gt;
&lt;br /&gt;
== Release ==&lt;br /&gt;
=== 5.1.?? 2026-??-?? {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* The system flashlight can now also be enabled or disabled via XAML customization. For detailed information, see [[Mobile XAML#Flashlight|Flashlight]]&lt;br /&gt;
* Replaced app closing after repeated failed login attempts with a client-side temporary login block, including user feedback that indicates when login becomes available again.&lt;br /&gt;
* Added French localization to the app.&lt;br /&gt;
* A standard for MRO Signature Tasks has been introduced, which automatically displays the signee as well as the validation date after the task has been signed.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Mobile|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Version 5.1|Version 5.1 (Mobile)]]&lt;br /&gt;
&lt;br /&gt;
=== 5.1.?? 2026-??-?? {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* Fixed an issue that prevented any documents from being uploaded.&lt;br /&gt;
* Fixed an issue where changes in property editing were not discarded when using the default Back button.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Mobile|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Version 5.1|Version 5.1 (Mobile)]]&lt;br /&gt;
&lt;br /&gt;
=== 5.1.29 on 2026-02-26 {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* Fixed an issue where the POI button was only visible under certain condition (ShowUnreleasedFeatures in the profile is set to true).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 5.1.28 on 2026-02-10 {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* The following features which existed in pre 5.0 versions are now available again in 5.1.&lt;br /&gt;
** [[Map_View|Map view]].&lt;br /&gt;
** [[POI_View_(Mobile)|POI view]]. (Aruco and OCR are not yet supported)&lt;br /&gt;
** Location service.&lt;br /&gt;
** [[Native_Push_(Client)|Native push]].&lt;br /&gt;
** [[Charts]].&lt;br /&gt;
* UBIK now uses industry-standard JSON Web Token (JWT) technology for authorization, enhancing security and reliability. Session tokens are transmitted via HTTP headers instead of URLs for improved protection.&lt;br /&gt;
* Added support for conditionally showing the ImageEditor Save button only when edits have been made, enabled when MergeAnnotationsOnSave is set to true.&lt;br /&gt;
* Complete UI overhaul introduces a cleaner, more modern and adaptive user interface with various quality of life improvements.&lt;br /&gt;
* UBIKTabView supports both dynamic and static items in combination with lazy loading.&lt;br /&gt;
* Files in the app's data folder can now be opened or deleted directly in the developer settings.&lt;br /&gt;
* Introduced a fully resource-driven UI theming system enabling fast, safe customization (dark mode, resizing, and consistent styling) by adapting a small set of centralized resources.&lt;br /&gt;
* Added support for [[File_Upload_Size_Restriction|configurable file-upload size restrictions]], preventing oversized files from being uploaded and providing users with feedback when limits are exceeded.&lt;br /&gt;
* Fixed an issue where annotated image documents do not appear as changed until the UI refreshes.&lt;br /&gt;
* Fixed an issue where displayed file content does not update after you revert its changes.&lt;br /&gt;
* Fixed an issue where remembered scroll positions were lost when the ItemsSource property of an SfListViewExt changed (e.g., Properties.ShowAllProperties).&lt;br /&gt;
* The UI now updates correctly after mass deletion in multi-selection mode.&lt;br /&gt;
* Fixed issue that caused app to be stuck on splash screen after resuming from background.&lt;br /&gt;
* Fixed an issue where StatusColor was not shown in the UI for objects that didn't additionally have a Progress.&lt;br /&gt;
* Fixed an issue where the Chart Thresholds didn't update.&lt;br /&gt;
* Fixed an issue that caused content of the custom ContentControl to not be rendered sometimes.&lt;br /&gt;
* (Android) Fixed an issue in the WebView where some links could not be opened.&lt;br /&gt;
* Fixed an issue where toggling NA in the String Editor did not behave correctly.&lt;br /&gt;
* Fixed an issue where the deletion of some objects was not reflected in the UI until refresh.&lt;br /&gt;
* Fixed an issue where document creation might not be properly enabled in certain customizing scenarios. For example, a media creation button might be disabled until a page refresh.&lt;br /&gt;
* Fixed an issue where batch creating documents (by multi selecting files to attach) can be interrupted if you leave the page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Known issues ==&lt;br /&gt;
* Due to third-party limitations, the feature that shows the ImageEditor Save button only when edits have been made is only active when MergeAnnotationsOnSave is set to true. In Mobile, deleting the last annotation does not correctly update the editor's internal edit state. As a result, the Save button may remain visible even though no edits exist.&lt;br /&gt;
* When changing the device orientation during attaching a photo on iOS, the app gets stuck. This is an issue Microsoft confirmed in .NET9 and will fix in .NET10.&lt;br /&gt;
* When editing Guid Link properties, you can no longer further edit the filtering if there are predefined filter parameters (such as the [[Dynamic_Selective_List_(Client)#Dependency_property_values|dependency property values in dynamic selective lists]]). This is because those parameters are to be enforced by design and should not be changed by users. In the future, we might consider a finer level of control over which parameters can be edited in such cases.&lt;br /&gt;
* Currently, the Samsung keyboard doesn't show {{key press|,}} at all, regardless of the current language/locale setting of the device. Please use a different virtual keyboard (e.g. Gboard from Google) instead if {{key press|.}} is unacceptable.&lt;br /&gt;
* The periodic execution of background pushes is not guaranteed on iOS (the native push feature doesn't have this issue).&lt;br /&gt;
* There are still some [[Annotation_and_HotSpot#Known_issues|known issues with free text and text markup annotations]].&lt;br /&gt;
* It is currently not possible to select which camera to use for AR views (e.g. scan page) on Windows.&lt;br /&gt;
* SfPullToRefresh was removed due to [[Mobile_XAML#Issues_with_SfPullToRefresh_in_Mobile_client|existing issues]], and replaced with a Refresh option in the Context menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= ⚠️ XAML Notes =&lt;br /&gt;
Due to the change of the underlying XAML technology, the existing XAMLs for the old mobile clients (pre 5.0) are no longer compatible. Please refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] for migrating them to the new client.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;headertabs /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Mobile|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Version 5.1|Version 5.1 (Mobile)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=MRO_Objects_(Client)&amp;diff=29428</id>
		<title>MRO Objects (Client)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=MRO_Objects_(Client)&amp;diff=29428"/>
				<updated>2026-03-02T12:24:52Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:UI_WinX_MRO_ChildList.png|thumb|alt=MRO Child List UI (WinX)|MRO UI (WinX)]]&lt;br /&gt;
[[File:Android_mro_ui.jpg|thumb|alt=MRO Child List UI (Android)|MRO UI (Android)]]&lt;br /&gt;
The WinX client UI displays MRO configured objects like any other root- or child-object enriched by some additional logic and features.&lt;br /&gt;
&lt;br /&gt;
== Basic User Interface ==&lt;br /&gt;
The representation of MRO features comprises some indicators and interactive controls. In the {{UBIK}} child list, the main object displays cumulated technical and organisational status as well as the overall work progress based on the underlying data branch. Objects classified as MRO objects in general provide indicators for the MRO status. This means the status is shown next to the main icon of a child-/details-/documents-page as well as next to the icons of the child list items:&lt;br /&gt;
&lt;br /&gt;
=== Technical Status ===&lt;br /&gt;
{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
The technical status indicator is shown on all objects that represent a technical state or receive the technical status from subsequent objects in the underlying data branch. If e.g. a inventory object is reported as damaged, its parent objects will all display the exclamation mark symbol to indicate that a problem was reported in the child items.&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_TechnicalStatusIndicator.png|thumb|Technical Status Indicator (WinX)&lt;br /&gt;
File:Android_tech_status.PNG|thumb|Technical Status Indicator (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Organisational Status ===&lt;br /&gt;
The organisational status indicates the amount of confirmed work within the data branch, including already confirmed work packages as well as tasks that are locked by their owning work package. The organisational status indicator is displayed on all objects that represent an organisational state or receive the organisational status from subsequent objects in the underlying data branch, and visualizes the amount of confirmed work performed within that branch.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_OrganisationalStatusIndicator.png|Organisational Status Indicator (WinX)&lt;br /&gt;
File:UI_WinX_MRO_WPConfirmedIndicator.png|MRO Workpackage Confirmed (Flag) Indicator (WinX)&lt;br /&gt;
File:Android_orga_status.PNG|Organisational Status Indicator (Android)&lt;br /&gt;
File:Android_orga_status_finished.PNG|MRO Workpackage Confirmed Indicator (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Work Progress ===&lt;br /&gt;
The work progress is calculated from the current work progress and from the progress cumulated from subsequent objects in the underlying data branch. This indicator shows the amount of work done in the data branch.&lt;br /&gt;
&lt;br /&gt;
{{Version/WinXSince|5.0}} {{Version/MobileSince|5.0}} By default, the progress is displayed with maximum one decimal place. For example, 99.75% is displayed as 99.8%. The format string used to achieve this is &amp;lt;code&amp;gt;{0:0.#}%&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If other numeric formats are preferred in your usecases, you can refer to [https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-numeric-format-strings custom numeric format strings] for more information. The template to customize for this is the UBIKMROProgressBadge within UBIKThemes.&lt;br /&gt;
&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== MRO Objects ==&lt;br /&gt;
A set of specific objects can be used to provide the required structure for MRO:&lt;br /&gt;
&lt;br /&gt;
=== Task Owner ===&lt;br /&gt;
A [[MROCLS_MRO_TASKOWNER|Task Owner]] is an object having a substructure of jobs to be done. It can have a tree of other task owners or work packages underneath that will update the status of the task owner. This status consists of technical, organisational and progress information. With a task owner a user can get an overview of all the work to be done in the underlying job structure.&lt;br /&gt;
&lt;br /&gt;
=== Work Package===&lt;br /&gt;
A [[MROCLS_MRO_WORKPACKAGE|Work Package]] is a collection of objects to collect and summarize other task owning objects, workpackages, or tasks. A simple workpackage has a certain amount of tasks that have to be finished in order to confirm the workpackage as done. More complex workpackages can also own other underlying workpackages that have to be confirmed.  Confirming a workpackage itself requires a progress of 100% of all related tasks, as well as 100% confirmed sub work packages.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_WPConfirmButton.png|MRO Workpackage confirm button (WinX)&lt;br /&gt;
File:UI_WinX_MRO_WPRevokeConfirmButton.png|MRO Workpackage revoke confirmation button (WinX)&lt;br /&gt;
File:Android_finish_workpackage.PNG|MRO Workpackage confirm button (Android)&lt;br /&gt;
File:Android reopen workpackage.PNG|MRO Workpackage revoke confirmation button (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Task ===&lt;br /&gt;
A [[MROCLS_MRO_TASK|Task]] is an object reporting a certain progress to the owning workpackage. There are several specialized types of task objects. All kinds of tasks have a property called '''VALUE''' in common. It is very important, that this property is able to be validated. Therefore, a MetaAttribute (providing a validation timestamp by default) has to be attached on the used MetaProperty.&lt;br /&gt;
&lt;br /&gt;
On both clients, a Task can be reverted by clicking twice on the Not Applicable button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|The MetaProperty ''VALUE'' has to use [[Attributes]] in order to be validated. Otherwise, the calculation of work progress will not be possible.}}&lt;br /&gt;
&lt;br /&gt;
==== Measurement Task ====&lt;br /&gt;
&lt;br /&gt;
A [[MROCLS_MRO_MEASUREMENT_TASK|Measurement Task]] inherits from [[MROCLS_MRO_TASK|Task]] and documents a measured value (e.g. read from a pressure gauge). Therefore, clicking the value on the shown task opens an editor to enter the desired value. If no value was entered before, an empty line will be shown. Once a value has been entered, the task is finished. Alternatively, the task can also be closed by the option ''Not Applicable'' to document the situation of not being able to fullfill the measurement (e.g. the pressure gauge is broken). An additional small value indicator below the main value can report e.g. the previously entered value. The behaviour of this previous value indicator has to be specified separately in the customizing.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Measurment Task Empty UWP.png|Measurement Task without a reported value (WinX)&lt;br /&gt;
File:Measurment Task Not Empty UWP.png|Measurement Task with a reported value (WinX)&lt;br /&gt;
File:Measurment Task Empty Android.jpg|Measurement Task without a reported value (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Progress Task ====&lt;br /&gt;
&lt;br /&gt;
[[MROCLS_MRO_PROGRESS_TASK| Progress Task]] inherits from [[MROCLS_MRO_MEASUREMENT_TASK|Task]] and reports a certain progress while fullfilling a task. The progress will influence the overall progress of the owning workpackage. If the task cannot be fullfilled, it can also be finished with the option ''Not Applicable''.&lt;br /&gt;
&lt;br /&gt;
There is also an [[MRO_PROGRESS_TASK_EDITOR|alternative editor]] available for progress tasks.{{Version/WinXSince|2.5.4}}&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Progress Task UWP.png|Progress Task with a reported work progress (WinX)&lt;br /&gt;
File:Progress Task Android.jpg|Progress Task with a reported work progress and a previous progress(Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Check Task ====&lt;br /&gt;
&lt;br /&gt;
A [[MROCLS_MRO_CHECK_TASK|Check Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished by reporting ''Done'' or ''Not Applicable''. This is intended for a simple To-Do task that is either done or not.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Check Task finished UWP.png|Unfinished MRO CheckTask (WinX)&lt;br /&gt;
File:Check Task android.jpg|Not Applicable MRO CheckTask (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Inspection Task ====&lt;br /&gt;
&lt;br /&gt;
[[MROCLS_MRO_INSPECTION_TASK|Inspection Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished, when the user reports with a positive or negative answer or ''Not Applicable'' (e.g. reporting a yes/no answer for existing equipment).&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Finished Inspection Task UWP.png|Finished MRO InspectionTask (WinX)&lt;br /&gt;
File:Inspection task android.jpg|Finished MRO InspectionTask (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Sequential Task ====&lt;br /&gt;
The [[MROCLS_SEQUENTIALTASK|sequential task classification]] allows you to pre-define a sequence in which tasks are to be resolved by users. This means that it is required for one or multiple tasks to be finished in order for other tasks to become &amp;quot;unlocked&amp;quot; and editable. A task can have any number of &amp;quot;predecessors&amp;quot;. Predecessors are the tasks that are required to be finished first.&lt;br /&gt;
&lt;br /&gt;
A task can have predecessors that live anywhere else in the object hierarchy. It is not necessary for a task and its predecessors to be part of the same work package, even though this is likely the most common use case.&lt;br /&gt;
&lt;br /&gt;
The state of a sequential task is evaluated both offline and online to get the best possible user experience. The user will see dependent tasks update immediately if their successors were finished, if those tasks are currently visible in the UI. There is 1 case in which the server-side state will override the client-side (offline) evaluation, discussed below.&lt;br /&gt;
The state of each sequential task is evaluated the following way:&lt;br /&gt;
&lt;br /&gt;
# If the server-side state says the task is open, we consider this as the truthful state and don't do any other evaluation.&lt;br /&gt;
# Check if the task has any predecessors.&lt;br /&gt;
# Try to load each predecessor task.&lt;br /&gt;
#* If loading of any predecessor fails (the object is not available offline), the task will be locked.&lt;br /&gt;
# If all predecessor tasks are finished, the task is open and can be edited. Otherwise, the task is locked.&lt;br /&gt;
&lt;br /&gt;
The customizer setting up the task dependency relations needs to ensure that the dependencies are not cyclical. In this case, it would be impossible for any tasks in the &amp;quot;cycle&amp;quot; to be finished.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&lt;br /&gt;
&lt;br /&gt;
As a demonstration of this feature, see [[Media:Sequential_tasks_winx.mp4|this video]]. The relations between tasks are defined as in [[Media:Task_relations.png|this image]], starting at A1 and A2, which are not dependent on any other tasks. The lines (from left to right) indicate dependencies. This means that B2 has tasks A1 and A2 as its predecessors, for example.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Grouped Task {{Version/WinXSince|4.2}}{{Version/XamarinSince|4.2}} ====&lt;br /&gt;
Sometimes, not all tasks have to be finished. More specifically, there might be a predefined condition where you only need to finish a certain number of tasks among a group of them. These are known in {{UBIK}} as [[MROCLS_GROUPEDTASK|grouped tasks]].&lt;br /&gt;
&lt;br /&gt;
The idea is, a group of tasks can be defined as siblings to each other and they also share the same server configured threshold. When the number of finished tasks among that group exceeds the threshold, the entire group is considered as no longer necessary. When reflected in the overall status of the task owner(s), these tasks would appear as if they are finished.&lt;br /&gt;
&lt;br /&gt;
{{Hint|Technically speaking, the finished status is completely independent from the not necessary status on a task. A grouped task which is no longer necessary can be both finished or not yet finished. In other words, users don't have to finish a not necessary grouped task, but they still can.}}&lt;br /&gt;
&lt;br /&gt;
{{Hint|The precise status calculation for grouped tasks and their task owners requires the knowledge of all siblings tasks. Imagine 2 out of 3 tasks must be finished but the client only knows 1 in total and the others are only available at the server at that time. This makes it impossible to draw conclusions whether the task(s) should be necessary or not. Under such circumstances, the local status calculation is done as if these are just regular tasks.}}&lt;br /&gt;
&lt;br /&gt;
{{Hint|Like with the other MRO objects, the client always chooses the best available statuses for grouped tasks to present to the users. More specifically, it uses the statuses calculated by the server when the client is not offline and there are no uncommitted local changes on the involved objects. Otherwise, it uses the statuses calculated locally to the best of its knowledge.}}&lt;br /&gt;
&lt;br /&gt;
A task can also be a grouped and a sequential one at the same time. In such a case, the grouped nature of the sibling tasks will affect the way the task sequence completes.&lt;br /&gt;
&lt;br /&gt;
For example, task A1, A2 and A3 are 3 grouped sibling tasks and only 1 of them needs to be finished. At the same time, they are all predecessors of task B. Normally, all predecessors must be finished (and locked) before task B becomes the next one in the sequence and therefore unlocked. In this case, however, as soon as one of the predecessors is finished, all three become unnecessary (and locked) and task B unlocks as a result of that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Supervisor Task {{Version/XamarinSince|4.8}} ====&lt;br /&gt;
As the name suggests, supervisor tasks are those that must be finished under supervision. When users want to finish a [[MROCLS_MRO_SUPERVISOR_TASK|supervisor task]], they must hand over their work devices to a supervisor. The latter checks the work status and scans an NFC tag if the work is approved. If the [[MROCLS_MRO_SUPERVISOR|supervisor]] has sufficient permissions for the task and the correct supervisor PIN is given, the task gets unlocked and the users can proceed to finish it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=300px&amp;gt;&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_Before_Verification.jpg|Supervisor Task Before Verification/Unlocking (Mobile)&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_Enter_PIN.jpg|Supervisor Task Enter PIN (Mobile)&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_After_Verification.jpg|Supervisor Task After Verification/Unlocking (Mobile)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A thing to note is that while the need to verify a supervisor task can be seen as a type of locking, it's certainly not the only reason for a [[Locked_Objects|locked object]]. This means a supervisor task can remain locked (although for different reasons) even after a supervisor has successfully verified it. This can often be the case if you use it in combination with other features such as [[MRO_Objects_(Client)#Sequential_Task|sequential tasks]], [[User_Rights|user rights]].&lt;br /&gt;
&lt;br /&gt;
{{Hint|For security reasons, the verification process is cancelled if the supervisor enters the wrong PIN for three times. Scanning the tag again is required in that case.}}&lt;br /&gt;
{{Hint|A setting controls [[RFID_tags#Choose_which_information_to_use_from_a_tag|which information in a scanned tag is used]] during this process.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MRO objects with project information (WinX only) {{Version/WinXSince|2.5.4}} ===&lt;br /&gt;
[[File:UI_WinX_MRO_ProjectInfo.png|thumb|MRO Object with Project Info (WinX)]]&lt;br /&gt;
An MRO object (except tasks) might also bring along [[MROCLS_PROJECTINFORMATION|project information]]. In this case, the project information together with the MRO progress are displayed in a bar chart. The start &amp;amp; end dates of the MRO object are displayed on the progress bar. The length and the position of the progress bar, together with the current date mark indicate the timeline.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Locking ==&lt;br /&gt;
When an (MRO) object is locked, editing it becomes impossible. More details about [[Locked_Objects|locked objects]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[MRO (Plugin)]]&lt;br /&gt;
* [[MROCLS_PROJECT]]&lt;br /&gt;
* [[MROCLS_PROJECTINFORMATION]]&lt;br /&gt;
* [[MROCLS_SEQUENTIALTASK]]&lt;br /&gt;
* [[MROCLS_GROUPEDTASK]]&lt;br /&gt;
* [[MROCLS_MRO_CHECK_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_INSPECTION_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_MEASUREMENT_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_PROGRESS_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_TASKOWNER]]&lt;br /&gt;
* [[MROCLS_MRO_WORKPACKAGE]]&lt;br /&gt;
* [[MROCLS_PROCEDURE#Procedure Workpackage]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_TASK#Switch Task]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_END_TASK#Switch End Task]] (Classification)&lt;br /&gt;
* [[MROCLS_CALCULATION_TASK#Calculation Task]] (Classification)&lt;br /&gt;
&lt;br /&gt;
[[Category:Android|MRO Objects (UBIK WinX)]]&lt;br /&gt;
[[Category:Client|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Mobile|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Pages with broken file links|MRO Objects (Client)]]&lt;br /&gt;
[[Category:WinX|MRO Objects (UBIK WinX)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Version_5.1_(Mobile)&amp;diff=29422</id>
		<title>Version 5.1 (Mobile)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Version_5.1_(Mobile)&amp;diff=29422"/>
				<updated>2026-03-02T08:00:21Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Attention|Existing pre 5.0 XAMLs are not compatible with UBIK Mobile client 5.1. Please refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] for migrating them to the new client.}}&lt;br /&gt;
&lt;br /&gt;
{{Attention|UBIK 5 clients can only connect to {{UBIK}} Servers of [[Version 3.6(Server)|version 3.6]] and higher!}}&lt;br /&gt;
&lt;br /&gt;
{{Attention|The minimum supported OS versions are:&lt;br /&gt;
* Android 9;&lt;br /&gt;
* iOS 12.}}&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
{{key press|Android: Store}}{{key press|iOS: Store}}: Publicly available in Google Play Store / Apple App Store.&lt;br /&gt;
&lt;br /&gt;
{{key press|Android: Store Beta}}: Publicly available in Google Play Store as beta versions. You can opt in or out of the beta at any time in the store.&lt;br /&gt;
&lt;br /&gt;
{{key press|Android: Store Preview}}: Available through Google Play Store's [https://play.google.com/store/apps/details?id=com.augmensys.ubik.go invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|iOS: Store Beta}}: Available through Apple App Store's [https://testflight.apple.com/join/Kmb1HG9E invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|iOS: Store Preview}}: Available through Apple App Store's [https://testflight.apple.com/join/yHRnbYbt invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|Windows: Store Preview}}: The mobile Windows client is not an official product and is only distributed as test versions upon request and/or in our [https://release.augmensys.com/download/modules/client/mobile/ release portal].&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|Some customized XAMLs might need an update to work properly. These changes are marked with a ⚠️}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Release Notes =&lt;br /&gt;
&lt;br /&gt;
== Release ==&lt;br /&gt;
=== 5.1.?? 2026-??-?? {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* The system flashlight can now also be enabled or disabled via XAML customization. For detailed information, see [[Mobile XAML#Flashlight|Flashlight]]&lt;br /&gt;
* Replaced app closing after repeated failed login attempts with a client-side temporary login block, including user feedback that indicates when login becomes available again.&lt;br /&gt;
* Added French localization to the app.&lt;br /&gt;
&lt;br /&gt;
=== 5.1.?? 2026-??-?? {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* Fixed an issue that prevented any documents from being uploaded.&lt;br /&gt;
* Fixed an issue where changes were not discarded when using the default Back button.&lt;br /&gt;
&lt;br /&gt;
=== 5.1.29 on 2026-02-26 {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* Fixed an issue where the POI button was only visible under certain condition (ShowUnreleasedFeatures in the profile is set to true).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 5.1.28 on 2026-02-10 {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* The following features which existed in pre 5.0 versions are now available again in 5.1.&lt;br /&gt;
** [[Map_View|Map view]].&lt;br /&gt;
** [[POI_View_(Mobile)|POI view]]. (Aruco and OCR are not yet supported)&lt;br /&gt;
** Location service.&lt;br /&gt;
** [[Native_Push_(Client)|Native push]].&lt;br /&gt;
** [[Charts]].&lt;br /&gt;
* UBIK now uses industry-standard JSON Web Token (JWT) technology for authorization, enhancing security and reliability. Session tokens are transmitted via HTTP headers instead of URLs for improved protection.&lt;br /&gt;
* Added support for conditionally showing the ImageEditor Save button only when edits have been made, enabled when MergeAnnotationsOnSave is set to true.&lt;br /&gt;
* Complete UI overhaul introduces a cleaner, more modern and adaptive user interface with various quality of life improvements.&lt;br /&gt;
* UBIKTabView supports both dynamic and static items in combination with lazy loading.&lt;br /&gt;
* Files in the app's data folder can now be opened or deleted directly in the developer settings.&lt;br /&gt;
* Introduced a fully resource-driven UI theming system enabling fast, safe customization (dark mode, resizing, and consistent styling) by adapting a small set of centralized resources.&lt;br /&gt;
* Added support for [[File_Upload_Size_Restriction|configurable file-upload size restrictions]], preventing oversized files from being uploaded and providing users with feedback when limits are exceeded.&lt;br /&gt;
* Fixed an issue where annotated image documents do not appear as changed until the UI refreshes.&lt;br /&gt;
* Fixed an issue where displayed file content does not update after you revert its changes.&lt;br /&gt;
* Fixed an issue where remembered scroll positions were lost when the ItemsSource property of an SfListViewExt changed (e.g., Properties.ShowAllProperties).&lt;br /&gt;
* The UI now updates correctly after mass deletion in multi-selection mode.&lt;br /&gt;
* Fixed issue that caused app to be stuck on splash screen after resuming from background.&lt;br /&gt;
* Fixed an issue where StatusColor was not shown in the UI for objects that didn't additionally have a Progress.&lt;br /&gt;
* Fixed an issue where the Chart Thresholds didn't update.&lt;br /&gt;
* Fixed an issue that caused content of the custom ContentControl to not be rendered sometimes.&lt;br /&gt;
* (Android) Fixed an issue in the WebView where some links could not be opened.&lt;br /&gt;
* Fixed an issue where toggling NA in the String Editor did not behave correctly.&lt;br /&gt;
* Fixed an issue where the deletion of some objects was not reflected in the UI until refresh.&lt;br /&gt;
* Fixed an issue where document creation might not be properly enabled in certain customizing scenarios. For example, a media creation button might be disabled until a page refresh.&lt;br /&gt;
* Fixed an issue where batch creating documents (by multi selecting files to attach) can be interrupted if you leave the page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Known issues ==&lt;br /&gt;
* Due to third-party limitations, the feature that shows the ImageEditor Save button only when edits have been made is only active when MergeAnnotationsOnSave is set to true. In Mobile, deleting the last annotation does not correctly update the editor's internal edit state. As a result, the Save button may remain visible even though no edits exist.&lt;br /&gt;
* When changing the device orientation during attaching a photo on iOS, the app gets stuck. This is an issue Microsoft confirmed in .NET9 and will fix in .NET10.&lt;br /&gt;
* When editing Guid Link properties, you can no longer further edit the filtering if there are predefined filter parameters (such as the [[Dynamic_Selective_List_(Client)#Dependency_property_values|dependency property values in dynamic selective lists]]). This is because those parameters are to be enforced by design and should not be changed by users. In the future, we might consider a finer level of control over which parameters can be edited in such cases.&lt;br /&gt;
* Currently, the Samsung keyboard doesn't show {{key press|,}} at all, regardless of the current language/locale setting of the device. Please use a different virtual keyboard (e.g. Gboard from Google) instead if {{key press|.}} is unacceptable.&lt;br /&gt;
* The periodic execution of background pushes is not guaranteed on iOS (the native push feature doesn't have this issue).&lt;br /&gt;
* There are still some [[Annotation_and_HotSpot#Known_issues|known issues with free text and text markup annotations]].&lt;br /&gt;
* It is currently not possible to select which camera to use for AR views (e.g. scan page) on Windows.&lt;br /&gt;
* SfPullToRefresh was removed due to [[Mobile_XAML#Issues_with_SfPullToRefresh_in_Mobile_client|existing issues]], and replaced with a Refresh option in the Context menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= ⚠️ XAML Notes =&lt;br /&gt;
Due to the change of the underlying XAML technology, the existing XAMLs for the old mobile clients (pre 5.0) are no longer compatible. Please refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] for migrating them to the new client.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;headertabs /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Mobile|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Version 5.1|Version 5.1 (Mobile)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Version_5.1_(Mobile)&amp;diff=29376</id>
		<title>Version 5.1 (Mobile)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Version_5.1_(Mobile)&amp;diff=29376"/>
				<updated>2026-02-17T10:44:54Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* 5.1.?? 2026-??-?? {{key press|Android: Store}}{{key press|iOS: Store}} */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Attention|Existing pre 5.0 XAMLs are not compatible with UBIK Mobile client 5.1. Please refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] for migrating them to the new client.}}&lt;br /&gt;
&lt;br /&gt;
{{Attention|UBIK 5 clients can only connect to {{UBIK}} Servers of [[Version 3.6(Server)|version 3.6]] and higher!}}&lt;br /&gt;
&lt;br /&gt;
{{Attention|The minimum supported OS versions are:&lt;br /&gt;
* Android 9;&lt;br /&gt;
* iOS 12.}}&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
{{key press|Android: Store}}{{key press|iOS: Store}}: Publicly available in Google Play Store / Apple App Store.&lt;br /&gt;
&lt;br /&gt;
{{key press|Android: Store Beta}}: Publicly available in Google Play Store as beta versions. You can opt in or out of the beta at any time in the store.&lt;br /&gt;
&lt;br /&gt;
{{key press|Android: Store Preview}}: Available through Google Play Store's [https://play.google.com/store/apps/details?id=com.augmensys.ubik.go invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|iOS: Store Beta}}: Available through Apple App Store's [https://testflight.apple.com/join/Kmb1HG9E invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|iOS: Store Preview}}: Available through Apple App Store's [https://testflight.apple.com/join/yHRnbYbt invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|Windows: Store Preview}}: The mobile Windows client is not an official product and is only distributed as test versions upon request and/or in our [https://release.augmensys.com/download/modules/client/mobile/ release portal].&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|Some customized XAMLs might need an update to work properly. These changes are marked with a ⚠️}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Release Notes =&lt;br /&gt;
&lt;br /&gt;
== Release ==&lt;br /&gt;
=== 5.1.?? 2026-??-?? {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* The system flashlight can now also be enabled or disabled via XAML customization. For detailed information, see [[Mobile XAML#Flashlight|Flashlight]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Mobile|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Version 5.1|Version 5.1 (Mobile)]]&lt;br /&gt;
&lt;br /&gt;
=== 5.1.28 on 2026-02-10 {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* The following features which existed in pre 5.0 versions are now available again in 5.1.&lt;br /&gt;
** [[Map_View|Map view]].&lt;br /&gt;
** [[POI_View_(Mobile)|POI view]]. (Aruco and OCR are not yet supported)&lt;br /&gt;
** Location service.&lt;br /&gt;
** [[Native_Push_(Client)|Native push]].&lt;br /&gt;
** [[Charts]].&lt;br /&gt;
* UBIK now uses industry-standard JSON Web Token (JWT) technology for authorization, enhancing security and reliability. Session tokens are transmitted via HTTP headers instead of URLs for improved protection.&lt;br /&gt;
* Added support for conditionally showing the ImageEditor Save button only when edits have been made, enabled when MergeAnnotationsOnSave is set to true.&lt;br /&gt;
* Complete UI overhaul introduces a cleaner, more modern and adaptive user interface with various quality of life improvements.&lt;br /&gt;
* UBIKTabView supports both dynamic and static items in combination with lazy loading.&lt;br /&gt;
* Files in the app's data folder can now be opened or deleted directly in the developer settings.&lt;br /&gt;
* Introduced a fully resource-driven UI theming system enabling fast, safe customization (dark mode, resizing, and consistent styling) by adapting a small set of centralized resources.&lt;br /&gt;
* Added support for [[File_Upload_Size_Restriction|configurable file-upload size restrictions]], preventing oversized files from being uploaded and providing users with feedback when limits are exceeded.&lt;br /&gt;
* Fixed an issue where annotated image documents do not appear as changed until the UI refreshes.&lt;br /&gt;
* Fixed an issue where displayed file content does not update after you revert its changes.&lt;br /&gt;
* Fixed an issue where remembered scroll positions were lost when the ItemsSource property of an SfListViewExt changed (e.g., Properties.ShowAllProperties).&lt;br /&gt;
* The UI now updates correctly after mass deletion in multi-selection mode.&lt;br /&gt;
* Fixed issue that caused app to be stuck on splash screen after resuming from background.&lt;br /&gt;
* Fixed an issue where StatusColor was not shown in the UI for objects that didn't additionally have a Progress.&lt;br /&gt;
* Fixed an issue where the Chart Thresholds didn't update.&lt;br /&gt;
* Fixed an issue that caused content of the custom ContentControl to not be rendered sometimes.&lt;br /&gt;
* (Android) Fixed an issue in the WebView where some links could not be opened.&lt;br /&gt;
* Fixed an issue where toggling NA in the String Editor did not behave correctly.&lt;br /&gt;
* Fixed an issue where the deletion of some objects was not reflected in the UI until refresh.&lt;br /&gt;
* Fixed an issue where document creation might not be properly enabled in certain customizing scenarios. For example, a media creation button might be disabled until a page refresh.&lt;br /&gt;
* Fixed an issue where batch creating documents (by multi selecting files to attach) can be interrupted if you leave the page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Known issues ==&lt;br /&gt;
* Due to third-party limitations, the feature that shows the ImageEditor Save button only when edits have been made is only active when MergeAnnotationsOnSave is set to true. In Mobile, deleting the last annotation does not correctly update the editor's internal edit state. As a result, the Save button may remain visible even though no edits exist.&lt;br /&gt;
* When changing the device orientation during attaching a photo on iOS, the app gets stuck. This is an issue Microsoft confirmed in .NET9 and will fix in .NET10.&lt;br /&gt;
* When editing Guid Link properties, you can no longer further edit the filtering if there are predefined filter parameters (such as the [[Dynamic_Selective_List_(Client)#Dependency_property_values|dependency property values in dynamic selective lists]]). This is because those parameters are to be enforced by design and should not be changed by users. In the future, we might consider a finer level of control over which parameters can be edited in such cases.&lt;br /&gt;
* Currently, the Samsung keyboard doesn't show {{key press|,}} at all, regardless of the current language/locale setting of the device. Please use a different virtual keyboard (e.g. Gboard from Google) instead if {{key press|.}} is unacceptable.&lt;br /&gt;
* The periodic execution of background pushes is not guaranteed on iOS (the native push feature doesn't have this issue).&lt;br /&gt;
* There are still some [[Annotation_and_HotSpot#Known_issues|known issues with free text and text markup annotations]].&lt;br /&gt;
* It is currently not possible to select which camera to use for AR views (e.g. scan page) on Windows.&lt;br /&gt;
* SfPullToRefresh was removed due to [[Mobile_XAML#Issues_with_SfPullToRefresh_in_Mobile_client|existing issues]], and replaced with a Refresh option in the Context menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= ⚠️ XAML Notes =&lt;br /&gt;
Due to the change of the underlying XAML technology, the existing XAMLs for the old mobile clients (pre 5.0) are no longer compatible. Please refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] for migrating them to the new client.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;headertabs /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Mobile|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Version 5.1|Version 5.1 (Mobile)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Version_5.1_(Mobile)&amp;diff=29375</id>
		<title>Version 5.1 (Mobile)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Version_5.1_(Mobile)&amp;diff=29375"/>
				<updated>2026-02-17T10:37:44Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Attention|Existing pre 5.0 XAMLs are not compatible with UBIK Mobile client 5.1. Please refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] for migrating them to the new client.}}&lt;br /&gt;
&lt;br /&gt;
{{Attention|UBIK 5 clients can only connect to {{UBIK}} Servers of [[Version 3.6(Server)|version 3.6]] and higher!}}&lt;br /&gt;
&lt;br /&gt;
{{Attention|The minimum supported OS versions are:&lt;br /&gt;
* Android 9;&lt;br /&gt;
* iOS 12.}}&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
{{key press|Android: Store}}{{key press|iOS: Store}}: Publicly available in Google Play Store / Apple App Store.&lt;br /&gt;
&lt;br /&gt;
{{key press|Android: Store Beta}}: Publicly available in Google Play Store as beta versions. You can opt in or out of the beta at any time in the store.&lt;br /&gt;
&lt;br /&gt;
{{key press|Android: Store Preview}}: Available through Google Play Store's [https://play.google.com/store/apps/details?id=com.augmensys.ubik.go invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|iOS: Store Beta}}: Available through Apple App Store's [https://testflight.apple.com/join/Kmb1HG9E invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|iOS: Store Preview}}: Available through Apple App Store's [https://testflight.apple.com/join/yHRnbYbt invitation link].&lt;br /&gt;
&lt;br /&gt;
{{key press|Windows: Store Preview}}: The mobile Windows client is not an official product and is only distributed as test versions upon request and/or in our [https://release.augmensys.com/download/modules/client/mobile/ release portal].&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|Some customized XAMLs might need an update to work properly. These changes are marked with a ⚠️}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Release Notes =&lt;br /&gt;
&lt;br /&gt;
== Release ==&lt;br /&gt;
=== 5.1.?? 2026-??-?? {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* The system flashlight can now also be enabled or disabled via XAML customization.&lt;br /&gt;
&lt;br /&gt;
=== 5.1.28 on 2026-02-10 {{key press|Android: Store}}{{key press|iOS: Store}} ===&lt;br /&gt;
* The following features which existed in pre 5.0 versions are now available again in 5.1.&lt;br /&gt;
** [[Map_View|Map view]].&lt;br /&gt;
** [[POI_View_(Mobile)|POI view]]. (Aruco and OCR are not yet supported)&lt;br /&gt;
** Location service.&lt;br /&gt;
** [[Native_Push_(Client)|Native push]].&lt;br /&gt;
** [[Charts]].&lt;br /&gt;
* UBIK now uses industry-standard JSON Web Token (JWT) technology for authorization, enhancing security and reliability. Session tokens are transmitted via HTTP headers instead of URLs for improved protection.&lt;br /&gt;
* Added support for conditionally showing the ImageEditor Save button only when edits have been made, enabled when MergeAnnotationsOnSave is set to true.&lt;br /&gt;
* Complete UI overhaul introduces a cleaner, more modern and adaptive user interface with various quality of life improvements.&lt;br /&gt;
* UBIKTabView supports both dynamic and static items in combination with lazy loading.&lt;br /&gt;
* Files in the app's data folder can now be opened or deleted directly in the developer settings.&lt;br /&gt;
* Introduced a fully resource-driven UI theming system enabling fast, safe customization (dark mode, resizing, and consistent styling) by adapting a small set of centralized resources.&lt;br /&gt;
* Added support for [[File_Upload_Size_Restriction|configurable file-upload size restrictions]], preventing oversized files from being uploaded and providing users with feedback when limits are exceeded.&lt;br /&gt;
* Fixed an issue where annotated image documents do not appear as changed until the UI refreshes.&lt;br /&gt;
* Fixed an issue where displayed file content does not update after you revert its changes.&lt;br /&gt;
* Fixed an issue where remembered scroll positions were lost when the ItemsSource property of an SfListViewExt changed (e.g., Properties.ShowAllProperties).&lt;br /&gt;
* The UI now updates correctly after mass deletion in multi-selection mode.&lt;br /&gt;
* Fixed issue that caused app to be stuck on splash screen after resuming from background.&lt;br /&gt;
* Fixed an issue where StatusColor was not shown in the UI for objects that didn't additionally have a Progress.&lt;br /&gt;
* Fixed an issue where the Chart Thresholds didn't update.&lt;br /&gt;
* Fixed an issue that caused content of the custom ContentControl to not be rendered sometimes.&lt;br /&gt;
* (Android) Fixed an issue in the WebView where some links could not be opened.&lt;br /&gt;
* Fixed an issue where toggling NA in the String Editor did not behave correctly.&lt;br /&gt;
* Fixed an issue where the deletion of some objects was not reflected in the UI until refresh.&lt;br /&gt;
* Fixed an issue where document creation might not be properly enabled in certain customizing scenarios. For example, a media creation button might be disabled until a page refresh.&lt;br /&gt;
* Fixed an issue where batch creating documents (by multi selecting files to attach) can be interrupted if you leave the page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Known issues ==&lt;br /&gt;
* Due to third-party limitations, the feature that shows the ImageEditor Save button only when edits have been made is only active when MergeAnnotationsOnSave is set to true. In Mobile, deleting the last annotation does not correctly update the editor's internal edit state. As a result, the Save button may remain visible even though no edits exist.&lt;br /&gt;
* When changing the device orientation during attaching a photo on iOS, the app gets stuck. This is an issue Microsoft confirmed in .NET9 and will fix in .NET10.&lt;br /&gt;
* When editing Guid Link properties, you can no longer further edit the filtering if there are predefined filter parameters (such as the [[Dynamic_Selective_List_(Client)#Dependency_property_values|dependency property values in dynamic selective lists]]). This is because those parameters are to be enforced by design and should not be changed by users. In the future, we might consider a finer level of control over which parameters can be edited in such cases.&lt;br /&gt;
* Currently, the Samsung keyboard doesn't show {{key press|,}} at all, regardless of the current language/locale setting of the device. Please use a different virtual keyboard (e.g. Gboard from Google) instead if {{key press|.}} is unacceptable.&lt;br /&gt;
* The periodic execution of background pushes is not guaranteed on iOS (the native push feature doesn't have this issue).&lt;br /&gt;
* There are still some [[Annotation_and_HotSpot#Known_issues|known issues with free text and text markup annotations]].&lt;br /&gt;
* It is currently not possible to select which camera to use for AR views (e.g. scan page) on Windows.&lt;br /&gt;
* SfPullToRefresh was removed due to [[Mobile_XAML#Issues_with_SfPullToRefresh_in_Mobile_client|existing issues]], and replaced with a Refresh option in the Context menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= ⚠️ XAML Notes =&lt;br /&gt;
Due to the change of the underlying XAML technology, the existing XAMLs for the old mobile clients (pre 5.0) are no longer compatible. Please refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] for migrating them to the new client.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;headertabs /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Mobile|Version 5.1 (Mobile)]]&lt;br /&gt;
[[Category:Version 5.1|Version 5.1 (Mobile)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Mobile_XAML&amp;diff=29374</id>
		<title>Mobile XAML</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Mobile_XAML&amp;diff=29374"/>
				<updated>2026-02-17T10:07:10Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* Feature related */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The User Interface of the Mobile Clients (Android, iOS, Windows) can be fundamentally customized using custom XAML definitions. This customization process is heavily influenced by the [[XAML|XAML Customization Process on the WinX Client]].&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
There are predefined XAML templates available that can be customized. If no customizing is found, the default templates will be used.&lt;br /&gt;
&lt;br /&gt;
== Default XAMLs ==&lt;br /&gt;
All default XAML templates that can be customized are available through the Mobile Windows client. You need to go to the app settings and click the &amp;quot;Unpack default XAMLs&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
== Differences to WinX/UWP ==&lt;br /&gt;
* Since it's based on the Mobile XAML dialect, you CANNOT use any existing XAML customizings for the WinX/UWP app;&lt;br /&gt;
* Namespace definitions must include the corresponding assembly names;&lt;br /&gt;
* XAML template files have the extension name of '''xamlx''' instead of '''xaml''';&lt;br /&gt;
* You can deploy only those resources that you want to customize. (This is also the case for newer versions of WinX/UWP. {{Version/WinXSince|3.6}})&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Overriding default XAMLs=&lt;br /&gt;
On Windows (WinX/UWP), the &amp;lt;code&amp;gt;[App Package Folder]/LocalState/xaml/&amp;lt;/code&amp;gt; folder can be accessed by the user and the customized XAML files directly added. An alternative to this on all platforms (including Android, iOS, etc.) is to use the ''Import Customizing'' button in the app settings to import the templates, styles, images, etc. (file by file, or all files within a zip package). The changes should be reflected in the UI (except the current page) without restarting the app. After directly editing the customizings (Mobile Windows), you can also use the &amp;quot;Reload customizing&amp;quot; button without restarting the app.&lt;br /&gt;
&lt;br /&gt;
In the following, we're going to override the default light theme color of the app:&lt;br /&gt;
* Unpack the default XAMLs;&lt;br /&gt;
* Pick and deploy the default UBIKThemes.xamlx to the '''xaml''' folder inside the ''LocalState'' folder;&lt;br /&gt;
* Open it with the text editor of your choice and remove everything within the '''ResouceDictionary''' except &amp;lt;code&amp;gt;&amp;lt;Color x:Key=&amp;quot;UBIKLightThemeColor&amp;quot;&amp;gt;blue&amp;lt;/Color&amp;gt;&amp;lt;/code&amp;gt;;&lt;br /&gt;
* Save the changes and reload. You should see changes successfully implemented.&lt;br /&gt;
&lt;br /&gt;
{{Attention| For maintainability reasons, it's HIGHLY recommended to deploy only those XAML resources you want to override. For example, if you only want to customize the UBIKChildArea, don't deploy others like the UBIKMenuArea. If you only want to customize the UBIKChildItem, that's the only content you should include in the UBIKThemes.}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Custom Templates ==&lt;br /&gt;
Custom templates can be added, just like on the WinX/UWP client. Make sure to include all '''namespace definitions''' (as attributes of the '''ContentView''' tag), otherwise the custom template will not load.&lt;br /&gt;
&lt;br /&gt;
Similar to the ''UBIKThemes.xamlx'' file, custom or overridden templates start with a &amp;lt;code&amp;gt;&amp;lt;ContentView&amp;gt;&amp;lt;/code&amp;gt; tag containing all '''namespaces'''. &amp;lt;code&amp;gt;&amp;lt;ContentView.Resources&amp;gt;&amp;lt;/code&amp;gt; takes a '''ResourceDictionary''' and contains resources like references to converters. Finally, &amp;lt;code&amp;gt;&amp;lt;ContentView.Content&amp;gt;&amp;lt;/code&amp;gt; contains the actual layout content (it's best to start with a '''Grid'''). Again, don't forget to add namespaces that you need!&lt;br /&gt;
&lt;br /&gt;
Templates can also be defined in ''UBIKThemes.xamlx''. In this case, they need to be added into the &amp;lt;code&amp;gt;&amp;lt;ResourceDictionary&amp;gt;&amp;lt;/code&amp;gt; inside the &amp;lt;code&amp;gt;&amp;lt;ContentView.Resources&amp;gt;&amp;lt;/code&amp;gt; template as a &amp;lt;code&amp;gt;&amp;lt;DataTemplate&amp;gt;&amp;lt;/code&amp;gt;. Similarly, if you want to split up the templates into seperate files, you need to make sure to follow the steps mentioned above and get the content of the &amp;lt;code&amp;gt;&amp;lt;DataTemplate&amp;gt;&amp;lt;/code&amp;gt; into the &amp;lt;code&amp;gt;&amp;lt;ContentView.Content&amp;gt;&amp;lt;/code&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
{{Attention|Templates defined in separate files will override templates defined in the ''UBIKThemes.xamlx''!}}&lt;br /&gt;
&lt;br /&gt;
=== Bindings in resources ===&lt;br /&gt;
When using bindings such as [[Xamarin_XAML#Content_filtering|this]] in a resource located in a custom template, it is necessary to place the template in a UBIKContentView.&lt;br /&gt;
&lt;br /&gt;
{{Hint|Technically speaking, this is because bindable objects in the ResourceDictionary of a ContentView (the custom template) don't automatically inherit the BindingContext from the container/parent view. UBIKContentView is created to additionally do that.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- UBIKCustomView.xamlx --&amp;gt;&lt;br /&gt;
&amp;lt;ContentView...&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;controls:SfDataSourceExt... ItemsSource=&amp;quot;{Binding Children.Items}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Container where UBIKCustomView is placed, e.g. UBIKChildArea.xamlx --&amp;gt;&lt;br /&gt;
&amp;lt;ContentView...&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
    &amp;lt;controls:UBIKContentView Content=&amp;quot;{Binding [UBIKCustomView], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Adding Images ==&lt;br /&gt;
Images can't be loaded with the default '''Image''' tag, as the image is on different paths on each operating system.&lt;br /&gt;
&lt;br /&gt;
Therefore, there's a custom '''FileImage''' that internally overrides the default ''Image'' with two custom parameters:&lt;br /&gt;
* '''FolderName''' ...The name of the '''folder''' in the '''local folder'''. Only the first level inside the ''LocalState'' folder seems to work.&lt;br /&gt;
* '''FileName''' ...The name of the '''file''' in the said folder. &lt;br /&gt;
&lt;br /&gt;
Make sure to implement the proper namespace as well by adding&lt;br /&gt;
&amp;lt;code&amp;gt;xmlns:fimage=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;lt;/code&amp;gt; into the root item's attributes.&lt;br /&gt;
&lt;br /&gt;
Then, the image can be loaded using:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;fimage:FileImage FileName=&amp;quot;image.png&amp;quot; FolderName=&amp;quot;xaml&amp;quot;/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This snipped loads the image called '''image.png''' located in the '''xaml''' folder inside the ''LocalState''.&lt;br /&gt;
&lt;br /&gt;
Furthermore, the ''FileImage'' tag doesn't seem to support most attributes. Therefore place it inside a '''Grid''' to achieve a perfect layout.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Custom Icons ==&lt;br /&gt;
Moved to article [[XAML_Tips#Custom_Icons]].&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Converters==&lt;br /&gt;
:''Main Page: [[Converters_In_Mobile]]''&lt;br /&gt;
&lt;br /&gt;
They are used to convert specific data into some desired output, using custom logic. &lt;br /&gt;
&lt;br /&gt;
Consider the following example:&amp;lt;br/&amp;gt;&lt;br /&gt;
A label saying ''There are no children items available!'' should only be visible if the number of children-items is 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
&lt;br /&gt;
== Feature related ==&lt;br /&gt;
&lt;br /&gt;
=== Customizing Menu Button {{Version/XamarinSince|4.6.0}} === &lt;br /&gt;
&lt;br /&gt;
For the Mobile Client, it is possible to show/hide the '''Menu button''' of the client.&amp;lt;br&amp;gt;&lt;br /&gt;
To customize the visibility of the '''Menu button''' you have to edit the default XAML '''Themes''' file.&lt;br /&gt;
&lt;br /&gt;
* Search for &amp;quot;'''ShowMenuToolBar'''&amp;quot; in the Themes file.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
If there isn't any &amp;quot;'''ShowMenuToolBar'''&amp;quot; in your XAML Themes file, you just have to create one, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;x:Boolean x:Key=&amp;quot;ShowMenuToolBar&amp;quot;&amp;gt;true&amp;lt;/x:Boolean&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Set the value to &amp;quot;true&amp;quot; to show the '''Menu button''' (default value).&lt;br /&gt;
* Set the value to &amp;quot;false&amp;quot; to hide the '''Menu button'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=&amp;quot;300&amp;quot; heights=&amp;quot;500&amp;quot;&amp;gt;&lt;br /&gt;
File:menu_button_show.png|Menu Button shown&lt;br /&gt;
File:menu_button_hiddenV3.png|Menu Button hidden&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Content filtering ===&lt;br /&gt;
For the Mobile clients, an &amp;quot;SfDataSourceExt&amp;quot; type is available for filtering list of items using defined expressions.&amp;lt;br /&amp;gt;&lt;br /&gt;
The following example demonstrates how to filter for child items having certain property values. The filtered list and its count can be displayed in the UI.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ContentView&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&lt;br /&gt;
    ...&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;x:String x:Key=&amp;quot;Expresssion&amp;quot;&amp;gt;Item.Values[&amp;amp;quot;MP_YEAR&amp;amp;quot;].Contains(&amp;amp;quot;2019&amp;amp;quot;)&amp;lt;/x:String&amp;gt;&lt;br /&gt;
            &amp;lt;controls:SfDataSourceExt  x:Key=&amp;quot;FilteredList&amp;quot; Expression=&amp;quot;{StaticResource Expresssion}&amp;quot; ItemsSource=&amp;quot;{Binding Children.Items}&amp;quot; Unloaded=&amp;quot;{Binding SkipFiltering}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
    &amp;lt;StackLayout Orientation=&amp;quot;Vertical&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;Label Text=&amp;quot;{Binding DisplayItemsCount, Source={StaticResource FilteredList}}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt ItemsSource=&amp;quot;{Binding DisplayItems, Source={StaticResource FilteredList}}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/StackLayout&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Notes on using bindings in ResourceDictionary ====&lt;br /&gt;
In the example shown above, you can see &amp;lt;code&amp;gt;{Binding Children.Items}&amp;lt;/code&amp;gt; is used. For this to work, the SfDataSourceExt control inside the ResourceDictionary must inherit the binding data context properly.&lt;br /&gt;
* In this case, that data context comes from where this template (UBIKChildArea.xamlx) is used, namely the UBIKContentArea.xamlx;&lt;br /&gt;
* When referencing this template in a ContentView control, the binding data context is '''NOT''' automatically inherited by the controls inside the ResourceDictioinary;&lt;br /&gt;
* That's why we use a UBIKContentView control instead. You can find its example usage in the default UBIKContentArea.xamlx template.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Search ===&lt;br /&gt;
In the default UBIKMenuArea.xamlx (where the search UI is hosted), there are two commands associated with two events. See below.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;SearchBar ...&amp;gt;&lt;br /&gt;
    &amp;lt;SearchBar.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior&lt;br /&gt;
            Command=&amp;quot;{Binding FreeTextSearchCommand}&amp;quot;&lt;br /&gt;
            CommandParameter=&amp;quot;{Binding Path=Text, Source={x:Reference SearchField}}&amp;quot;&lt;br /&gt;
            EventName=&amp;quot;SearchButtonPressed&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding DelayedFreeTextSearchCommand}&amp;quot; EventName=&amp;quot;TextChanged&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/SearchBar.Behaviors&amp;gt;&lt;br /&gt;
&amp;lt;/SearchBar&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The one for &amp;lt;code&amp;gt;SearchButtonPressed&amp;lt;/code&amp;gt; is responsible for executing searches after the user confirms the input (e.g. pressing {{{keypress|Enter}}} or the search button).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The one for &amp;lt;code&amp;gt;TextChanged&amp;lt;/code&amp;gt; is responsible for the &amp;quot;search as you type&amp;quot; behavior. Namely it triggers an automatic search shortly (half second) after the user stops changing the text in the search bar. It can be turned off by simply removing that particular behavior.&lt;br /&gt;
&lt;br /&gt;
=== DisplayViewCommand ===&lt;br /&gt;
This command can be used to [[Custom_View_(Client)|display custom views]].&lt;br /&gt;
&lt;br /&gt;
=== Flashlight  {{Version/MobileSince|5.1.0}}  ===&lt;br /&gt;
For the Mobile clients, it is possible to control the system flashlight via customizing and switch it on or off.&lt;br /&gt;
&lt;br /&gt;
The available properties can, for example, be bound to a Switch or CheckBox, as demonstrated below. These properties allow you to:&lt;br /&gt;
* Determine whether the device supports flashlight functionality (IsFlashSupported)&lt;br /&gt;
* Check whether the flashlight is currently turned on or off (IsFlashEnabled)&lt;br /&gt;
* Toggle the flashlight on or off via user interaction (SwitchFlashLight) &lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
If an attempt is made to enable the flashlight on a device that does not provide flashlight support, no action is performed.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Switch&lt;br /&gt;
! controls:CheckBox&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Switch IsVisible=&amp;quot;{Binding AppStatus.IsFlashSupported}&amp;quot;&lt;br /&gt;
        IsToggled=&amp;quot;{Binding AppStatus.SwitchFlashLight, Mode=TwoWay}&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:CheckBox&lt;br /&gt;
    x:Name=&amp;quot;PropertyToggle&amp;quot;&lt;br /&gt;
    CheckSymbol=&amp;quot;&amp;amp;#x1F526;&amp;quot;&lt;br /&gt;
    IsVisible=&amp;quot;{Binding AppStatus.IsFlashSupported}&amp;quot;&lt;br /&gt;
    IsChecked=&amp;quot;{Binding AppStatus.SwitchFlashLight, Mode=TwoWay}&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource UBIKIconToggleButton}&amp;quot;&lt;br /&gt;
    SymbolSize=&amp;quot;20&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;controls:CheckBox.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger&lt;br /&gt;
            Binding=&amp;quot;{Binding AppStatus.IsFlashEnabled}&amp;quot;&lt;br /&gt;
            TargetType=&amp;quot;controls:CheckBox&amp;quot;&lt;br /&gt;
            Value=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;Background&amp;quot; Value=&amp;quot;{StaticResource UBIKAccentColor}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
   &amp;lt;/controls:CheckBox.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:CheckBox&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;br /&gt;
&lt;br /&gt;
== Performance ==&lt;br /&gt;
To get a good performance in the app UI when using your Xaml customizings, it is recommended to try the following.&lt;br /&gt;
* Always keep your UI structure simple. Choose the most efficient layouts for the scenarios and avoid unnecessary UI elements. Please refer to [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/performance#choose-the-correct-layout &amp;quot;choose the correct layout&amp;quot;] and [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/performance#reduce-the-visual-tree-size &amp;quot;reduce the visual tree size&amp;quot;];&lt;br /&gt;
* Turn on [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/layouts/layout-compression layout compression] on wrapping elements that don't have any visual parameters set (reasons stated in the linked documentation).&lt;br /&gt;
{{Hint|There is a default &amp;quot;HeadlessLayout&amp;quot; style available in the app you can use on elements such as Grids, StackLayouts, ContentViews, etc. It turns on [[Xamarin_XAML#Layout_compression_examples|layout compression]] on the applied elements in Xamarin.Android (since we find it not worth the effort in Xamarin.iOS).}}&lt;br /&gt;
{{Attention|If possible, one should always favor designing the UI with less wrapping elements over turning on layout compression on unnecessary ones.}}&lt;br /&gt;
&lt;br /&gt;
=== General performance tips ===&lt;br /&gt;
* Reduce number of views per page&lt;br /&gt;
* Don’t bind things if they could be set static easily&lt;br /&gt;
* If you do not change the default, don’t set it explicit. For example, [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.StackLayout.Orientation?view=xamarin-forms Orientation of StackLayout] is “Vertical” by default. No need to set it manually if you don’t want to change it.&lt;br /&gt;
* Transparency is expensive.&lt;br /&gt;
* Do not put ListViews into ScrollViews.&lt;br /&gt;
* To stack elements, create a grid and add them to the same cell one after another. It’s cheaper than RelativeLayout.&lt;br /&gt;
* Use Margins instead of Paddings.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;br /&gt;
&lt;br /&gt;
=== Layouts ===&lt;br /&gt;
* Choose correct Layout, e.g. no need to add a StackLayout if it only has 1 child.&lt;br /&gt;
* [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/layouts/layout-options LayoutOptions].Fill or .FillAndExpand are best choice in most cases. And they are already default, so no need to set.&lt;br /&gt;
* Autosize of rows and columns in grids should used as few as possible.&lt;br /&gt;
* RelativeLayout is very expensive. Try to avoid.&lt;br /&gt;
* In StackLayout, make sure there is only 1 LayoutOptions Expand.&lt;br /&gt;
&lt;br /&gt;
=== Labels ===&lt;br /&gt;
* Use [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/label#formatted-text FormattedText] instead of multiple labels.&lt;br /&gt;
* Use [https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.linebreakmode?view=xamarin-forms Linebreakmode] NoWrap (which is already the default).&lt;br /&gt;
* Avoid [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.Label.VerticalTextAlignment?view=xamarin-forms VerticalTextAlignment]. Anyway, if needed, use VerticalTextAligment instead of &lt;br /&gt;
VerticalOptions.&lt;br /&gt;
* Use the &amp;quot;TextTransform&amp;quot; attribute to convert the value of the &amp;quot;Text&amp;quot; attribute to either uppercase or lowercase.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Label&lt;br /&gt;
      TextTransform=&amp;quot;Uppercase&amp;quot;&lt;br /&gt;
      Text=&amp;quot;{Binding Properties.AllItems[DESCR].DisplayValue}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Images ===&lt;br /&gt;
* Provide images in optimized width and size. Provide multiple resolutions for different usage.&lt;br /&gt;
* Set [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.Image.IsOpaque?view=xamarin-forms IsOpaque] to true if image is opaque.&lt;br /&gt;
&lt;br /&gt;
=== Layout compression examples ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView ControlTemplate=&amp;quot;{DynamicResource ChangedSymbol}&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The code above removes one wrapping element added automatically by the ContentView and demonstrates a good reason to use layout compression because it can not be avoided otherwise.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid Margin=&amp;quot;2&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label Margin=&amp;quot;5&amp;quot; Text=&amp;quot;{Binding Title}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This example, on the other hand, demonstrates a bad usage of layout compression because it can be easily achieved by better designs such as using only the Label with a merged margin.&lt;br /&gt;
&lt;br /&gt;
Sometimes the content inside a compressed layout appears on a wrong z-index level. For eample:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;BoxView CornerRadius=&amp;quot;14&amp;quot; HeightRequest=&amp;quot;28&amp;quot; WidthRequest=&amp;quot;28&amp;quot; Color=&amp;quot;Red&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;ContentView ControlTemplate=&amp;quot;{DynamicResource Badge}&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label Text=&amp;quot;{Binding Title}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView &amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
According to the order of the BoxView and the Label, the latter should appear on top of the former (later ones have higher z-index levels). However, this can be disturbed by layout compression, causing the exact opposite.&lt;br /&gt;
In this case, you can add a &amp;lt;code&amp;gt;xmlns:android=&amp;quot;clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core&amp;quot;&amp;lt;/code&amp;gt; namespace to your Xaml file and manually elevate the Label by specifying &amp;lt;code&amp;gt;android:VisualElement.Elevation=&amp;quot;X&amp;quot;&amp;lt;/code&amp;gt; on it accordingly (X is the delta of the z-index level you want).&lt;br /&gt;
&lt;br /&gt;
=== SfListViewExt ===&lt;br /&gt;
For performance reasons, we created an extended version of the Syncfusion SfListView control and it should be used for all lists in customizings. You need to add a namespace like &amp;lt;code&amp;gt;xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;lt;/code&amp;gt; to your Xaml file and use it like &amp;lt;code&amp;gt;&amp;lt;controls:SfListViewExt ... /&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{{Hint|Technically speaking, SfListViewExt informs item view models when their corresponding item views appear on / disappear from the screen. This way, view models can skip a lot of unnecessary work (on the UI) when their views are not visible. '''If SfListView is used instead, the item views will not reflect content changes until the page is reloaded/refreshed.'''}}&lt;br /&gt;
&lt;br /&gt;
It is possible to configure the ListView, that the ScrollPosition is remembered when navigating away from the page, to do so, the property RembemberScrollPosition needs to be set to true. If unset, the value defaults to false and the scroll positions are not remembered.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt RememberScrollPosition=&amp;quot;True&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Delay and LazyLoading ===&lt;br /&gt;
{{Attention|Although both properties can be set in XAML on the two controls, this should not be done. When both the LazyLoading and Delay properties are set, the Delay property is ignored in the code-behind, as otherwise it could lead to unexpected behavior and, in the worst case, result in performance degradation.}}&lt;br /&gt;
&lt;br /&gt;
==== Delay in UBIKContentView and ContentControl {{Version/MobileSince|5.1}} ====&lt;br /&gt;
More complex UIs create a delay in rendering which leads to a feeling of &amp;quot;unresponsiveness&amp;quot; when navigating through the client. This is because the app loads and displays everything at once, leading to a larger delay between triggering navigation and completion of page loading.&lt;br /&gt;
 &lt;br /&gt;
While the complexity of the UI directly affects the time taken to render it, the experience of responsiveness can be somewhat improved by actually adding a delay between the loading of the content page, and actual data content (properties, children, etc). By not loading both at once, resources are freed up in the app, leading to a quicker loading of the basic page. The content then loads in at its normal speed.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Starting from version 5.1, a small delay was introduced in the content heavy pages (child page, document page and query page). However, additional delays can also be applied to the custom UI at will, using a new property added to two existing controls used 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.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! UBIKContentView&lt;br /&gt;
! ContentControl&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView &lt;br /&gt;
    Delay=&amp;quot;50&amp;quot; &lt;br /&gt;
    Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ContentControl &lt;br /&gt;
    Delay=&amp;quot;50&amp;quot; &lt;br /&gt;
    ContentTemplate=&amp;quot;{Binding [UBIKNavigationBar], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Hint|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.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Delay applies ✅&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView Delay=&amp;quot;50&amp;quot; Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot; ConverterParameter=&amp;quot;UBIKChildArea&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Delay doesn't apply ❌&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView Delay=&amp;quot;50&amp;quot; Content=&amp;quot;{Binding [UBIKChildArea], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Lazy Loading in UBIKContentView and ContentControl {{Version/MobileSince|5.1}} ====&lt;br /&gt;
&lt;br /&gt;
To further improve performance, it is now possible to apply LazyLoading to UBIKContentView and ContentControl. &lt;br /&gt;
&lt;br /&gt;
When a ContentTemplate is assigned to either of these controls and the LazyLoading property is set to true, the content is only loaded when it is explicitly requested. The difference between this and simply controlling the IsVisible condition is that in the latter, resources are still consumed in constructing the UI element, even though it is not shown. Note that Lazy loading requires a trigger to determine when the content should be loaded, and the biggest benefit is experienced when complex elements, especially those hosting a ListView or some kind of object/property collection, are lazy-loaded. &lt;br /&gt;
&lt;br /&gt;
UBIKTabView is optimized to make use of the LazyLoading attribute when it is applied to tab content. Additionally, usage outside of UBIKTabView is possible, as the loading can be triggered as a behavior attached to any other control, such as a button with an IsClicked behavior handler. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''UBIKTabView with LazyLoading'''&lt;br /&gt;
&lt;br /&gt;
When used in combination with UBIKTabView (by including the LazyLoading=True attribute on any UBIKContentView or ContentControl content of a tab item, as is now standard {{Version/MobileSince|5.1}}), only the content of the selected tab is rendered (by default, the first tab). The content of non-selected tabs is not. When switching tabs, UBIKTabView takes care of triggering the rendering of the content for the newly selected tab. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! UBIKContentView&lt;br /&gt;
! ContentControl&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;controls:UBIKContentView &lt;br /&gt;
            Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot; &lt;br /&gt;
            ConverterParameter=&amp;quot;UBIKPropertyArea&amp;quot; &lt;br /&gt;
            LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
 &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;controls:ContentControl &lt;br /&gt;
            ContentTemplate=&amp;quot;{DynamicResource MyTemplate}&amp;quot;&lt;br /&gt;
            LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
 &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Using another control as a trigger for lazy loading'''&lt;br /&gt;
&lt;br /&gt;
Other controls (e.g., Button, CheckBox, etc.) can also serve as triggers for lazy loading. The benefit of this is that LazyLoading can still be applied to a complex UBIKContentView or ContentControl that is not hosted within a UBIKTabView. &lt;br /&gt;
&lt;br /&gt;
And example of a usecase is a togglebutton that reveals a section of content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;Grid RowDefinitions=&amp;quot;*,50,*&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;Button&lt;br /&gt;
            x:Name=&amp;quot;LoadDocuments&amp;quot;&lt;br /&gt;
            Grid.Row=&amp;quot;1&amp;quot;&lt;br /&gt;
            HeightRequest=&amp;quot;50&amp;quot;&lt;br /&gt;
            HorizontalOptions=&amp;quot;Center&amp;quot;&lt;br /&gt;
            Text=&amp;quot;LazyLoadDocuments&amp;quot;&lt;br /&gt;
            WidthRequest=&amp;quot;200&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Button.Behaviors&amp;gt;&lt;br /&gt;
                &amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;Clicked&amp;quot;&amp;gt;&lt;br /&gt;
                    &amp;lt;behaviors:InvokeMethodAction MethodName=&amp;quot;TriggerLazyLoad&amp;quot; TargetObject=&amp;quot;{Binding Source={x:Reference DocumentsAreaLoader}}&amp;quot; /&amp;gt;&lt;br /&gt;
                &amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&lt;br /&gt;
            &amp;lt;/Button.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;/Button&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;controls:UBIKContentView&lt;br /&gt;
            x:Name=&amp;quot;DocumentsAreaLoader&amp;quot;&lt;br /&gt;
            Grid.Row=&amp;quot;2&amp;quot;&lt;br /&gt;
            Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot;&lt;br /&gt;
            ConverterParameter=&amp;quot;UBIKDocumentArea&amp;quot;&lt;br /&gt;
            LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Known issues =&lt;br /&gt;
&lt;br /&gt;
=== Headlesslayout style in custom UBIKThemes causing problems ===&lt;br /&gt;
&lt;br /&gt;
In our default '''UBIKThemes''', we are currently using this style for a headless layout:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Style x:Key=&amp;quot;HeadlessLayout&amp;quot; TargetType=&amp;quot;Layout&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Setter Property=&amp;quot;CompressedLayout.IsHeadless&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;Setter.Value&amp;gt;&lt;br /&gt;
            &amp;lt;OnPlatform&lt;br /&gt;
                x:TypeArguments=&amp;quot;x:Boolean&amp;quot;&lt;br /&gt;
                Android=&amp;quot;True&amp;quot;&lt;br /&gt;
                WinPhone=&amp;quot;False&amp;quot;&lt;br /&gt;
                iOS=&amp;quot;False&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/Setter.Value&amp;gt;&lt;br /&gt;
    &amp;lt;/Setter&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
This style is used for better UI performance on Android.&lt;br /&gt;
Using this style in a '''custom UBIKThemes''' could cause an exception &amp;amp; an app crash, or some objects to disappear.&lt;br /&gt;
The best case would be to '''not''' include it in the custom themes file, as it's unnecessary if you don't want to make any changes here.&lt;br /&gt;
&lt;br /&gt;
'''This issue is only known on Android tablet devices.'''&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== DataTrigger Issues ===&lt;br /&gt;
==== Conflicting Triggers ====&lt;br /&gt;
DataTriggers in Mobile function better than the equivalent DataTriggerBehavior in UWP as they automatically handle the opposite case when a Boolean attribute value is set. This means that if a boolean DataTrigger is set, such as IsVisible=True, the False visibility will automatically be set if the Binding/Value condition is not met.&lt;br /&gt;
&lt;br /&gt;
However, this means that stacking multiple DataTriggers on the same attribute can lead to unexpected results. For this reason, it is recommended to use as few DataTriggers as possible. &lt;br /&gt;
* Avoid setting the same attribute more than once; do not set the same value as a default attribute and in the DataTrigger (ControlTemplate in the below example).&lt;br /&gt;
* Ideally, use only DataTriggers without a default ControlTemplate. This ensures that content is created only after the trigger evaluation is complete. If a default ControlTemplate is set, it is always loaded immediately, even if another template is applied right after.&lt;br /&gt;
* It is acceptable, but not recommended, to combine a single DataTrigger with an opposite default value, but only if the default value is different from all values set in triggers.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Don't Do&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot; ControlTemplate=&amp;quot;{StaticResource SelListTemplate}&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource SelListTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Instead Do&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource SelListTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Acceptable, but not recommended&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot; ControlTemplate=&amp;quot;{StaticResource SelListTemplate}&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== DataTrigger to set Footer Properties in a ListView ====&lt;br /&gt;
&lt;br /&gt;
When using a DataTrigger to set the properties of a footer for a ListView, the sequence of the properties inside the DataTrigger might matter in some cases.&lt;br /&gt;
It seems to occur since Version 4.4 due to a Syncfusion update and could lead to the page not being rendered properly and appearing empty.&lt;br /&gt;
&lt;br /&gt;
If you encounter such an issue, please workaround by adding the IsStickyFooter Property Setter on top inside the DataTrigger.&lt;br /&gt;
Also, new customizings should consider this workaround as a preventive action.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS DOESN'T WORK IN CERTAIN CASES --&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt ...&amp;gt;&lt;br /&gt;
	&amp;lt;controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
		&amp;lt;DataTrigger TargetType=&amp;quot;controls:SfListViewExt&amp;quot; Binding=&amp;quot;{Binding Title}&amp;quot; Value=&amp;quot;Administration&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterTemplate&amp;quot; Value=&amp;quot;{DynamicResource AddLoginFooter}&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterSize&amp;quot; Value=&amp;quot;64&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;IsStickyFooter&amp;quot; Value=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
	&amp;lt;/controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt ...&amp;gt;&lt;br /&gt;
	&amp;lt;controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
		&amp;lt;DataTrigger TargetType=&amp;quot;controls:SfListViewExt&amp;quot; Binding=&amp;quot;{Binding Title}&amp;quot; Value=&amp;quot;Administration&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;IsStickyFooter&amp;quot; Value=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterTemplate&amp;quot; Value=&amp;quot;{DynamicResource AddLoginFooter}&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterSize&amp;quot; Value=&amp;quot;64&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
	&amp;lt;/controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Incorrect glyphs may be shown on buttons ===&lt;br /&gt;
&lt;br /&gt;
When using glyphs on buttons in Mobile, sometimes a different glyph than the expected one will show up when viewing the app on Android.&lt;br /&gt;
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.)&lt;br /&gt;
&lt;br /&gt;
If you encounter this issue please workaround by supplying the icon through the FontImageSource property of the button.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Button Command=&amp;quot;{Binding BulkOperation.InvokeOnItemsCommand}&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;Button.ImageSource&amp;gt;&lt;br /&gt;
          &amp;lt;FontImageSource &lt;br /&gt;
               FontFamily=&amp;quot;{DynamicResource UBIKSymbols}&amp;quot;&lt;br /&gt;
               Glyph=&amp;quot;{x:Static resources:UBIKIcons.MobileDelete}&amp;quot;&lt;br /&gt;
               Color=&amp;quot;{DynamicResource UBIKDarkThemeColor}&amp;quot;&lt;br /&gt;
               Size=&amp;quot;22&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;/Button.ImageSource&amp;gt;&lt;br /&gt;
     &amp;lt;Button.CommandParameter&amp;gt;&lt;br /&gt;
          &amp;lt;classes:KeyValueList&amp;gt;&lt;br /&gt;
                    &amp;lt;classes:KeyValueParameter Key=&amp;quot;Command&amp;quot; Value=&amp;quot;DiscardContentCommand&amp;quot; /&amp;gt;&lt;br /&gt;
          &amp;lt;/classes:KeyValueList&amp;gt;&lt;br /&gt;
     &amp;lt;/Button.CommandParameter&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Buttons and gesture recognizers ===&lt;br /&gt;
In Mobile XAML, you can use gesture recognizers on many UI elements such as a Grid to enable the latter to interact with user inputs.&lt;br /&gt;
&lt;br /&gt;
However, we've already made quite a lot of experience that gesture recognizers do not always work on Android and iOS when used on a Button control.&lt;br /&gt;
For example, the following Button won't properly invoke the command on said platforms.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS DOESN'T WORK!!! --&amp;gt;&lt;br /&gt;
&amp;lt;Button ...&amp;gt;&lt;br /&gt;
    &amp;lt;Button.GestureRecognizers&amp;gt;&lt;br /&gt;
        &amp;lt;TapGestureRecognizer Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Button.GestureRecognizers&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Therefore, you should always seek alternatives for Buttons.&lt;br /&gt;
'''If only one command is needed''', use the standard Command property on the Button, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;Button Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Or if multiple commands are needed, use Behaviors '''instead''', e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS ALSO WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;Button xmlns:behaviors=&amp;quot;clr-namespace:UBIK.CPL.Behaviors;assembly=UBIK.CPL&amp;quot; ...&amp;gt;&lt;br /&gt;
    &amp;lt;Button.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; EventName=&amp;quot;Clicked&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding NavigateBackCommand}&amp;quot; EventName=&amp;quot;Clicked&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Button.Behaviors&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== No dynamic reloading of Document Viewer ===&lt;br /&gt;
[[File:PDFViewerFixWiki.JPG]]&lt;br /&gt;
&lt;br /&gt;
In a customizing that combines a single-selection list of documents with some kind of viewer (especially UBIKDocumentContentArea), it is generally the case that switching the document causes the document viewer to then appear blank. The technical reason is that the PDFViewer used in the UBIKDocumentContentArea is not reloaded once the document content is reloaded. &lt;br /&gt;
&lt;br /&gt;
An easy fix is to apply a DataTrigger that unloads the ContentView when the document content is null, as the ContentView is forced to rerender itself when the trigger condition is no longer met.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- Document Viewer --&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView &lt;br /&gt;
    x:Name=&amp;quot;DoucmentViewer&amp;quot; &lt;br /&gt;
    BindingContext=&amp;quot;{Binding SelectedItem, Source={x:Reference DocumentList}}&amp;quot;&lt;br /&gt;
    Content=&amp;quot;{Binding [UBIKDocumentContentArea], Source={x:Static services:TemplateService.Instance}}&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;controls:UBIKContentView.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger TargetType=&amp;quot;controls:UBIKContentView&amp;quot; Binding=&amp;quot;{Binding SelectedItem.DocumentViewModel.DocumentContent, Source={x:Reference DocumentList}, Converter={StaticResource NullToBool}}&amp;quot; Value=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;Content&amp;quot; Value=&amp;quot;{x:Null}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:UBIKContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:UBIKContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Issues with SfPullToRefresh in Mobile client {{Version/MobileSince|5.0}} ===&lt;br /&gt;
Due to a third-party issue, problems may occur on Mobile Android when using the SfPullToRefresh control in combination with the SfListViewExt. This can result in e.g. navigation or task interaction sometimes requiring multiple clicks.&lt;br /&gt;
In general, and due to more issues, it's not recommended to use the SfPullToRefresh control.&lt;br /&gt;
In our Mobile standard client, the PullToRefresh control has been replaced by a Refresh button in the Context Menu.&lt;br /&gt;
If you still decide to use SfPullToRefresh, there are a few points to consider:&lt;br /&gt;
&lt;br /&gt;
==== Avoid multiple SfPullToRefresh controls ====&lt;br /&gt;
To prevent an issue that causes the app to freeze, avoid placing more than one SfPullToRefresh controls as siblings in a xaml hierarchy. If switching between contents in a SfPullToRefresh control is necessary use separate DataTemplates for the contents and use e.g. a DataTrigger to set one of them as the ControlTemplate of a ContentControl inside the SfPullToRefresh control. For an example, refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui#Avoid_multiple_SfPullToRefresh_controls|this link]].&lt;br /&gt;
&lt;br /&gt;
==== Avoid using SyncFusion ListViews directly in SfPullToRefresh controls ====&lt;br /&gt;
To prevent an issue on some Android devices that can cause some items in a SfListViewExt to be rendered incorrectly or not at all after triggering a PullToRefresh, avoid placing a SfListViewExt directly in a SfPullToRefresh control. Instead, wrap the ListView in a DataTemplate and use it in a ContentControl as a child of the SfPullToRefresh control. For an example, refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui#Avoid_using_SyncFusion_ListViews_directly_in_SfPullToRefresh_controls|this link]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= UBIK Go (Maui) Customizing Guide {{Version/MobileSince|5.1}} =&lt;br /&gt;
The change to Maui was taken as an opportunity both to visually update the client's default UI, and to add some quality of life changes aiming to reduce the amount of customizing needed.&lt;br /&gt;
&lt;br /&gt;
This section describes the standard UI and how to more easily customize it.&lt;br /&gt;
&lt;br /&gt;
For differences between Xamarin and Maui, please refer to the [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] article.&lt;br /&gt;
&lt;br /&gt;
== XAML Changes And Improvements ==&lt;br /&gt;
=== Styles and Resources ===&lt;br /&gt;
* Various color elements were renamed for neutrality. This will help clarify the purpose of color themes, and make it easier to keep track of in customizings. The old versions are still available but moved to the Obsolete section of UBIKThemes. &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
UBIKDarkTextColor --&amp;gt; UBIKRegularTextColor&lt;br /&gt;
UBIKDarkThemeColor --&amp;gt; UBIKMainThemeColor&lt;br /&gt;
UBIKLightTextColor --&amp;gt; UBIKMainThemeContrastColor&lt;br /&gt;
UBIKLightThemeColor --&amp;gt; UBIKBasePageColor&lt;br /&gt;
UBIKSubtleTextColor --&amp;gt; UBIKMediumTextColor&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Furthermore, effort was made to create 'contrast pairs' throughout the client; for example, UBIKMainThemeContrastColor is defined primarily for texts layered on elements of UBIKMainThemeColor (such as the title bar and text). &lt;br /&gt;
** The intention here is that this pair can be safely customized with no surprises, that cannot be guaranteed when using non-paired resource. For example, UBIKMainThemeContrastColor  and UBIKBasePageColor are both white in the default customizing, but if UBIKBasePageColor that were to be layered over UBIKMainThemeColor, it would result in a black-on-black issue in a dark theme customizing. &lt;br /&gt;
** The 'pairs' are; &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
UBIKMainThemeColor x UBIKMainThemeContrastColor&lt;br /&gt;
UBIKBasePageColor x UBIKRegularTextColor&lt;br /&gt;
UBIKButtonColor x UBIKButtonTextColor &lt;br /&gt;
UBIKButtonToggledColor x UBIKButtonToggledTextColor &lt;br /&gt;
UBIKPDFBaseColor x UBIKPDFTextColor&lt;br /&gt;
UBIKPDFSelectedToolColor x UBIKPDFSelectedToolTextColor&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* An effort was also made to avoid hardcoding numeric values on the client. Reusable resources were introduced instead; &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKButtonIconSize&amp;quot;&amp;gt;20&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKButtonPanelSize&amp;quot;&amp;gt;56&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKButtonSize&amp;quot;&amp;gt;44&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKListItemSize&amp;quot;&amp;gt;80&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;OnIdiom x:Key=&amp;quot;UBIKTileItemSize&amp;quot; x:TypeArguments=&amp;quot;Thickness&amp;quot; Default=&amp;quot;120&amp;quot; Phone=&amp;quot;100&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKCaptionTextSize&amp;quot;&amp;gt;14&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKButtonTextSize&amp;quot;&amp;gt;16&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKBodyTextSize&amp;quot;&amp;gt;16&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKTitleTextSize&amp;quot;&amp;gt;18&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKProgressBarHeight&amp;quot;&amp;gt;4&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;OnIdiom x:Key=&amp;quot;UBIKAdaptivePadding&amp;quot; x:TypeArguments=&amp;quot;Thickness&amp;quot; Default=&amp;quot;8,0&amp;quot; Phone=&amp;quot;4,0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;OnIdiom x:Key=&amp;quot;UBIKAdaptiveSpacing&amp;quot; x:TypeArguments=&amp;quot;x:Double&amp;quot; Default=&amp;quot;16&amp;quot; Phone=&amp;quot;8&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Regarding corporate colors, there are now additional resources to customize, aside from UBIKAccentColor;&lt;br /&gt;
** UBIKHighlightColor is a secondary accent color used for highlighting (eg. Multiselect mode or edited Property). It is also combined with UBIKAccentColor to form a gradient on the Authentication area.&lt;br /&gt;
* As in WinX {{Version/WinXSince|4.0}}, the various possible object status indicators were exported to a template called '''StatusIndicators''' located in UBIKThemes. These are now displayed at the top right of the item template, with a semi-opaque underlay in case the indicators appear over Title/SubTitle text.&lt;br /&gt;
* '''SfTextInputLayout''' was introduced and is used in various locations (Authentication, and properties).&lt;br /&gt;
* Default values for size, font, color, etc, were applied to various controls (Picker, Entry etc) for consistency.&lt;br /&gt;
* New '''SfListView''' styles were introduced and the originals moved to the Obsolete section.&lt;br /&gt;
** The listview now has a background color (UBIKMediumElementColor) and child item templates are now responsible for providing their own background color (UBIKBasePageColor that is applied to the Grid style UBIKItemBase). &lt;br /&gt;
*** The intention is to provide visual distinction from actual list items and empty list 'space'.&lt;br /&gt;
*** However, this will interfere with lists that rely on the SelectionBackground to highlight selection. This is solved in various ways throughout the UI, such as the SelectedIndicator used in UBIKChildItem, or the seperate SelectedItem and SelectedItemTemplate templates used in UBIKEditGuid.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adaptivity ===&lt;br /&gt;
- tbd.&lt;br /&gt;
&lt;br /&gt;
=== Layout and Functionality ===&lt;br /&gt;
* '''UBIKNavigationBar''' was introduced as a templatable alternative to the hardcoded context menu (accessed by the '...' button in the top right of the content area) and is fully customizable.&lt;br /&gt;
* Shadowed panels were introduced in place of floating buttons in the content tabs (Children, Properties). For consistency, both are located at the top of their respective tab content.&lt;br /&gt;
* '''UBIKChildItem''' was visually simplified. It now displays a simple icon, the Title (and MRO progress, if any) and Subtitle, and StatusIndicators in the top right. The progressbar is now displayed across the bottom of the item.&lt;br /&gt;
* '''UBIKTaskItem''' was completely redesigned. &lt;br /&gt;
** Aside from the StatusIndicators that appear in the top right uniformly on any context object, MRO-related ones (Task status (Finished, NA, or Not Necessary, Group Limit and Size, Previous Value, and Tech Indicator) appear on the top left contained in an SfChipGroup. &lt;br /&gt;
** The main area of the task item is previously split between Title and task-related input. On smaller devices or in editing regardless of screen size, the input area sizes becomes larger.&lt;br /&gt;
** The task related input now looks visually distinct with and without a value. UBIKButton(Text)Color is used for 'new' tasks, while UBIKButtonToggled(Text)Color is used for the 'value filled' state.&lt;br /&gt;
&lt;br /&gt;
=== File Structure ===&lt;br /&gt;
* '''UBIKRootItem''' (formerly UBIKMainItem) was introduced simply so that the Title, Area, and Item are organized together within the default and customizing folders. For compatibility, UBIKMainItem still exists in the default folder, however, be aware that the listview in UBIKRootArea now requests UBIKRootItem as the ItemTemplate by default.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;br /&gt;
&lt;br /&gt;
== Customizing Guides ==&lt;br /&gt;
=== Dark Theme ===&lt;br /&gt;
While UBIK Go does not include a Dark Theme by default, a lot of effort was invested in optimizing the color resources used throughout the app, so that a dark theme can be quickly customized. Furthermore, below is a list of recommended changes that result in a functional dark theme.&lt;br /&gt;
&lt;br /&gt;
'''In UBIKThemes:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;x:String x:Key=&amp;quot;TextFontFamily&amp;quot;&amp;gt;InterL&amp;lt;/x:String&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Replace the value for TextFontFamily with &amp;quot;InterL&amp;quot;; It is recommended to use a thinner font as white on black looks bolder than the inverse.&lt;br /&gt;
A 'Light' version of the default font font was added and can be accessed using the tag InterL.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKRegularTextColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKMediumTextColor&amp;quot;&amp;gt;#A3ffffff&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKBasePageColor&amp;quot;&amp;gt;#3a3a3c&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKMainThemeColor&amp;quot;&amp;gt;#2c2c2e&amp;lt;/Color&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKBorderColor&amp;quot;&amp;gt;#181719&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKElementColor&amp;quot;&amp;gt;#2c2c2e&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKLightElementColor&amp;quot;&amp;gt;#222124&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKFinishedElementColor&amp;quot;&amp;gt;#2a2a2b&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKOverlayElementColor&amp;quot;&amp;gt;#3D000000&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKImageOverlayColor&amp;quot;&amp;gt;#A3000000&amp;lt;/Color&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKButtonColor&amp;quot;&amp;gt;#181719&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKButtonTextColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt; &lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKButtonToggledColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKButtonToggledTextColor&amp;quot;&amp;gt;Black&amp;lt;/Color&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKPDFSelectedToolColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKPDFSelectedToolTextColor&amp;quot;&amp;gt;#292929&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKPDFTextColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKPDFBaseColor&amp;quot;&amp;gt;#181719&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Replace the above color resources (or similar).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Shadow&lt;br /&gt;
        x:Key=&amp;quot;UBIKPanelShadow&amp;quot;&lt;br /&gt;
        Brush=&amp;quot;Black&amp;quot; ... /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Change the value for the attribute Brush to &amp;quot;Black&amp;quot; to darken the panel shadows.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKProgressBarUndefinedStatuscolor&amp;quot;&amp;gt;#636365&amp;lt;/Color&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;Style x:Key=&amp;quot;UBIKProgressBar&amp;quot; TargetType=&amp;quot;controls:ProgressBar&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Setter Property=&amp;quot;StatusColor&amp;quot; Value=&amp;quot;{Binding ClassificationHandler.StatusColor, Converter={StaticResource IntToColor}, ConverterParameter={StaticResource UBIKProgressBarUndefinedStatuscolor}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The light theme uses UBIKElementColor for the progress bar color when none is defined on the server. However, this does not invert well in a dark theme. Therefore a new color resource should be introduced (&amp;quot;UBIKProgressBarUndefinedStatuscolor&amp;quot;) and used in the ConverterParameter of the IntToColor converter, which does not accept a color hex code directly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''In UBIKSplashArea:'''&lt;br /&gt;
&lt;br /&gt;
Follow the instructions embedded within the file to replace the splash image with a custom logo. Alternatively, simply adapt the Source attribute of the Image control to &amp;quot;splashlogoinverse.png&amp;quot; to apply an inversion of the UBIK Go logo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Increased FontSize ===&lt;br /&gt;
tbd.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Mobile_XAML&amp;diff=29371</id>
		<title>Mobile XAML</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Mobile_XAML&amp;diff=29371"/>
				<updated>2026-02-17T09:32:08Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* General performance tips */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The User Interface of the Mobile Clients (Android, iOS, Windows) can be fundamentally customized using custom XAML definitions. This customization process is heavily influenced by the [[XAML|XAML Customization Process on the WinX Client]].&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
There are predefined XAML templates available that can be customized. If no customizing is found, the default templates will be used.&lt;br /&gt;
&lt;br /&gt;
== Default XAMLs ==&lt;br /&gt;
All default XAML templates that can be customized are available through the Mobile Windows client. You need to go to the app settings and click the &amp;quot;Unpack default XAMLs&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
== Differences to WinX/UWP ==&lt;br /&gt;
* Since it's based on the Mobile XAML dialect, you CANNOT use any existing XAML customizings for the WinX/UWP app;&lt;br /&gt;
* Namespace definitions must include the corresponding assembly names;&lt;br /&gt;
* XAML template files have the extension name of '''xamlx''' instead of '''xaml''';&lt;br /&gt;
* You can deploy only those resources that you want to customize. (This is also the case for newer versions of WinX/UWP. {{Version/WinXSince|3.6}})&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Overriding default XAMLs=&lt;br /&gt;
On Windows (WinX/UWP), the &amp;lt;code&amp;gt;[App Package Folder]/LocalState/xaml/&amp;lt;/code&amp;gt; folder can be accessed by the user and the customized XAML files directly added. An alternative to this on all platforms (including Android, iOS, etc.) is to use the ''Import Customizing'' button in the app settings to import the templates, styles, images, etc. (file by file, or all files within a zip package). The changes should be reflected in the UI (except the current page) without restarting the app. After directly editing the customizings (Mobile Windows), you can also use the &amp;quot;Reload customizing&amp;quot; button without restarting the app.&lt;br /&gt;
&lt;br /&gt;
In the following, we're going to override the default light theme color of the app:&lt;br /&gt;
* Unpack the default XAMLs;&lt;br /&gt;
* Pick and deploy the default UBIKThemes.xamlx to the '''xaml''' folder inside the ''LocalState'' folder;&lt;br /&gt;
* Open it with the text editor of your choice and remove everything within the '''ResouceDictionary''' except &amp;lt;code&amp;gt;&amp;lt;Color x:Key=&amp;quot;UBIKLightThemeColor&amp;quot;&amp;gt;blue&amp;lt;/Color&amp;gt;&amp;lt;/code&amp;gt;;&lt;br /&gt;
* Save the changes and reload. You should see changes successfully implemented.&lt;br /&gt;
&lt;br /&gt;
{{Attention| For maintainability reasons, it's HIGHLY recommended to deploy only those XAML resources you want to override. For example, if you only want to customize the UBIKChildArea, don't deploy others like the UBIKMenuArea. If you only want to customize the UBIKChildItem, that's the only content you should include in the UBIKThemes.}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Custom Templates ==&lt;br /&gt;
Custom templates can be added, just like on the WinX/UWP client. Make sure to include all '''namespace definitions''' (as attributes of the '''ContentView''' tag), otherwise the custom template will not load.&lt;br /&gt;
&lt;br /&gt;
Similar to the ''UBIKThemes.xamlx'' file, custom or overridden templates start with a &amp;lt;code&amp;gt;&amp;lt;ContentView&amp;gt;&amp;lt;/code&amp;gt; tag containing all '''namespaces'''. &amp;lt;code&amp;gt;&amp;lt;ContentView.Resources&amp;gt;&amp;lt;/code&amp;gt; takes a '''ResourceDictionary''' and contains resources like references to converters. Finally, &amp;lt;code&amp;gt;&amp;lt;ContentView.Content&amp;gt;&amp;lt;/code&amp;gt; contains the actual layout content (it's best to start with a '''Grid'''). Again, don't forget to add namespaces that you need!&lt;br /&gt;
&lt;br /&gt;
Templates can also be defined in ''UBIKThemes.xamlx''. In this case, they need to be added into the &amp;lt;code&amp;gt;&amp;lt;ResourceDictionary&amp;gt;&amp;lt;/code&amp;gt; inside the &amp;lt;code&amp;gt;&amp;lt;ContentView.Resources&amp;gt;&amp;lt;/code&amp;gt; template as a &amp;lt;code&amp;gt;&amp;lt;DataTemplate&amp;gt;&amp;lt;/code&amp;gt;. Similarly, if you want to split up the templates into seperate files, you need to make sure to follow the steps mentioned above and get the content of the &amp;lt;code&amp;gt;&amp;lt;DataTemplate&amp;gt;&amp;lt;/code&amp;gt; into the &amp;lt;code&amp;gt;&amp;lt;ContentView.Content&amp;gt;&amp;lt;/code&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
{{Attention|Templates defined in separate files will override templates defined in the ''UBIKThemes.xamlx''!}}&lt;br /&gt;
&lt;br /&gt;
=== Bindings in resources ===&lt;br /&gt;
When using bindings such as [[Xamarin_XAML#Content_filtering|this]] in a resource located in a custom template, it is necessary to place the template in a UBIKContentView.&lt;br /&gt;
&lt;br /&gt;
{{Hint|Technically speaking, this is because bindable objects in the ResourceDictionary of a ContentView (the custom template) don't automatically inherit the BindingContext from the container/parent view. UBIKContentView is created to additionally do that.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- UBIKCustomView.xamlx --&amp;gt;&lt;br /&gt;
&amp;lt;ContentView...&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;controls:SfDataSourceExt... ItemsSource=&amp;quot;{Binding Children.Items}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Container where UBIKCustomView is placed, e.g. UBIKChildArea.xamlx --&amp;gt;&lt;br /&gt;
&amp;lt;ContentView...&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
    &amp;lt;controls:UBIKContentView Content=&amp;quot;{Binding [UBIKCustomView], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Adding Images ==&lt;br /&gt;
Images can't be loaded with the default '''Image''' tag, as the image is on different paths on each operating system.&lt;br /&gt;
&lt;br /&gt;
Therefore, there's a custom '''FileImage''' that internally overrides the default ''Image'' with two custom parameters:&lt;br /&gt;
* '''FolderName''' ...The name of the '''folder''' in the '''local folder'''. Only the first level inside the ''LocalState'' folder seems to work.&lt;br /&gt;
* '''FileName''' ...The name of the '''file''' in the said folder. &lt;br /&gt;
&lt;br /&gt;
Make sure to implement the proper namespace as well by adding&lt;br /&gt;
&amp;lt;code&amp;gt;xmlns:fimage=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;lt;/code&amp;gt; into the root item's attributes.&lt;br /&gt;
&lt;br /&gt;
Then, the image can be loaded using:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;fimage:FileImage FileName=&amp;quot;image.png&amp;quot; FolderName=&amp;quot;xaml&amp;quot;/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This snipped loads the image called '''image.png''' located in the '''xaml''' folder inside the ''LocalState''.&lt;br /&gt;
&lt;br /&gt;
Furthermore, the ''FileImage'' tag doesn't seem to support most attributes. Therefore place it inside a '''Grid''' to achieve a perfect layout.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Custom Icons ==&lt;br /&gt;
Moved to article [[XAML_Tips#Custom_Icons]].&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Converters==&lt;br /&gt;
:''Main Page: [[Converters_In_Mobile]]''&lt;br /&gt;
&lt;br /&gt;
They are used to convert specific data into some desired output, using custom logic. &lt;br /&gt;
&lt;br /&gt;
Consider the following example:&amp;lt;br/&amp;gt;&lt;br /&gt;
A label saying ''There are no children items available!'' should only be visible if the number of children-items is 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
&lt;br /&gt;
== Feature related ==&lt;br /&gt;
&lt;br /&gt;
=== Customizing Menu Button {{Version/XamarinSince|4.6.0}} === &lt;br /&gt;
&lt;br /&gt;
For the Mobile Client, it is possible to show/hide the '''Menu button''' of the client.&amp;lt;br&amp;gt;&lt;br /&gt;
To customize the visibility of the '''Menu button''' you have to edit the default XAML '''Themes''' file.&lt;br /&gt;
&lt;br /&gt;
* Search for &amp;quot;'''ShowMenuToolBar'''&amp;quot; in the Themes file.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
If there isn't any &amp;quot;'''ShowMenuToolBar'''&amp;quot; in your XAML Themes file, you just have to create one, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;x:Boolean x:Key=&amp;quot;ShowMenuToolBar&amp;quot;&amp;gt;true&amp;lt;/x:Boolean&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Set the value to &amp;quot;true&amp;quot; to show the '''Menu button''' (default value).&lt;br /&gt;
* Set the value to &amp;quot;false&amp;quot; to hide the '''Menu button'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=&amp;quot;300&amp;quot; heights=&amp;quot;500&amp;quot;&amp;gt;&lt;br /&gt;
File:menu_button_show.png|Menu Button shown&lt;br /&gt;
File:menu_button_hiddenV3.png|Menu Button hidden&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Content filtering ===&lt;br /&gt;
For the Mobile clients, an &amp;quot;SfDataSourceExt&amp;quot; type is available for filtering list of items using defined expressions.&amp;lt;br /&amp;gt;&lt;br /&gt;
The following example demonstrates how to filter for child items having certain property values. The filtered list and its count can be displayed in the UI.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ContentView&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&lt;br /&gt;
    ...&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;x:String x:Key=&amp;quot;Expresssion&amp;quot;&amp;gt;Item.Values[&amp;amp;quot;MP_YEAR&amp;amp;quot;].Contains(&amp;amp;quot;2019&amp;amp;quot;)&amp;lt;/x:String&amp;gt;&lt;br /&gt;
            &amp;lt;controls:SfDataSourceExt  x:Key=&amp;quot;FilteredList&amp;quot; Expression=&amp;quot;{StaticResource Expresssion}&amp;quot; ItemsSource=&amp;quot;{Binding Children.Items}&amp;quot; Unloaded=&amp;quot;{Binding SkipFiltering}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
    &amp;lt;StackLayout Orientation=&amp;quot;Vertical&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;Label Text=&amp;quot;{Binding DisplayItemsCount, Source={StaticResource FilteredList}}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt ItemsSource=&amp;quot;{Binding DisplayItems, Source={StaticResource FilteredList}}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/StackLayout&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Notes on using bindings in ResourceDictionary ====&lt;br /&gt;
In the example shown above, you can see &amp;lt;code&amp;gt;{Binding Children.Items}&amp;lt;/code&amp;gt; is used. For this to work, the SfDataSourceExt control inside the ResourceDictionary must inherit the binding data context properly.&lt;br /&gt;
* In this case, that data context comes from where this template (UBIKChildArea.xamlx) is used, namely the UBIKContentArea.xamlx;&lt;br /&gt;
* When referencing this template in a ContentView control, the binding data context is '''NOT''' automatically inherited by the controls inside the ResourceDictioinary;&lt;br /&gt;
* That's why we use a UBIKContentView control instead. You can find its example usage in the default UBIKContentArea.xamlx template.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Search ===&lt;br /&gt;
In the default UBIKMenuArea.xamlx (where the search UI is hosted), there are two commands associated with two events. See below.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;SearchBar ...&amp;gt;&lt;br /&gt;
    &amp;lt;SearchBar.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior&lt;br /&gt;
            Command=&amp;quot;{Binding FreeTextSearchCommand}&amp;quot;&lt;br /&gt;
            CommandParameter=&amp;quot;{Binding Path=Text, Source={x:Reference SearchField}}&amp;quot;&lt;br /&gt;
            EventName=&amp;quot;SearchButtonPressed&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding DelayedFreeTextSearchCommand}&amp;quot; EventName=&amp;quot;TextChanged&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/SearchBar.Behaviors&amp;gt;&lt;br /&gt;
&amp;lt;/SearchBar&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The one for &amp;lt;code&amp;gt;SearchButtonPressed&amp;lt;/code&amp;gt; is responsible for executing searches after the user confirms the input (e.g. pressing {{{keypress|Enter}}} or the search button).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The one for &amp;lt;code&amp;gt;TextChanged&amp;lt;/code&amp;gt; is responsible for the &amp;quot;search as you type&amp;quot; behavior. Namely it triggers an automatic search shortly (half second) after the user stops changing the text in the search bar. It can be turned off by simply removing that particular behavior.&lt;br /&gt;
&lt;br /&gt;
=== DisplayViewCommand ===&lt;br /&gt;
This command can be used to [[Custom_View_(Client)|display custom views]].&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
=== Flashlight  {{Version/MobileSince|5.1.0}}  ===&lt;br /&gt;
For the Mobile clients, it is possible to control the system flashlight via customizing and switch it on or off.&lt;br /&gt;
&lt;br /&gt;
The available properties can, for example, be bound to a Switch or CheckBox, as demonstrated below. These properties allow you to:&lt;br /&gt;
* Determine whether the device supports flashlight functionality (IsFlashSupported)&lt;br /&gt;
* Check whether the flashlight is currently turned on or off (IsFlashEnabled)&lt;br /&gt;
* Toggle the flashlight on or off via user interaction (SwitchFlashLight) &lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
If an attempt is made to enable the flashlight on a device that does not provide flashlight support, no action is performed.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Switch&lt;br /&gt;
! controls:CheckBox&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Switch IsVisible=&amp;quot;{Binding AppStatus.IsFlashSupported}&amp;quot;&lt;br /&gt;
        IsToggled=&amp;quot;{Binding AppStatus.SwitchFlashLight, Mode=TwoWay}&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:CheckBox&lt;br /&gt;
    x:Name=&amp;quot;PropertyToggle&amp;quot;&lt;br /&gt;
    CheckSymbol=&amp;quot;&amp;amp;#x1F526;&amp;quot;&lt;br /&gt;
    IsVisible=&amp;quot;{Binding AppStatus.IsFlashSupported}&amp;quot;&lt;br /&gt;
    IsChecked=&amp;quot;{Binding AppStatus.SwitchFlashLight, Mode=TwoWay}&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource UBIKIconToggleButton}&amp;quot;&lt;br /&gt;
    SymbolSize=&amp;quot;20&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;controls:CheckBox.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger&lt;br /&gt;
            Binding=&amp;quot;{Binding AppStatus.IsFlashEnabled}&amp;quot;&lt;br /&gt;
            TargetType=&amp;quot;controls:CheckBox&amp;quot;&lt;br /&gt;
            Value=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;Background&amp;quot; Value=&amp;quot;{StaticResource UBIKAccentColor}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
   &amp;lt;/controls:CheckBox.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:CheckBox&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;br /&gt;
&lt;br /&gt;
== Performance ==&lt;br /&gt;
To get a good performance in the app UI when using your Xaml customizings, it is recommended to try the following.&lt;br /&gt;
* Always keep your UI structure simple. Choose the most efficient layouts for the scenarios and avoid unnecessary UI elements. Please refer to [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/performance#choose-the-correct-layout &amp;quot;choose the correct layout&amp;quot;] and [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/performance#reduce-the-visual-tree-size &amp;quot;reduce the visual tree size&amp;quot;];&lt;br /&gt;
* Turn on [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/layouts/layout-compression layout compression] on wrapping elements that don't have any visual parameters set (reasons stated in the linked documentation).&lt;br /&gt;
{{Hint|There is a default &amp;quot;HeadlessLayout&amp;quot; style available in the app you can use on elements such as Grids, StackLayouts, ContentViews, etc. It turns on [[Xamarin_XAML#Layout_compression_examples|layout compression]] on the applied elements in Xamarin.Android (since we find it not worth the effort in Xamarin.iOS).}}&lt;br /&gt;
{{Attention|If possible, one should always favor designing the UI with less wrapping elements over turning on layout compression on unnecessary ones.}}&lt;br /&gt;
&lt;br /&gt;
=== General performance tips ===&lt;br /&gt;
* Reduce number of views per page&lt;br /&gt;
* Don’t bind things if they could be set static easily&lt;br /&gt;
* If you do not change the default, don’t set it explicit. For example, [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.StackLayout.Orientation?view=xamarin-forms Orientation of StackLayout] is “Vertical” by default. No need to set it manually if you don’t want to change it.&lt;br /&gt;
* Transparency is expensive.&lt;br /&gt;
* Do not put ListViews into ScrollViews.&lt;br /&gt;
* To stack elements, create a grid and add them to the same cell one after another. It’s cheaper than RelativeLayout.&lt;br /&gt;
* Use Margins instead of Paddings.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;br /&gt;
&lt;br /&gt;
=== Layouts ===&lt;br /&gt;
* Choose correct Layout, e.g. no need to add a StackLayout if it only has 1 child.&lt;br /&gt;
* [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/layouts/layout-options LayoutOptions].Fill or .FillAndExpand are best choice in most cases. And they are already default, so no need to set.&lt;br /&gt;
* Autosize of rows and columns in grids should used as few as possible.&lt;br /&gt;
* RelativeLayout is very expensive. Try to avoid.&lt;br /&gt;
* In StackLayout, make sure there is only 1 LayoutOptions Expand.&lt;br /&gt;
&lt;br /&gt;
=== Labels ===&lt;br /&gt;
* Use [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/label#formatted-text FormattedText] instead of multiple labels.&lt;br /&gt;
* Use [https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.linebreakmode?view=xamarin-forms Linebreakmode] NoWrap (which is already the default).&lt;br /&gt;
* Avoid [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.Label.VerticalTextAlignment?view=xamarin-forms VerticalTextAlignment]. Anyway, if needed, use VerticalTextAligment instead of &lt;br /&gt;
VerticalOptions.&lt;br /&gt;
* Use the &amp;quot;TextTransform&amp;quot; attribute to convert the value of the &amp;quot;Text&amp;quot; attribute to either uppercase or lowercase.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Label&lt;br /&gt;
      TextTransform=&amp;quot;Uppercase&amp;quot;&lt;br /&gt;
      Text=&amp;quot;{Binding Properties.AllItems[DESCR].DisplayValue}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Images ===&lt;br /&gt;
* Provide images in optimized width and size. Provide multiple resolutions for different usage.&lt;br /&gt;
* Set [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.Image.IsOpaque?view=xamarin-forms IsOpaque] to true if image is opaque.&lt;br /&gt;
&lt;br /&gt;
=== Layout compression examples ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView ControlTemplate=&amp;quot;{DynamicResource ChangedSymbol}&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The code above removes one wrapping element added automatically by the ContentView and demonstrates a good reason to use layout compression because it can not be avoided otherwise.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid Margin=&amp;quot;2&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label Margin=&amp;quot;5&amp;quot; Text=&amp;quot;{Binding Title}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This example, on the other hand, demonstrates a bad usage of layout compression because it can be easily achieved by better designs such as using only the Label with a merged margin.&lt;br /&gt;
&lt;br /&gt;
Sometimes the content inside a compressed layout appears on a wrong z-index level. For eample:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;BoxView CornerRadius=&amp;quot;14&amp;quot; HeightRequest=&amp;quot;28&amp;quot; WidthRequest=&amp;quot;28&amp;quot; Color=&amp;quot;Red&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;ContentView ControlTemplate=&amp;quot;{DynamicResource Badge}&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label Text=&amp;quot;{Binding Title}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView &amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
According to the order of the BoxView and the Label, the latter should appear on top of the former (later ones have higher z-index levels). However, this can be disturbed by layout compression, causing the exact opposite.&lt;br /&gt;
In this case, you can add a &amp;lt;code&amp;gt;xmlns:android=&amp;quot;clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core&amp;quot;&amp;lt;/code&amp;gt; namespace to your Xaml file and manually elevate the Label by specifying &amp;lt;code&amp;gt;android:VisualElement.Elevation=&amp;quot;X&amp;quot;&amp;lt;/code&amp;gt; on it accordingly (X is the delta of the z-index level you want).&lt;br /&gt;
&lt;br /&gt;
=== SfListViewExt ===&lt;br /&gt;
For performance reasons, we created an extended version of the Syncfusion SfListView control and it should be used for all lists in customizings. You need to add a namespace like &amp;lt;code&amp;gt;xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;lt;/code&amp;gt; to your Xaml file and use it like &amp;lt;code&amp;gt;&amp;lt;controls:SfListViewExt ... /&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{{Hint|Technically speaking, SfListViewExt informs item view models when their corresponding item views appear on / disappear from the screen. This way, view models can skip a lot of unnecessary work (on the UI) when their views are not visible. '''If SfListView is used instead, the item views will not reflect content changes until the page is reloaded/refreshed.'''}}&lt;br /&gt;
&lt;br /&gt;
It is possible to configure the ListView, that the ScrollPosition is remembered when navigating away from the page, to do so, the property RembemberScrollPosition needs to be set to true. If unset, the value defaults to false and the scroll positions are not remembered.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt RememberScrollPosition=&amp;quot;True&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Delay and LazyLoading ===&lt;br /&gt;
{{Attention|Although both properties can be set in XAML on the two controls, this should not be done. When both the LazyLoading and Delay properties are set, the Delay property is ignored in the code-behind, as otherwise it could lead to unexpected behavior and, in the worst case, result in performance degradation.}}&lt;br /&gt;
&lt;br /&gt;
==== Delay in UBIKContentView and ContentControl {{Version/MobileSince|5.1}} ====&lt;br /&gt;
More complex UIs create a delay in rendering which leads to a feeling of &amp;quot;unresponsiveness&amp;quot; when navigating through the client. This is because the app loads and displays everything at once, leading to a larger delay between triggering navigation and completion of page loading.&lt;br /&gt;
 &lt;br /&gt;
While the complexity of the UI directly affects the time taken to render it, the experience of responsiveness can be somewhat improved by actually adding a delay between the loading of the content page, and actual data content (properties, children, etc). By not loading both at once, resources are freed up in the app, leading to a quicker loading of the basic page. The content then loads in at its normal speed.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Starting from version 5.1, a small delay was introduced in the content heavy pages (child page, document page and query page). However, additional delays can also be applied to the custom UI at will, using a new property added to two existing controls used 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.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! UBIKContentView&lt;br /&gt;
! ContentControl&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView &lt;br /&gt;
    Delay=&amp;quot;50&amp;quot; &lt;br /&gt;
    Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ContentControl &lt;br /&gt;
    Delay=&amp;quot;50&amp;quot; &lt;br /&gt;
    ContentTemplate=&amp;quot;{Binding [UBIKNavigationBar], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Hint|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.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Delay applies ✅&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView Delay=&amp;quot;50&amp;quot; Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot; ConverterParameter=&amp;quot;UBIKChildArea&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Delay doesn't apply ❌&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView Delay=&amp;quot;50&amp;quot; Content=&amp;quot;{Binding [UBIKChildArea], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Lazy Loading in UBIKContentView and ContentControl {{Version/MobileSince|5.1}} ====&lt;br /&gt;
&lt;br /&gt;
To further improve performance, it is now possible to apply LazyLoading to UBIKContentView and ContentControl. &lt;br /&gt;
&lt;br /&gt;
When a ContentTemplate is assigned to either of these controls and the LazyLoading property is set to true, the content is only loaded when it is explicitly requested. The difference between this and simply controlling the IsVisible condition is that in the latter, resources are still consumed in constructing the UI element, even though it is not shown. Note that Lazy loading requires a trigger to determine when the content should be loaded, and the biggest benefit is experienced when complex elements, especially those hosting a ListView or some kind of object/property collection, are lazy-loaded. &lt;br /&gt;
&lt;br /&gt;
UBIKTabView is optimized to make use of the LazyLoading attribute when it is applied to tab content. Additionally, usage outside of UBIKTabView is possible, as the loading can be triggered as a behavior attached to any other control, such as a button with an IsClicked behavior handler. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''UBIKTabView with LazyLoading'''&lt;br /&gt;
&lt;br /&gt;
When used in combination with UBIKTabView (by including the LazyLoading=True attribute on any UBIKContentView or ContentControl content of a tab item, as is now standard {{Version/MobileSince|5.1}}), only the content of the selected tab is rendered (by default, the first tab). The content of non-selected tabs is not. When switching tabs, UBIKTabView takes care of triggering the rendering of the content for the newly selected tab. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! UBIKContentView&lt;br /&gt;
! ContentControl&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;controls:UBIKContentView &lt;br /&gt;
            Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot; &lt;br /&gt;
            ConverterParameter=&amp;quot;UBIKPropertyArea&amp;quot; &lt;br /&gt;
            LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
 &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;controls:ContentControl &lt;br /&gt;
            ContentTemplate=&amp;quot;{DynamicResource MyTemplate}&amp;quot;&lt;br /&gt;
            LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
 &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Using another control as a trigger for lazy loading'''&lt;br /&gt;
&lt;br /&gt;
Other controls (e.g., Button, CheckBox, etc.) can also serve as triggers for lazy loading. The benefit of this is that LazyLoading can still be applied to a complex UBIKContentView or ContentControl that is not hosted within a UBIKTabView. &lt;br /&gt;
&lt;br /&gt;
And example of a usecase is a togglebutton that reveals a section of content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;Grid RowDefinitions=&amp;quot;*,50,*&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;Button&lt;br /&gt;
            x:Name=&amp;quot;LoadDocuments&amp;quot;&lt;br /&gt;
            Grid.Row=&amp;quot;1&amp;quot;&lt;br /&gt;
            HeightRequest=&amp;quot;50&amp;quot;&lt;br /&gt;
            HorizontalOptions=&amp;quot;Center&amp;quot;&lt;br /&gt;
            Text=&amp;quot;LazyLoadDocuments&amp;quot;&lt;br /&gt;
            WidthRequest=&amp;quot;200&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Button.Behaviors&amp;gt;&lt;br /&gt;
                &amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;Clicked&amp;quot;&amp;gt;&lt;br /&gt;
                    &amp;lt;behaviors:InvokeMethodAction MethodName=&amp;quot;TriggerLazyLoad&amp;quot; TargetObject=&amp;quot;{Binding Source={x:Reference DocumentsAreaLoader}}&amp;quot; /&amp;gt;&lt;br /&gt;
                &amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&lt;br /&gt;
            &amp;lt;/Button.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;/Button&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;controls:UBIKContentView&lt;br /&gt;
            x:Name=&amp;quot;DocumentsAreaLoader&amp;quot;&lt;br /&gt;
            Grid.Row=&amp;quot;2&amp;quot;&lt;br /&gt;
            Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot;&lt;br /&gt;
            ConverterParameter=&amp;quot;UBIKDocumentArea&amp;quot;&lt;br /&gt;
            LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Known issues =&lt;br /&gt;
&lt;br /&gt;
=== Headlesslayout style in custom UBIKThemes causing problems ===&lt;br /&gt;
&lt;br /&gt;
In our default '''UBIKThemes''', we are currently using this style for a headless layout:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Style x:Key=&amp;quot;HeadlessLayout&amp;quot; TargetType=&amp;quot;Layout&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Setter Property=&amp;quot;CompressedLayout.IsHeadless&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;Setter.Value&amp;gt;&lt;br /&gt;
            &amp;lt;OnPlatform&lt;br /&gt;
                x:TypeArguments=&amp;quot;x:Boolean&amp;quot;&lt;br /&gt;
                Android=&amp;quot;True&amp;quot;&lt;br /&gt;
                WinPhone=&amp;quot;False&amp;quot;&lt;br /&gt;
                iOS=&amp;quot;False&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/Setter.Value&amp;gt;&lt;br /&gt;
    &amp;lt;/Setter&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
This style is used for better UI performance on Android.&lt;br /&gt;
Using this style in a '''custom UBIKThemes''' could cause an exception &amp;amp; an app crash, or some objects to disappear.&lt;br /&gt;
The best case would be to '''not''' include it in the custom themes file, as it's unnecessary if you don't want to make any changes here.&lt;br /&gt;
&lt;br /&gt;
'''This issue is only known on Android tablet devices.'''&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== DataTrigger Issues ===&lt;br /&gt;
==== Conflicting Triggers ====&lt;br /&gt;
DataTriggers in Mobile function better than the equivalent DataTriggerBehavior in UWP as they automatically handle the opposite case when a Boolean attribute value is set. This means that if a boolean DataTrigger is set, such as IsVisible=True, the False visibility will automatically be set if the Binding/Value condition is not met.&lt;br /&gt;
&lt;br /&gt;
However, this means that stacking multiple DataTriggers on the same attribute can lead to unexpected results. For this reason, it is recommended to use as few DataTriggers as possible. &lt;br /&gt;
* Avoid setting the same attribute more than once; do not set the same value as a default attribute and in the DataTrigger (ControlTemplate in the below example).&lt;br /&gt;
* Ideally, use only DataTriggers without a default ControlTemplate. This ensures that content is created only after the trigger evaluation is complete. If a default ControlTemplate is set, it is always loaded immediately, even if another template is applied right after.&lt;br /&gt;
* It is acceptable, but not recommended, to combine a single DataTrigger with an opposite default value, but only if the default value is different from all values set in triggers.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Don't Do&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot; ControlTemplate=&amp;quot;{StaticResource SelListTemplate}&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource SelListTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Instead Do&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource SelListTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Acceptable, but not recommended&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot; ControlTemplate=&amp;quot;{StaticResource SelListTemplate}&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== DataTrigger to set Footer Properties in a ListView ====&lt;br /&gt;
&lt;br /&gt;
When using a DataTrigger to set the properties of a footer for a ListView, the sequence of the properties inside the DataTrigger might matter in some cases.&lt;br /&gt;
It seems to occur since Version 4.4 due to a Syncfusion update and could lead to the page not being rendered properly and appearing empty.&lt;br /&gt;
&lt;br /&gt;
If you encounter such an issue, please workaround by adding the IsStickyFooter Property Setter on top inside the DataTrigger.&lt;br /&gt;
Also, new customizings should consider this workaround as a preventive action.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS DOESN'T WORK IN CERTAIN CASES --&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt ...&amp;gt;&lt;br /&gt;
	&amp;lt;controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
		&amp;lt;DataTrigger TargetType=&amp;quot;controls:SfListViewExt&amp;quot; Binding=&amp;quot;{Binding Title}&amp;quot; Value=&amp;quot;Administration&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterTemplate&amp;quot; Value=&amp;quot;{DynamicResource AddLoginFooter}&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterSize&amp;quot; Value=&amp;quot;64&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;IsStickyFooter&amp;quot; Value=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
	&amp;lt;/controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt ...&amp;gt;&lt;br /&gt;
	&amp;lt;controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
		&amp;lt;DataTrigger TargetType=&amp;quot;controls:SfListViewExt&amp;quot; Binding=&amp;quot;{Binding Title}&amp;quot; Value=&amp;quot;Administration&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;IsStickyFooter&amp;quot; Value=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterTemplate&amp;quot; Value=&amp;quot;{DynamicResource AddLoginFooter}&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterSize&amp;quot; Value=&amp;quot;64&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
	&amp;lt;/controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Incorrect glyphs may be shown on buttons ===&lt;br /&gt;
&lt;br /&gt;
When using glyphs on buttons in Mobile, sometimes a different glyph than the expected one will show up when viewing the app on Android.&lt;br /&gt;
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.)&lt;br /&gt;
&lt;br /&gt;
If you encounter this issue please workaround by supplying the icon through the FontImageSource property of the button.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Button Command=&amp;quot;{Binding BulkOperation.InvokeOnItemsCommand}&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;Button.ImageSource&amp;gt;&lt;br /&gt;
          &amp;lt;FontImageSource &lt;br /&gt;
               FontFamily=&amp;quot;{DynamicResource UBIKSymbols}&amp;quot;&lt;br /&gt;
               Glyph=&amp;quot;{x:Static resources:UBIKIcons.MobileDelete}&amp;quot;&lt;br /&gt;
               Color=&amp;quot;{DynamicResource UBIKDarkThemeColor}&amp;quot;&lt;br /&gt;
               Size=&amp;quot;22&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;/Button.ImageSource&amp;gt;&lt;br /&gt;
     &amp;lt;Button.CommandParameter&amp;gt;&lt;br /&gt;
          &amp;lt;classes:KeyValueList&amp;gt;&lt;br /&gt;
                    &amp;lt;classes:KeyValueParameter Key=&amp;quot;Command&amp;quot; Value=&amp;quot;DiscardContentCommand&amp;quot; /&amp;gt;&lt;br /&gt;
          &amp;lt;/classes:KeyValueList&amp;gt;&lt;br /&gt;
     &amp;lt;/Button.CommandParameter&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Buttons and gesture recognizers ===&lt;br /&gt;
In Mobile XAML, you can use gesture recognizers on many UI elements such as a Grid to enable the latter to interact with user inputs.&lt;br /&gt;
&lt;br /&gt;
However, we've already made quite a lot of experience that gesture recognizers do not always work on Android and iOS when used on a Button control.&lt;br /&gt;
For example, the following Button won't properly invoke the command on said platforms.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS DOESN'T WORK!!! --&amp;gt;&lt;br /&gt;
&amp;lt;Button ...&amp;gt;&lt;br /&gt;
    &amp;lt;Button.GestureRecognizers&amp;gt;&lt;br /&gt;
        &amp;lt;TapGestureRecognizer Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Button.GestureRecognizers&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Therefore, you should always seek alternatives for Buttons.&lt;br /&gt;
'''If only one command is needed''', use the standard Command property on the Button, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;Button Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Or if multiple commands are needed, use Behaviors '''instead''', e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS ALSO WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;Button xmlns:behaviors=&amp;quot;clr-namespace:UBIK.CPL.Behaviors;assembly=UBIK.CPL&amp;quot; ...&amp;gt;&lt;br /&gt;
    &amp;lt;Button.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; EventName=&amp;quot;Clicked&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding NavigateBackCommand}&amp;quot; EventName=&amp;quot;Clicked&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Button.Behaviors&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== No dynamic reloading of Document Viewer ===&lt;br /&gt;
[[File:PDFViewerFixWiki.JPG]]&lt;br /&gt;
&lt;br /&gt;
In a customizing that combines a single-selection list of documents with some kind of viewer (especially UBIKDocumentContentArea), it is generally the case that switching the document causes the document viewer to then appear blank. The technical reason is that the PDFViewer used in the UBIKDocumentContentArea is not reloaded once the document content is reloaded. &lt;br /&gt;
&lt;br /&gt;
An easy fix is to apply a DataTrigger that unloads the ContentView when the document content is null, as the ContentView is forced to rerender itself when the trigger condition is no longer met.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- Document Viewer --&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView &lt;br /&gt;
    x:Name=&amp;quot;DoucmentViewer&amp;quot; &lt;br /&gt;
    BindingContext=&amp;quot;{Binding SelectedItem, Source={x:Reference DocumentList}}&amp;quot;&lt;br /&gt;
    Content=&amp;quot;{Binding [UBIKDocumentContentArea], Source={x:Static services:TemplateService.Instance}}&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;controls:UBIKContentView.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger TargetType=&amp;quot;controls:UBIKContentView&amp;quot; Binding=&amp;quot;{Binding SelectedItem.DocumentViewModel.DocumentContent, Source={x:Reference DocumentList}, Converter={StaticResource NullToBool}}&amp;quot; Value=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;Content&amp;quot; Value=&amp;quot;{x:Null}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:UBIKContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:UBIKContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Issues with SfPullToRefresh in Mobile client {{Version/MobileSince|5.0}} ===&lt;br /&gt;
Due to a third-party issue, problems may occur on Mobile Android when using the SfPullToRefresh control in combination with the SfListViewExt. This can result in e.g. navigation or task interaction sometimes requiring multiple clicks.&lt;br /&gt;
In general, and due to more issues, it's not recommended to use the SfPullToRefresh control.&lt;br /&gt;
In our Mobile standard client, the PullToRefresh control has been replaced by a Refresh button in the Context Menu.&lt;br /&gt;
If you still decide to use SfPullToRefresh, there are a few points to consider:&lt;br /&gt;
&lt;br /&gt;
==== Avoid multiple SfPullToRefresh controls ====&lt;br /&gt;
To prevent an issue that causes the app to freeze, avoid placing more than one SfPullToRefresh controls as siblings in a xaml hierarchy. If switching between contents in a SfPullToRefresh control is necessary use separate DataTemplates for the contents and use e.g. a DataTrigger to set one of them as the ControlTemplate of a ContentControl inside the SfPullToRefresh control. For an example, refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui#Avoid_multiple_SfPullToRefresh_controls|this link]].&lt;br /&gt;
&lt;br /&gt;
==== Avoid using SyncFusion ListViews directly in SfPullToRefresh controls ====&lt;br /&gt;
To prevent an issue on some Android devices that can cause some items in a SfListViewExt to be rendered incorrectly or not at all after triggering a PullToRefresh, avoid placing a SfListViewExt directly in a SfPullToRefresh control. Instead, wrap the ListView in a DataTemplate and use it in a ContentControl as a child of the SfPullToRefresh control. For an example, refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui#Avoid_using_SyncFusion_ListViews_directly_in_SfPullToRefresh_controls|this link]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= UBIK Go (Maui) Customizing Guide {{Version/MobileSince|5.1}} =&lt;br /&gt;
The change to Maui was taken as an opportunity both to visually update the client's default UI, and to add some quality of life changes aiming to reduce the amount of customizing needed.&lt;br /&gt;
&lt;br /&gt;
This section describes the standard UI and how to more easily customize it.&lt;br /&gt;
&lt;br /&gt;
For differences between Xamarin and Maui, please refer to the [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] article.&lt;br /&gt;
&lt;br /&gt;
== XAML Changes And Improvements ==&lt;br /&gt;
=== Styles and Resources ===&lt;br /&gt;
* Various color elements were renamed for neutrality. This will help clarify the purpose of color themes, and make it easier to keep track of in customizings. The old versions are still available but moved to the Obsolete section of UBIKThemes. &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
UBIKDarkTextColor --&amp;gt; UBIKRegularTextColor&lt;br /&gt;
UBIKDarkThemeColor --&amp;gt; UBIKMainThemeColor&lt;br /&gt;
UBIKLightTextColor --&amp;gt; UBIKMainThemeContrastColor&lt;br /&gt;
UBIKLightThemeColor --&amp;gt; UBIKBasePageColor&lt;br /&gt;
UBIKSubtleTextColor --&amp;gt; UBIKMediumTextColor&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Furthermore, effort was made to create 'contrast pairs' throughout the client; for example, UBIKMainThemeContrastColor is defined primarily for texts layered on elements of UBIKMainThemeColor (such as the title bar and text). &lt;br /&gt;
** The intention here is that this pair can be safely customized with no surprises, that cannot be guaranteed when using non-paired resource. For example, UBIKMainThemeContrastColor  and UBIKBasePageColor are both white in the default customizing, but if UBIKBasePageColor that were to be layered over UBIKMainThemeColor, it would result in a black-on-black issue in a dark theme customizing. &lt;br /&gt;
** The 'pairs' are; &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
UBIKMainThemeColor x UBIKMainThemeContrastColor&lt;br /&gt;
UBIKBasePageColor x UBIKRegularTextColor&lt;br /&gt;
UBIKButtonColor x UBIKButtonTextColor &lt;br /&gt;
UBIKButtonToggledColor x UBIKButtonToggledTextColor &lt;br /&gt;
UBIKPDFBaseColor x UBIKPDFTextColor&lt;br /&gt;
UBIKPDFSelectedToolColor x UBIKPDFSelectedToolTextColor&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* An effort was also made to avoid hardcoding numeric values on the client. Reusable resources were introduced instead; &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKButtonIconSize&amp;quot;&amp;gt;20&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKButtonPanelSize&amp;quot;&amp;gt;56&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKButtonSize&amp;quot;&amp;gt;44&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKListItemSize&amp;quot;&amp;gt;80&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;OnIdiom x:Key=&amp;quot;UBIKTileItemSize&amp;quot; x:TypeArguments=&amp;quot;Thickness&amp;quot; Default=&amp;quot;120&amp;quot; Phone=&amp;quot;100&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKCaptionTextSize&amp;quot;&amp;gt;14&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKButtonTextSize&amp;quot;&amp;gt;16&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKBodyTextSize&amp;quot;&amp;gt;16&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKTitleTextSize&amp;quot;&amp;gt;18&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKProgressBarHeight&amp;quot;&amp;gt;4&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;OnIdiom x:Key=&amp;quot;UBIKAdaptivePadding&amp;quot; x:TypeArguments=&amp;quot;Thickness&amp;quot; Default=&amp;quot;8,0&amp;quot; Phone=&amp;quot;4,0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;OnIdiom x:Key=&amp;quot;UBIKAdaptiveSpacing&amp;quot; x:TypeArguments=&amp;quot;x:Double&amp;quot; Default=&amp;quot;16&amp;quot; Phone=&amp;quot;8&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Regarding corporate colors, there are now additional resources to customize, aside from UBIKAccentColor;&lt;br /&gt;
** UBIKHighlightColor is a secondary accent color used for highlighting (eg. Multiselect mode or edited Property). It is also combined with UBIKAccentColor to form a gradient on the Authentication area.&lt;br /&gt;
* As in WinX {{Version/WinXSince|4.0}}, the various possible object status indicators were exported to a template called '''StatusIndicators''' located in UBIKThemes. These are now displayed at the top right of the item template, with a semi-opaque underlay in case the indicators appear over Title/SubTitle text.&lt;br /&gt;
* '''SfTextInputLayout''' was introduced and is used in various locations (Authentication, and properties).&lt;br /&gt;
* Default values for size, font, color, etc, were applied to various controls (Picker, Entry etc) for consistency.&lt;br /&gt;
* New '''SfListView''' styles were introduced and the originals moved to the Obsolete section.&lt;br /&gt;
** The listview now has a background color (UBIKMediumElementColor) and child item templates are now responsible for providing their own background color (UBIKBasePageColor that is applied to the Grid style UBIKItemBase). &lt;br /&gt;
*** The intention is to provide visual distinction from actual list items and empty list 'space'.&lt;br /&gt;
*** However, this will interfere with lists that rely on the SelectionBackground to highlight selection. This is solved in various ways throughout the UI, such as the SelectedIndicator used in UBIKChildItem, or the seperate SelectedItem and SelectedItemTemplate templates used in UBIKEditGuid.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adaptivity ===&lt;br /&gt;
- tbd.&lt;br /&gt;
&lt;br /&gt;
=== Layout and Functionality ===&lt;br /&gt;
* '''UBIKNavigationBar''' was introduced as a templatable alternative to the hardcoded context menu (accessed by the '...' button in the top right of the content area) and is fully customizable.&lt;br /&gt;
* Shadowed panels were introduced in place of floating buttons in the content tabs (Children, Properties). For consistency, both are located at the top of their respective tab content.&lt;br /&gt;
* '''UBIKChildItem''' was visually simplified. It now displays a simple icon, the Title (and MRO progress, if any) and Subtitle, and StatusIndicators in the top right. The progressbar is now displayed across the bottom of the item.&lt;br /&gt;
* '''UBIKTaskItem''' was completely redesigned. &lt;br /&gt;
** Aside from the StatusIndicators that appear in the top right uniformly on any context object, MRO-related ones (Task status (Finished, NA, or Not Necessary, Group Limit and Size, Previous Value, and Tech Indicator) appear on the top left contained in an SfChipGroup. &lt;br /&gt;
** The main area of the task item is previously split between Title and task-related input. On smaller devices or in editing regardless of screen size, the input area sizes becomes larger.&lt;br /&gt;
** The task related input now looks visually distinct with and without a value. UBIKButton(Text)Color is used for 'new' tasks, while UBIKButtonToggled(Text)Color is used for the 'value filled' state.&lt;br /&gt;
&lt;br /&gt;
=== File Structure ===&lt;br /&gt;
* '''UBIKRootItem''' (formerly UBIKMainItem) was introduced simply so that the Title, Area, and Item are organized together within the default and customizing folders. For compatibility, UBIKMainItem still exists in the default folder, however, be aware that the listview in UBIKRootArea now requests UBIKRootItem as the ItemTemplate by default.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;br /&gt;
&lt;br /&gt;
== Customizing Guides ==&lt;br /&gt;
=== Dark Theme ===&lt;br /&gt;
While UBIK Go does not include a Dark Theme by default, a lot of effort was invested in optimizing the color resources used throughout the app, so that a dark theme can be quickly customized. Furthermore, below is a list of recommended changes that result in a functional dark theme.&lt;br /&gt;
&lt;br /&gt;
'''In UBIKThemes:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;x:String x:Key=&amp;quot;TextFontFamily&amp;quot;&amp;gt;InterL&amp;lt;/x:String&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Replace the value for TextFontFamily with &amp;quot;InterL&amp;quot;; It is recommended to use a thinner font as white on black looks bolder than the inverse.&lt;br /&gt;
A 'Light' version of the default font font was added and can be accessed using the tag InterL.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKRegularTextColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKMediumTextColor&amp;quot;&amp;gt;#A3ffffff&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKBasePageColor&amp;quot;&amp;gt;#3a3a3c&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKMainThemeColor&amp;quot;&amp;gt;#2c2c2e&amp;lt;/Color&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKBorderColor&amp;quot;&amp;gt;#181719&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKElementColor&amp;quot;&amp;gt;#2c2c2e&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKLightElementColor&amp;quot;&amp;gt;#222124&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKFinishedElementColor&amp;quot;&amp;gt;#2a2a2b&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKOverlayElementColor&amp;quot;&amp;gt;#3D000000&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKImageOverlayColor&amp;quot;&amp;gt;#A3000000&amp;lt;/Color&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKButtonColor&amp;quot;&amp;gt;#181719&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKButtonTextColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt; &lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKButtonToggledColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKButtonToggledTextColor&amp;quot;&amp;gt;Black&amp;lt;/Color&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKPDFSelectedToolColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKPDFSelectedToolTextColor&amp;quot;&amp;gt;#292929&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKPDFTextColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKPDFBaseColor&amp;quot;&amp;gt;#181719&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Replace the above color resources (or similar).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Shadow&lt;br /&gt;
        x:Key=&amp;quot;UBIKPanelShadow&amp;quot;&lt;br /&gt;
        Brush=&amp;quot;Black&amp;quot; ... /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Change the value for the attribute Brush to &amp;quot;Black&amp;quot; to darken the panel shadows.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKProgressBarUndefinedStatuscolor&amp;quot;&amp;gt;#636365&amp;lt;/Color&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;Style x:Key=&amp;quot;UBIKProgressBar&amp;quot; TargetType=&amp;quot;controls:ProgressBar&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Setter Property=&amp;quot;StatusColor&amp;quot; Value=&amp;quot;{Binding ClassificationHandler.StatusColor, Converter={StaticResource IntToColor}, ConverterParameter={StaticResource UBIKProgressBarUndefinedStatuscolor}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The light theme uses UBIKElementColor for the progress bar color when none is defined on the server. However, this does not invert well in a dark theme. Therefore a new color resource should be introduced (&amp;quot;UBIKProgressBarUndefinedStatuscolor&amp;quot;) and used in the ConverterParameter of the IntToColor converter, which does not accept a color hex code directly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''In UBIKSplashArea:'''&lt;br /&gt;
&lt;br /&gt;
Follow the instructions embedded within the file to replace the splash image with a custom logo. Alternatively, simply adapt the Source attribute of the Image control to &amp;quot;splashlogoinverse.png&amp;quot; to apply an inversion of the UBIK Go logo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Increased FontSize ===&lt;br /&gt;
tbd.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Mobile_XAML&amp;diff=29370</id>
		<title>Mobile XAML</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Mobile_XAML&amp;diff=29370"/>
				<updated>2026-02-17T09:31:37Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* Feature related */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The User Interface of the Mobile Clients (Android, iOS, Windows) can be fundamentally customized using custom XAML definitions. This customization process is heavily influenced by the [[XAML|XAML Customization Process on the WinX Client]].&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
There are predefined XAML templates available that can be customized. If no customizing is found, the default templates will be used.&lt;br /&gt;
&lt;br /&gt;
== Default XAMLs ==&lt;br /&gt;
All default XAML templates that can be customized are available through the Mobile Windows client. You need to go to the app settings and click the &amp;quot;Unpack default XAMLs&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
== Differences to WinX/UWP ==&lt;br /&gt;
* Since it's based on the Mobile XAML dialect, you CANNOT use any existing XAML customizings for the WinX/UWP app;&lt;br /&gt;
* Namespace definitions must include the corresponding assembly names;&lt;br /&gt;
* XAML template files have the extension name of '''xamlx''' instead of '''xaml''';&lt;br /&gt;
* You can deploy only those resources that you want to customize. (This is also the case for newer versions of WinX/UWP. {{Version/WinXSince|3.6}})&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Overriding default XAMLs=&lt;br /&gt;
On Windows (WinX/UWP), the &amp;lt;code&amp;gt;[App Package Folder]/LocalState/xaml/&amp;lt;/code&amp;gt; folder can be accessed by the user and the customized XAML files directly added. An alternative to this on all platforms (including Android, iOS, etc.) is to use the ''Import Customizing'' button in the app settings to import the templates, styles, images, etc. (file by file, or all files within a zip package). The changes should be reflected in the UI (except the current page) without restarting the app. After directly editing the customizings (Mobile Windows), you can also use the &amp;quot;Reload customizing&amp;quot; button without restarting the app.&lt;br /&gt;
&lt;br /&gt;
In the following, we're going to override the default light theme color of the app:&lt;br /&gt;
* Unpack the default XAMLs;&lt;br /&gt;
* Pick and deploy the default UBIKThemes.xamlx to the '''xaml''' folder inside the ''LocalState'' folder;&lt;br /&gt;
* Open it with the text editor of your choice and remove everything within the '''ResouceDictionary''' except &amp;lt;code&amp;gt;&amp;lt;Color x:Key=&amp;quot;UBIKLightThemeColor&amp;quot;&amp;gt;blue&amp;lt;/Color&amp;gt;&amp;lt;/code&amp;gt;;&lt;br /&gt;
* Save the changes and reload. You should see changes successfully implemented.&lt;br /&gt;
&lt;br /&gt;
{{Attention| For maintainability reasons, it's HIGHLY recommended to deploy only those XAML resources you want to override. For example, if you only want to customize the UBIKChildArea, don't deploy others like the UBIKMenuArea. If you only want to customize the UBIKChildItem, that's the only content you should include in the UBIKThemes.}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Custom Templates ==&lt;br /&gt;
Custom templates can be added, just like on the WinX/UWP client. Make sure to include all '''namespace definitions''' (as attributes of the '''ContentView''' tag), otherwise the custom template will not load.&lt;br /&gt;
&lt;br /&gt;
Similar to the ''UBIKThemes.xamlx'' file, custom or overridden templates start with a &amp;lt;code&amp;gt;&amp;lt;ContentView&amp;gt;&amp;lt;/code&amp;gt; tag containing all '''namespaces'''. &amp;lt;code&amp;gt;&amp;lt;ContentView.Resources&amp;gt;&amp;lt;/code&amp;gt; takes a '''ResourceDictionary''' and contains resources like references to converters. Finally, &amp;lt;code&amp;gt;&amp;lt;ContentView.Content&amp;gt;&amp;lt;/code&amp;gt; contains the actual layout content (it's best to start with a '''Grid'''). Again, don't forget to add namespaces that you need!&lt;br /&gt;
&lt;br /&gt;
Templates can also be defined in ''UBIKThemes.xamlx''. In this case, they need to be added into the &amp;lt;code&amp;gt;&amp;lt;ResourceDictionary&amp;gt;&amp;lt;/code&amp;gt; inside the &amp;lt;code&amp;gt;&amp;lt;ContentView.Resources&amp;gt;&amp;lt;/code&amp;gt; template as a &amp;lt;code&amp;gt;&amp;lt;DataTemplate&amp;gt;&amp;lt;/code&amp;gt;. Similarly, if you want to split up the templates into seperate files, you need to make sure to follow the steps mentioned above and get the content of the &amp;lt;code&amp;gt;&amp;lt;DataTemplate&amp;gt;&amp;lt;/code&amp;gt; into the &amp;lt;code&amp;gt;&amp;lt;ContentView.Content&amp;gt;&amp;lt;/code&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
{{Attention|Templates defined in separate files will override templates defined in the ''UBIKThemes.xamlx''!}}&lt;br /&gt;
&lt;br /&gt;
=== Bindings in resources ===&lt;br /&gt;
When using bindings such as [[Xamarin_XAML#Content_filtering|this]] in a resource located in a custom template, it is necessary to place the template in a UBIKContentView.&lt;br /&gt;
&lt;br /&gt;
{{Hint|Technically speaking, this is because bindable objects in the ResourceDictionary of a ContentView (the custom template) don't automatically inherit the BindingContext from the container/parent view. UBIKContentView is created to additionally do that.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- UBIKCustomView.xamlx --&amp;gt;&lt;br /&gt;
&amp;lt;ContentView...&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;controls:SfDataSourceExt... ItemsSource=&amp;quot;{Binding Children.Items}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Container where UBIKCustomView is placed, e.g. UBIKChildArea.xamlx --&amp;gt;&lt;br /&gt;
&amp;lt;ContentView...&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
    &amp;lt;controls:UBIKContentView Content=&amp;quot;{Binding [UBIKCustomView], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Adding Images ==&lt;br /&gt;
Images can't be loaded with the default '''Image''' tag, as the image is on different paths on each operating system.&lt;br /&gt;
&lt;br /&gt;
Therefore, there's a custom '''FileImage''' that internally overrides the default ''Image'' with two custom parameters:&lt;br /&gt;
* '''FolderName''' ...The name of the '''folder''' in the '''local folder'''. Only the first level inside the ''LocalState'' folder seems to work.&lt;br /&gt;
* '''FileName''' ...The name of the '''file''' in the said folder. &lt;br /&gt;
&lt;br /&gt;
Make sure to implement the proper namespace as well by adding&lt;br /&gt;
&amp;lt;code&amp;gt;xmlns:fimage=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;lt;/code&amp;gt; into the root item's attributes.&lt;br /&gt;
&lt;br /&gt;
Then, the image can be loaded using:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;fimage:FileImage FileName=&amp;quot;image.png&amp;quot; FolderName=&amp;quot;xaml&amp;quot;/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This snipped loads the image called '''image.png''' located in the '''xaml''' folder inside the ''LocalState''.&lt;br /&gt;
&lt;br /&gt;
Furthermore, the ''FileImage'' tag doesn't seem to support most attributes. Therefore place it inside a '''Grid''' to achieve a perfect layout.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Custom Icons ==&lt;br /&gt;
Moved to article [[XAML_Tips#Custom_Icons]].&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Converters==&lt;br /&gt;
:''Main Page: [[Converters_In_Mobile]]''&lt;br /&gt;
&lt;br /&gt;
They are used to convert specific data into some desired output, using custom logic. &lt;br /&gt;
&lt;br /&gt;
Consider the following example:&amp;lt;br/&amp;gt;&lt;br /&gt;
A label saying ''There are no children items available!'' should only be visible if the number of children-items is 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
&lt;br /&gt;
== Feature related ==&lt;br /&gt;
&lt;br /&gt;
=== Customizing Menu Button {{Version/XamarinSince|4.6.0}} === &lt;br /&gt;
&lt;br /&gt;
For the Mobile Client, it is possible to show/hide the '''Menu button''' of the client.&amp;lt;br&amp;gt;&lt;br /&gt;
To customize the visibility of the '''Menu button''' you have to edit the default XAML '''Themes''' file.&lt;br /&gt;
&lt;br /&gt;
* Search for &amp;quot;'''ShowMenuToolBar'''&amp;quot; in the Themes file.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
If there isn't any &amp;quot;'''ShowMenuToolBar'''&amp;quot; in your XAML Themes file, you just have to create one, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;x:Boolean x:Key=&amp;quot;ShowMenuToolBar&amp;quot;&amp;gt;true&amp;lt;/x:Boolean&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Set the value to &amp;quot;true&amp;quot; to show the '''Menu button''' (default value).&lt;br /&gt;
* Set the value to &amp;quot;false&amp;quot; to hide the '''Menu button'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=&amp;quot;300&amp;quot; heights=&amp;quot;500&amp;quot;&amp;gt;&lt;br /&gt;
File:menu_button_show.png|Menu Button shown&lt;br /&gt;
File:menu_button_hiddenV3.png|Menu Button hidden&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Content filtering ===&lt;br /&gt;
For the Mobile clients, an &amp;quot;SfDataSourceExt&amp;quot; type is available for filtering list of items using defined expressions.&amp;lt;br /&amp;gt;&lt;br /&gt;
The following example demonstrates how to filter for child items having certain property values. The filtered list and its count can be displayed in the UI.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ContentView&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&lt;br /&gt;
    ...&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;x:String x:Key=&amp;quot;Expresssion&amp;quot;&amp;gt;Item.Values[&amp;amp;quot;MP_YEAR&amp;amp;quot;].Contains(&amp;amp;quot;2019&amp;amp;quot;)&amp;lt;/x:String&amp;gt;&lt;br /&gt;
            &amp;lt;controls:SfDataSourceExt  x:Key=&amp;quot;FilteredList&amp;quot; Expression=&amp;quot;{StaticResource Expresssion}&amp;quot; ItemsSource=&amp;quot;{Binding Children.Items}&amp;quot; Unloaded=&amp;quot;{Binding SkipFiltering}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
    &amp;lt;StackLayout Orientation=&amp;quot;Vertical&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;Label Text=&amp;quot;{Binding DisplayItemsCount, Source={StaticResource FilteredList}}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt ItemsSource=&amp;quot;{Binding DisplayItems, Source={StaticResource FilteredList}}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/StackLayout&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Notes on using bindings in ResourceDictionary ====&lt;br /&gt;
In the example shown above, you can see &amp;lt;code&amp;gt;{Binding Children.Items}&amp;lt;/code&amp;gt; is used. For this to work, the SfDataSourceExt control inside the ResourceDictionary must inherit the binding data context properly.&lt;br /&gt;
* In this case, that data context comes from where this template (UBIKChildArea.xamlx) is used, namely the UBIKContentArea.xamlx;&lt;br /&gt;
* When referencing this template in a ContentView control, the binding data context is '''NOT''' automatically inherited by the controls inside the ResourceDictioinary;&lt;br /&gt;
* That's why we use a UBIKContentView control instead. You can find its example usage in the default UBIKContentArea.xamlx template.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Search ===&lt;br /&gt;
In the default UBIKMenuArea.xamlx (where the search UI is hosted), there are two commands associated with two events. See below.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;SearchBar ...&amp;gt;&lt;br /&gt;
    &amp;lt;SearchBar.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior&lt;br /&gt;
            Command=&amp;quot;{Binding FreeTextSearchCommand}&amp;quot;&lt;br /&gt;
            CommandParameter=&amp;quot;{Binding Path=Text, Source={x:Reference SearchField}}&amp;quot;&lt;br /&gt;
            EventName=&amp;quot;SearchButtonPressed&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding DelayedFreeTextSearchCommand}&amp;quot; EventName=&amp;quot;TextChanged&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/SearchBar.Behaviors&amp;gt;&lt;br /&gt;
&amp;lt;/SearchBar&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The one for &amp;lt;code&amp;gt;SearchButtonPressed&amp;lt;/code&amp;gt; is responsible for executing searches after the user confirms the input (e.g. pressing {{{keypress|Enter}}} or the search button).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The one for &amp;lt;code&amp;gt;TextChanged&amp;lt;/code&amp;gt; is responsible for the &amp;quot;search as you type&amp;quot; behavior. Namely it triggers an automatic search shortly (half second) after the user stops changing the text in the search bar. It can be turned off by simply removing that particular behavior.&lt;br /&gt;
&lt;br /&gt;
=== DisplayViewCommand ===&lt;br /&gt;
This command can be used to [[Custom_View_(Client)|display custom views]].&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
=== Flashlight  {{Version/MobileSince|5.1.0}}  ===&lt;br /&gt;
For the Mobile clients, it is possible to control the system flashlight via customizing and switch it on or off.&lt;br /&gt;
&lt;br /&gt;
The available properties can, for example, be bound to a Switch or CheckBox, as demonstrated below. These properties allow you to:&lt;br /&gt;
* Determine whether the device supports flashlight functionality (IsFlashSupported)&lt;br /&gt;
* Check whether the flashlight is currently turned on or off (IsFlashEnabled)&lt;br /&gt;
* Toggle the flashlight on or off via user interaction (SwitchFlashLight) &lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
If an attempt is made to enable the flashlight on a device that does not provide flashlight support, no action is performed.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Switch&lt;br /&gt;
! controls:CheckBox&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Switch IsVisible=&amp;quot;{Binding AppStatus.IsFlashSupported}&amp;quot;&lt;br /&gt;
        IsToggled=&amp;quot;{Binding AppStatus.SwitchFlashLight, Mode=TwoWay}&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:CheckBox&lt;br /&gt;
    x:Name=&amp;quot;PropertyToggle&amp;quot;&lt;br /&gt;
    CheckSymbol=&amp;quot;&amp;amp;#x1F526;&amp;quot;&lt;br /&gt;
    IsVisible=&amp;quot;{Binding AppStatus.IsFlashSupported}&amp;quot;&lt;br /&gt;
    IsChecked=&amp;quot;{Binding AppStatus.SwitchFlashLight, Mode=TwoWay}&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource UBIKIconToggleButton}&amp;quot;&lt;br /&gt;
    SymbolSize=&amp;quot;20&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;controls:CheckBox.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger&lt;br /&gt;
            Binding=&amp;quot;{Binding AppStatus.IsFlashEnabled}&amp;quot;&lt;br /&gt;
            TargetType=&amp;quot;controls:CheckBox&amp;quot;&lt;br /&gt;
            Value=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;Background&amp;quot; Value=&amp;quot;{StaticResource UBIKAccentColor}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
   &amp;lt;/controls:CheckBox.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:CheckBox&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;br /&gt;
&lt;br /&gt;
== Performance ==&lt;br /&gt;
To get a good performance in the app UI when using your Xaml customizings, it is recommended to try the following.&lt;br /&gt;
* Always keep your UI structure simple. Choose the most efficient layouts for the scenarios and avoid unnecessary UI elements. Please refer to [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/performance#choose-the-correct-layout &amp;quot;choose the correct layout&amp;quot;] and [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/performance#reduce-the-visual-tree-size &amp;quot;reduce the visual tree size&amp;quot;];&lt;br /&gt;
* Turn on [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/layouts/layout-compression layout compression] on wrapping elements that don't have any visual parameters set (reasons stated in the linked documentation).&lt;br /&gt;
{{Hint|There is a default &amp;quot;HeadlessLayout&amp;quot; style available in the app you can use on elements such as Grids, StackLayouts, ContentViews, etc. It turns on [[Xamarin_XAML#Layout_compression_examples|layout compression]] on the applied elements in Xamarin.Android (since we find it not worth the effort in Xamarin.iOS).}}&lt;br /&gt;
{{Attention|If possible, one should always favor designing the UI with less wrapping elements over turning on layout compression on unnecessary ones.}}&lt;br /&gt;
&lt;br /&gt;
=== General performance tips ===&lt;br /&gt;
* Reduce number of views per page&lt;br /&gt;
* Don’t bind things if they could be set static easily&lt;br /&gt;
* If you do not change the default, don’t set it explicit. For example, [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.StackLayout.Orientation?view=xamarin-forms Orientation of StackLayout] is “Vertical” by default. No need to set it manually if you don’t want to change it.&lt;br /&gt;
* Transparency is expensive.&lt;br /&gt;
* Use async/await to avoid blocking user interface.&lt;br /&gt;
* Do not put ListViews into ScrollViews.&lt;br /&gt;
* To stack elements, create a grid and add them to the same cell one after another. It’s cheaper than RelativeLayout.&lt;br /&gt;
* Use Margins instead of Paddings.&lt;br /&gt;
&lt;br /&gt;
=== Layouts ===&lt;br /&gt;
* Choose correct Layout, e.g. no need to add a StackLayout if it only has 1 child.&lt;br /&gt;
* [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/layouts/layout-options LayoutOptions].Fill or .FillAndExpand are best choice in most cases. And they are already default, so no need to set.&lt;br /&gt;
* Autosize of rows and columns in grids should used as few as possible.&lt;br /&gt;
* RelativeLayout is very expensive. Try to avoid.&lt;br /&gt;
* In StackLayout, make sure there is only 1 LayoutOptions Expand.&lt;br /&gt;
&lt;br /&gt;
=== Labels ===&lt;br /&gt;
* Use [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/label#formatted-text FormattedText] instead of multiple labels.&lt;br /&gt;
* Use [https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.linebreakmode?view=xamarin-forms Linebreakmode] NoWrap (which is already the default).&lt;br /&gt;
* Avoid [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.Label.VerticalTextAlignment?view=xamarin-forms VerticalTextAlignment]. Anyway, if needed, use VerticalTextAligment instead of &lt;br /&gt;
VerticalOptions.&lt;br /&gt;
* Use the &amp;quot;TextTransform&amp;quot; attribute to convert the value of the &amp;quot;Text&amp;quot; attribute to either uppercase or lowercase.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Label&lt;br /&gt;
      TextTransform=&amp;quot;Uppercase&amp;quot;&lt;br /&gt;
      Text=&amp;quot;{Binding Properties.AllItems[DESCR].DisplayValue}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Images ===&lt;br /&gt;
* Provide images in optimized width and size. Provide multiple resolutions for different usage.&lt;br /&gt;
* Set [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.Image.IsOpaque?view=xamarin-forms IsOpaque] to true if image is opaque.&lt;br /&gt;
&lt;br /&gt;
=== Layout compression examples ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView ControlTemplate=&amp;quot;{DynamicResource ChangedSymbol}&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The code above removes one wrapping element added automatically by the ContentView and demonstrates a good reason to use layout compression because it can not be avoided otherwise.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid Margin=&amp;quot;2&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label Margin=&amp;quot;5&amp;quot; Text=&amp;quot;{Binding Title}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This example, on the other hand, demonstrates a bad usage of layout compression because it can be easily achieved by better designs such as using only the Label with a merged margin.&lt;br /&gt;
&lt;br /&gt;
Sometimes the content inside a compressed layout appears on a wrong z-index level. For eample:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;BoxView CornerRadius=&amp;quot;14&amp;quot; HeightRequest=&amp;quot;28&amp;quot; WidthRequest=&amp;quot;28&amp;quot; Color=&amp;quot;Red&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;ContentView ControlTemplate=&amp;quot;{DynamicResource Badge}&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label Text=&amp;quot;{Binding Title}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView &amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
According to the order of the BoxView and the Label, the latter should appear on top of the former (later ones have higher z-index levels). However, this can be disturbed by layout compression, causing the exact opposite.&lt;br /&gt;
In this case, you can add a &amp;lt;code&amp;gt;xmlns:android=&amp;quot;clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core&amp;quot;&amp;lt;/code&amp;gt; namespace to your Xaml file and manually elevate the Label by specifying &amp;lt;code&amp;gt;android:VisualElement.Elevation=&amp;quot;X&amp;quot;&amp;lt;/code&amp;gt; on it accordingly (X is the delta of the z-index level you want).&lt;br /&gt;
&lt;br /&gt;
=== SfListViewExt ===&lt;br /&gt;
For performance reasons, we created an extended version of the Syncfusion SfListView control and it should be used for all lists in customizings. You need to add a namespace like &amp;lt;code&amp;gt;xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;lt;/code&amp;gt; to your Xaml file and use it like &amp;lt;code&amp;gt;&amp;lt;controls:SfListViewExt ... /&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{{Hint|Technically speaking, SfListViewExt informs item view models when their corresponding item views appear on / disappear from the screen. This way, view models can skip a lot of unnecessary work (on the UI) when their views are not visible. '''If SfListView is used instead, the item views will not reflect content changes until the page is reloaded/refreshed.'''}}&lt;br /&gt;
&lt;br /&gt;
It is possible to configure the ListView, that the ScrollPosition is remembered when navigating away from the page, to do so, the property RembemberScrollPosition needs to be set to true. If unset, the value defaults to false and the scroll positions are not remembered.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt RememberScrollPosition=&amp;quot;True&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Delay and LazyLoading ===&lt;br /&gt;
{{Attention|Although both properties can be set in XAML on the two controls, this should not be done. When both the LazyLoading and Delay properties are set, the Delay property is ignored in the code-behind, as otherwise it could lead to unexpected behavior and, in the worst case, result in performance degradation.}}&lt;br /&gt;
&lt;br /&gt;
==== Delay in UBIKContentView and ContentControl {{Version/MobileSince|5.1}} ====&lt;br /&gt;
More complex UIs create a delay in rendering which leads to a feeling of &amp;quot;unresponsiveness&amp;quot; when navigating through the client. This is because the app loads and displays everything at once, leading to a larger delay between triggering navigation and completion of page loading.&lt;br /&gt;
 &lt;br /&gt;
While the complexity of the UI directly affects the time taken to render it, the experience of responsiveness can be somewhat improved by actually adding a delay between the loading of the content page, and actual data content (properties, children, etc). By not loading both at once, resources are freed up in the app, leading to a quicker loading of the basic page. The content then loads in at its normal speed.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Starting from version 5.1, a small delay was introduced in the content heavy pages (child page, document page and query page). However, additional delays can also be applied to the custom UI at will, using a new property added to two existing controls used 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.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! UBIKContentView&lt;br /&gt;
! ContentControl&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView &lt;br /&gt;
    Delay=&amp;quot;50&amp;quot; &lt;br /&gt;
    Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ContentControl &lt;br /&gt;
    Delay=&amp;quot;50&amp;quot; &lt;br /&gt;
    ContentTemplate=&amp;quot;{Binding [UBIKNavigationBar], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Hint|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.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Delay applies ✅&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView Delay=&amp;quot;50&amp;quot; Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot; ConverterParameter=&amp;quot;UBIKChildArea&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Delay doesn't apply ❌&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView Delay=&amp;quot;50&amp;quot; Content=&amp;quot;{Binding [UBIKChildArea], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Lazy Loading in UBIKContentView and ContentControl {{Version/MobileSince|5.1}} ====&lt;br /&gt;
&lt;br /&gt;
To further improve performance, it is now possible to apply LazyLoading to UBIKContentView and ContentControl. &lt;br /&gt;
&lt;br /&gt;
When a ContentTemplate is assigned to either of these controls and the LazyLoading property is set to true, the content is only loaded when it is explicitly requested. The difference between this and simply controlling the IsVisible condition is that in the latter, resources are still consumed in constructing the UI element, even though it is not shown. Note that Lazy loading requires a trigger to determine when the content should be loaded, and the biggest benefit is experienced when complex elements, especially those hosting a ListView or some kind of object/property collection, are lazy-loaded. &lt;br /&gt;
&lt;br /&gt;
UBIKTabView is optimized to make use of the LazyLoading attribute when it is applied to tab content. Additionally, usage outside of UBIKTabView is possible, as the loading can be triggered as a behavior attached to any other control, such as a button with an IsClicked behavior handler. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''UBIKTabView with LazyLoading'''&lt;br /&gt;
&lt;br /&gt;
When used in combination with UBIKTabView (by including the LazyLoading=True attribute on any UBIKContentView or ContentControl content of a tab item, as is now standard {{Version/MobileSince|5.1}}), only the content of the selected tab is rendered (by default, the first tab). The content of non-selected tabs is not. When switching tabs, UBIKTabView takes care of triggering the rendering of the content for the newly selected tab. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! UBIKContentView&lt;br /&gt;
! ContentControl&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;controls:UBIKContentView &lt;br /&gt;
            Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot; &lt;br /&gt;
            ConverterParameter=&amp;quot;UBIKPropertyArea&amp;quot; &lt;br /&gt;
            LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
 &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;controls:ContentControl &lt;br /&gt;
            ContentTemplate=&amp;quot;{DynamicResource MyTemplate}&amp;quot;&lt;br /&gt;
            LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
 &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Using another control as a trigger for lazy loading'''&lt;br /&gt;
&lt;br /&gt;
Other controls (e.g., Button, CheckBox, etc.) can also serve as triggers for lazy loading. The benefit of this is that LazyLoading can still be applied to a complex UBIKContentView or ContentControl that is not hosted within a UBIKTabView. &lt;br /&gt;
&lt;br /&gt;
And example of a usecase is a togglebutton that reveals a section of content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;Grid RowDefinitions=&amp;quot;*,50,*&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;Button&lt;br /&gt;
            x:Name=&amp;quot;LoadDocuments&amp;quot;&lt;br /&gt;
            Grid.Row=&amp;quot;1&amp;quot;&lt;br /&gt;
            HeightRequest=&amp;quot;50&amp;quot;&lt;br /&gt;
            HorizontalOptions=&amp;quot;Center&amp;quot;&lt;br /&gt;
            Text=&amp;quot;LazyLoadDocuments&amp;quot;&lt;br /&gt;
            WidthRequest=&amp;quot;200&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Button.Behaviors&amp;gt;&lt;br /&gt;
                &amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;Clicked&amp;quot;&amp;gt;&lt;br /&gt;
                    &amp;lt;behaviors:InvokeMethodAction MethodName=&amp;quot;TriggerLazyLoad&amp;quot; TargetObject=&amp;quot;{Binding Source={x:Reference DocumentsAreaLoader}}&amp;quot; /&amp;gt;&lt;br /&gt;
                &amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&lt;br /&gt;
            &amp;lt;/Button.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;/Button&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;controls:UBIKContentView&lt;br /&gt;
            x:Name=&amp;quot;DocumentsAreaLoader&amp;quot;&lt;br /&gt;
            Grid.Row=&amp;quot;2&amp;quot;&lt;br /&gt;
            Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot;&lt;br /&gt;
            ConverterParameter=&amp;quot;UBIKDocumentArea&amp;quot;&lt;br /&gt;
            LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Known issues =&lt;br /&gt;
&lt;br /&gt;
=== Headlesslayout style in custom UBIKThemes causing problems ===&lt;br /&gt;
&lt;br /&gt;
In our default '''UBIKThemes''', we are currently using this style for a headless layout:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Style x:Key=&amp;quot;HeadlessLayout&amp;quot; TargetType=&amp;quot;Layout&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Setter Property=&amp;quot;CompressedLayout.IsHeadless&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;Setter.Value&amp;gt;&lt;br /&gt;
            &amp;lt;OnPlatform&lt;br /&gt;
                x:TypeArguments=&amp;quot;x:Boolean&amp;quot;&lt;br /&gt;
                Android=&amp;quot;True&amp;quot;&lt;br /&gt;
                WinPhone=&amp;quot;False&amp;quot;&lt;br /&gt;
                iOS=&amp;quot;False&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/Setter.Value&amp;gt;&lt;br /&gt;
    &amp;lt;/Setter&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
This style is used for better UI performance on Android.&lt;br /&gt;
Using this style in a '''custom UBIKThemes''' could cause an exception &amp;amp; an app crash, or some objects to disappear.&lt;br /&gt;
The best case would be to '''not''' include it in the custom themes file, as it's unnecessary if you don't want to make any changes here.&lt;br /&gt;
&lt;br /&gt;
'''This issue is only known on Android tablet devices.'''&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== DataTrigger Issues ===&lt;br /&gt;
==== Conflicting Triggers ====&lt;br /&gt;
DataTriggers in Mobile function better than the equivalent DataTriggerBehavior in UWP as they automatically handle the opposite case when a Boolean attribute value is set. This means that if a boolean DataTrigger is set, such as IsVisible=True, the False visibility will automatically be set if the Binding/Value condition is not met.&lt;br /&gt;
&lt;br /&gt;
However, this means that stacking multiple DataTriggers on the same attribute can lead to unexpected results. For this reason, it is recommended to use as few DataTriggers as possible. &lt;br /&gt;
* Avoid setting the same attribute more than once; do not set the same value as a default attribute and in the DataTrigger (ControlTemplate in the below example).&lt;br /&gt;
* Ideally, use only DataTriggers without a default ControlTemplate. This ensures that content is created only after the trigger evaluation is complete. If a default ControlTemplate is set, it is always loaded immediately, even if another template is applied right after.&lt;br /&gt;
* It is acceptable, but not recommended, to combine a single DataTrigger with an opposite default value, but only if the default value is different from all values set in triggers.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Don't Do&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot; ControlTemplate=&amp;quot;{StaticResource SelListTemplate}&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource SelListTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Instead Do&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource SelListTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Acceptable, but not recommended&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot; ControlTemplate=&amp;quot;{StaticResource SelListTemplate}&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== DataTrigger to set Footer Properties in a ListView ====&lt;br /&gt;
&lt;br /&gt;
When using a DataTrigger to set the properties of a footer for a ListView, the sequence of the properties inside the DataTrigger might matter in some cases.&lt;br /&gt;
It seems to occur since Version 4.4 due to a Syncfusion update and could lead to the page not being rendered properly and appearing empty.&lt;br /&gt;
&lt;br /&gt;
If you encounter such an issue, please workaround by adding the IsStickyFooter Property Setter on top inside the DataTrigger.&lt;br /&gt;
Also, new customizings should consider this workaround as a preventive action.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS DOESN'T WORK IN CERTAIN CASES --&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt ...&amp;gt;&lt;br /&gt;
	&amp;lt;controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
		&amp;lt;DataTrigger TargetType=&amp;quot;controls:SfListViewExt&amp;quot; Binding=&amp;quot;{Binding Title}&amp;quot; Value=&amp;quot;Administration&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterTemplate&amp;quot; Value=&amp;quot;{DynamicResource AddLoginFooter}&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterSize&amp;quot; Value=&amp;quot;64&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;IsStickyFooter&amp;quot; Value=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
	&amp;lt;/controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt ...&amp;gt;&lt;br /&gt;
	&amp;lt;controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
		&amp;lt;DataTrigger TargetType=&amp;quot;controls:SfListViewExt&amp;quot; Binding=&amp;quot;{Binding Title}&amp;quot; Value=&amp;quot;Administration&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;IsStickyFooter&amp;quot; Value=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterTemplate&amp;quot; Value=&amp;quot;{DynamicResource AddLoginFooter}&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterSize&amp;quot; Value=&amp;quot;64&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
	&amp;lt;/controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Incorrect glyphs may be shown on buttons ===&lt;br /&gt;
&lt;br /&gt;
When using glyphs on buttons in Mobile, sometimes a different glyph than the expected one will show up when viewing the app on Android.&lt;br /&gt;
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.)&lt;br /&gt;
&lt;br /&gt;
If you encounter this issue please workaround by supplying the icon through the FontImageSource property of the button.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Button Command=&amp;quot;{Binding BulkOperation.InvokeOnItemsCommand}&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;Button.ImageSource&amp;gt;&lt;br /&gt;
          &amp;lt;FontImageSource &lt;br /&gt;
               FontFamily=&amp;quot;{DynamicResource UBIKSymbols}&amp;quot;&lt;br /&gt;
               Glyph=&amp;quot;{x:Static resources:UBIKIcons.MobileDelete}&amp;quot;&lt;br /&gt;
               Color=&amp;quot;{DynamicResource UBIKDarkThemeColor}&amp;quot;&lt;br /&gt;
               Size=&amp;quot;22&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;/Button.ImageSource&amp;gt;&lt;br /&gt;
     &amp;lt;Button.CommandParameter&amp;gt;&lt;br /&gt;
          &amp;lt;classes:KeyValueList&amp;gt;&lt;br /&gt;
                    &amp;lt;classes:KeyValueParameter Key=&amp;quot;Command&amp;quot; Value=&amp;quot;DiscardContentCommand&amp;quot; /&amp;gt;&lt;br /&gt;
          &amp;lt;/classes:KeyValueList&amp;gt;&lt;br /&gt;
     &amp;lt;/Button.CommandParameter&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Buttons and gesture recognizers ===&lt;br /&gt;
In Mobile XAML, you can use gesture recognizers on many UI elements such as a Grid to enable the latter to interact with user inputs.&lt;br /&gt;
&lt;br /&gt;
However, we've already made quite a lot of experience that gesture recognizers do not always work on Android and iOS when used on a Button control.&lt;br /&gt;
For example, the following Button won't properly invoke the command on said platforms.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS DOESN'T WORK!!! --&amp;gt;&lt;br /&gt;
&amp;lt;Button ...&amp;gt;&lt;br /&gt;
    &amp;lt;Button.GestureRecognizers&amp;gt;&lt;br /&gt;
        &amp;lt;TapGestureRecognizer Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Button.GestureRecognizers&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Therefore, you should always seek alternatives for Buttons.&lt;br /&gt;
'''If only one command is needed''', use the standard Command property on the Button, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;Button Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Or if multiple commands are needed, use Behaviors '''instead''', e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS ALSO WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;Button xmlns:behaviors=&amp;quot;clr-namespace:UBIK.CPL.Behaviors;assembly=UBIK.CPL&amp;quot; ...&amp;gt;&lt;br /&gt;
    &amp;lt;Button.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; EventName=&amp;quot;Clicked&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding NavigateBackCommand}&amp;quot; EventName=&amp;quot;Clicked&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Button.Behaviors&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== No dynamic reloading of Document Viewer ===&lt;br /&gt;
[[File:PDFViewerFixWiki.JPG]]&lt;br /&gt;
&lt;br /&gt;
In a customizing that combines a single-selection list of documents with some kind of viewer (especially UBIKDocumentContentArea), it is generally the case that switching the document causes the document viewer to then appear blank. The technical reason is that the PDFViewer used in the UBIKDocumentContentArea is not reloaded once the document content is reloaded. &lt;br /&gt;
&lt;br /&gt;
An easy fix is to apply a DataTrigger that unloads the ContentView when the document content is null, as the ContentView is forced to rerender itself when the trigger condition is no longer met.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- Document Viewer --&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView &lt;br /&gt;
    x:Name=&amp;quot;DoucmentViewer&amp;quot; &lt;br /&gt;
    BindingContext=&amp;quot;{Binding SelectedItem, Source={x:Reference DocumentList}}&amp;quot;&lt;br /&gt;
    Content=&amp;quot;{Binding [UBIKDocumentContentArea], Source={x:Static services:TemplateService.Instance}}&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;controls:UBIKContentView.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger TargetType=&amp;quot;controls:UBIKContentView&amp;quot; Binding=&amp;quot;{Binding SelectedItem.DocumentViewModel.DocumentContent, Source={x:Reference DocumentList}, Converter={StaticResource NullToBool}}&amp;quot; Value=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;Content&amp;quot; Value=&amp;quot;{x:Null}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:UBIKContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:UBIKContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Issues with SfPullToRefresh in Mobile client {{Version/MobileSince|5.0}} ===&lt;br /&gt;
Due to a third-party issue, problems may occur on Mobile Android when using the SfPullToRefresh control in combination with the SfListViewExt. This can result in e.g. navigation or task interaction sometimes requiring multiple clicks.&lt;br /&gt;
In general, and due to more issues, it's not recommended to use the SfPullToRefresh control.&lt;br /&gt;
In our Mobile standard client, the PullToRefresh control has been replaced by a Refresh button in the Context Menu.&lt;br /&gt;
If you still decide to use SfPullToRefresh, there are a few points to consider:&lt;br /&gt;
&lt;br /&gt;
==== Avoid multiple SfPullToRefresh controls ====&lt;br /&gt;
To prevent an issue that causes the app to freeze, avoid placing more than one SfPullToRefresh controls as siblings in a xaml hierarchy. If switching between contents in a SfPullToRefresh control is necessary use separate DataTemplates for the contents and use e.g. a DataTrigger to set one of them as the ControlTemplate of a ContentControl inside the SfPullToRefresh control. For an example, refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui#Avoid_multiple_SfPullToRefresh_controls|this link]].&lt;br /&gt;
&lt;br /&gt;
==== Avoid using SyncFusion ListViews directly in SfPullToRefresh controls ====&lt;br /&gt;
To prevent an issue on some Android devices that can cause some items in a SfListViewExt to be rendered incorrectly or not at all after triggering a PullToRefresh, avoid placing a SfListViewExt directly in a SfPullToRefresh control. Instead, wrap the ListView in a DataTemplate and use it in a ContentControl as a child of the SfPullToRefresh control. For an example, refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui#Avoid_using_SyncFusion_ListViews_directly_in_SfPullToRefresh_controls|this link]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= UBIK Go (Maui) Customizing Guide {{Version/MobileSince|5.1}} =&lt;br /&gt;
The change to Maui was taken as an opportunity both to visually update the client's default UI, and to add some quality of life changes aiming to reduce the amount of customizing needed.&lt;br /&gt;
&lt;br /&gt;
This section describes the standard UI and how to more easily customize it.&lt;br /&gt;
&lt;br /&gt;
For differences between Xamarin and Maui, please refer to the [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] article.&lt;br /&gt;
&lt;br /&gt;
== XAML Changes And Improvements ==&lt;br /&gt;
=== Styles and Resources ===&lt;br /&gt;
* Various color elements were renamed for neutrality. This will help clarify the purpose of color themes, and make it easier to keep track of in customizings. The old versions are still available but moved to the Obsolete section of UBIKThemes. &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
UBIKDarkTextColor --&amp;gt; UBIKRegularTextColor&lt;br /&gt;
UBIKDarkThemeColor --&amp;gt; UBIKMainThemeColor&lt;br /&gt;
UBIKLightTextColor --&amp;gt; UBIKMainThemeContrastColor&lt;br /&gt;
UBIKLightThemeColor --&amp;gt; UBIKBasePageColor&lt;br /&gt;
UBIKSubtleTextColor --&amp;gt; UBIKMediumTextColor&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Furthermore, effort was made to create 'contrast pairs' throughout the client; for example, UBIKMainThemeContrastColor is defined primarily for texts layered on elements of UBIKMainThemeColor (such as the title bar and text). &lt;br /&gt;
** The intention here is that this pair can be safely customized with no surprises, that cannot be guaranteed when using non-paired resource. For example, UBIKMainThemeContrastColor  and UBIKBasePageColor are both white in the default customizing, but if UBIKBasePageColor that were to be layered over UBIKMainThemeColor, it would result in a black-on-black issue in a dark theme customizing. &lt;br /&gt;
** The 'pairs' are; &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
UBIKMainThemeColor x UBIKMainThemeContrastColor&lt;br /&gt;
UBIKBasePageColor x UBIKRegularTextColor&lt;br /&gt;
UBIKButtonColor x UBIKButtonTextColor &lt;br /&gt;
UBIKButtonToggledColor x UBIKButtonToggledTextColor &lt;br /&gt;
UBIKPDFBaseColor x UBIKPDFTextColor&lt;br /&gt;
UBIKPDFSelectedToolColor x UBIKPDFSelectedToolTextColor&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* An effort was also made to avoid hardcoding numeric values on the client. Reusable resources were introduced instead; &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKButtonIconSize&amp;quot;&amp;gt;20&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKButtonPanelSize&amp;quot;&amp;gt;56&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKButtonSize&amp;quot;&amp;gt;44&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKListItemSize&amp;quot;&amp;gt;80&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;OnIdiom x:Key=&amp;quot;UBIKTileItemSize&amp;quot; x:TypeArguments=&amp;quot;Thickness&amp;quot; Default=&amp;quot;120&amp;quot; Phone=&amp;quot;100&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKCaptionTextSize&amp;quot;&amp;gt;14&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKButtonTextSize&amp;quot;&amp;gt;16&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKBodyTextSize&amp;quot;&amp;gt;16&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKTitleTextSize&amp;quot;&amp;gt;18&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKProgressBarHeight&amp;quot;&amp;gt;4&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;OnIdiom x:Key=&amp;quot;UBIKAdaptivePadding&amp;quot; x:TypeArguments=&amp;quot;Thickness&amp;quot; Default=&amp;quot;8,0&amp;quot; Phone=&amp;quot;4,0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;OnIdiom x:Key=&amp;quot;UBIKAdaptiveSpacing&amp;quot; x:TypeArguments=&amp;quot;x:Double&amp;quot; Default=&amp;quot;16&amp;quot; Phone=&amp;quot;8&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Regarding corporate colors, there are now additional resources to customize, aside from UBIKAccentColor;&lt;br /&gt;
** UBIKHighlightColor is a secondary accent color used for highlighting (eg. Multiselect mode or edited Property). It is also combined with UBIKAccentColor to form a gradient on the Authentication area.&lt;br /&gt;
* As in WinX {{Version/WinXSince|4.0}}, the various possible object status indicators were exported to a template called '''StatusIndicators''' located in UBIKThemes. These are now displayed at the top right of the item template, with a semi-opaque underlay in case the indicators appear over Title/SubTitle text.&lt;br /&gt;
* '''SfTextInputLayout''' was introduced and is used in various locations (Authentication, and properties).&lt;br /&gt;
* Default values for size, font, color, etc, were applied to various controls (Picker, Entry etc) for consistency.&lt;br /&gt;
* New '''SfListView''' styles were introduced and the originals moved to the Obsolete section.&lt;br /&gt;
** The listview now has a background color (UBIKMediumElementColor) and child item templates are now responsible for providing their own background color (UBIKBasePageColor that is applied to the Grid style UBIKItemBase). &lt;br /&gt;
*** The intention is to provide visual distinction from actual list items and empty list 'space'.&lt;br /&gt;
*** However, this will interfere with lists that rely on the SelectionBackground to highlight selection. This is solved in various ways throughout the UI, such as the SelectedIndicator used in UBIKChildItem, or the seperate SelectedItem and SelectedItemTemplate templates used in UBIKEditGuid.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adaptivity ===&lt;br /&gt;
- tbd.&lt;br /&gt;
&lt;br /&gt;
=== Layout and Functionality ===&lt;br /&gt;
* '''UBIKNavigationBar''' was introduced as a templatable alternative to the hardcoded context menu (accessed by the '...' button in the top right of the content area) and is fully customizable.&lt;br /&gt;
* Shadowed panels were introduced in place of floating buttons in the content tabs (Children, Properties). For consistency, both are located at the top of their respective tab content.&lt;br /&gt;
* '''UBIKChildItem''' was visually simplified. It now displays a simple icon, the Title (and MRO progress, if any) and Subtitle, and StatusIndicators in the top right. The progressbar is now displayed across the bottom of the item.&lt;br /&gt;
* '''UBIKTaskItem''' was completely redesigned. &lt;br /&gt;
** Aside from the StatusIndicators that appear in the top right uniformly on any context object, MRO-related ones (Task status (Finished, NA, or Not Necessary, Group Limit and Size, Previous Value, and Tech Indicator) appear on the top left contained in an SfChipGroup. &lt;br /&gt;
** The main area of the task item is previously split between Title and task-related input. On smaller devices or in editing regardless of screen size, the input area sizes becomes larger.&lt;br /&gt;
** The task related input now looks visually distinct with and without a value. UBIKButton(Text)Color is used for 'new' tasks, while UBIKButtonToggled(Text)Color is used for the 'value filled' state.&lt;br /&gt;
&lt;br /&gt;
=== File Structure ===&lt;br /&gt;
* '''UBIKRootItem''' (formerly UBIKMainItem) was introduced simply so that the Title, Area, and Item are organized together within the default and customizing folders. For compatibility, UBIKMainItem still exists in the default folder, however, be aware that the listview in UBIKRootArea now requests UBIKRootItem as the ItemTemplate by default.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;br /&gt;
&lt;br /&gt;
== Customizing Guides ==&lt;br /&gt;
=== Dark Theme ===&lt;br /&gt;
While UBIK Go does not include a Dark Theme by default, a lot of effort was invested in optimizing the color resources used throughout the app, so that a dark theme can be quickly customized. Furthermore, below is a list of recommended changes that result in a functional dark theme.&lt;br /&gt;
&lt;br /&gt;
'''In UBIKThemes:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;x:String x:Key=&amp;quot;TextFontFamily&amp;quot;&amp;gt;InterL&amp;lt;/x:String&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Replace the value for TextFontFamily with &amp;quot;InterL&amp;quot;; It is recommended to use a thinner font as white on black looks bolder than the inverse.&lt;br /&gt;
A 'Light' version of the default font font was added and can be accessed using the tag InterL.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKRegularTextColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKMediumTextColor&amp;quot;&amp;gt;#A3ffffff&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKBasePageColor&amp;quot;&amp;gt;#3a3a3c&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKMainThemeColor&amp;quot;&amp;gt;#2c2c2e&amp;lt;/Color&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKBorderColor&amp;quot;&amp;gt;#181719&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKElementColor&amp;quot;&amp;gt;#2c2c2e&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKLightElementColor&amp;quot;&amp;gt;#222124&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKFinishedElementColor&amp;quot;&amp;gt;#2a2a2b&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKOverlayElementColor&amp;quot;&amp;gt;#3D000000&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKImageOverlayColor&amp;quot;&amp;gt;#A3000000&amp;lt;/Color&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKButtonColor&amp;quot;&amp;gt;#181719&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKButtonTextColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt; &lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKButtonToggledColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKButtonToggledTextColor&amp;quot;&amp;gt;Black&amp;lt;/Color&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKPDFSelectedToolColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKPDFSelectedToolTextColor&amp;quot;&amp;gt;#292929&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKPDFTextColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKPDFBaseColor&amp;quot;&amp;gt;#181719&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Replace the above color resources (or similar).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Shadow&lt;br /&gt;
        x:Key=&amp;quot;UBIKPanelShadow&amp;quot;&lt;br /&gt;
        Brush=&amp;quot;Black&amp;quot; ... /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Change the value for the attribute Brush to &amp;quot;Black&amp;quot; to darken the panel shadows.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKProgressBarUndefinedStatuscolor&amp;quot;&amp;gt;#636365&amp;lt;/Color&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;Style x:Key=&amp;quot;UBIKProgressBar&amp;quot; TargetType=&amp;quot;controls:ProgressBar&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Setter Property=&amp;quot;StatusColor&amp;quot; Value=&amp;quot;{Binding ClassificationHandler.StatusColor, Converter={StaticResource IntToColor}, ConverterParameter={StaticResource UBIKProgressBarUndefinedStatuscolor}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The light theme uses UBIKElementColor for the progress bar color when none is defined on the server. However, this does not invert well in a dark theme. Therefore a new color resource should be introduced (&amp;quot;UBIKProgressBarUndefinedStatuscolor&amp;quot;) and used in the ConverterParameter of the IntToColor converter, which does not accept a color hex code directly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''In UBIKSplashArea:'''&lt;br /&gt;
&lt;br /&gt;
Follow the instructions embedded within the file to replace the splash image with a custom logo. Alternatively, simply adapt the Source attribute of the Image control to &amp;quot;splashlogoinverse.png&amp;quot; to apply an inversion of the UBIK Go logo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Increased FontSize ===&lt;br /&gt;
tbd.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Mobile_XAML&amp;diff=29369</id>
		<title>Mobile XAML</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Mobile_XAML&amp;diff=29369"/>
				<updated>2026-02-17T06:54:49Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* Feature related */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The User Interface of the Mobile Clients (Android, iOS, Windows) can be fundamentally customized using custom XAML definitions. This customization process is heavily influenced by the [[XAML|XAML Customization Process on the WinX Client]].&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
There are predefined XAML templates available that can be customized. If no customizing is found, the default templates will be used.&lt;br /&gt;
&lt;br /&gt;
== Default XAMLs ==&lt;br /&gt;
All default XAML templates that can be customized are available through the Mobile Windows client. You need to go to the app settings and click the &amp;quot;Unpack default XAMLs&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
== Differences to WinX/UWP ==&lt;br /&gt;
* Since it's based on the Mobile XAML dialect, you CANNOT use any existing XAML customizings for the WinX/UWP app;&lt;br /&gt;
* Namespace definitions must include the corresponding assembly names;&lt;br /&gt;
* XAML template files have the extension name of '''xamlx''' instead of '''xaml''';&lt;br /&gt;
* You can deploy only those resources that you want to customize. (This is also the case for newer versions of WinX/UWP. {{Version/WinXSince|3.6}})&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Overriding default XAMLs=&lt;br /&gt;
On Windows (WinX/UWP), the &amp;lt;code&amp;gt;[App Package Folder]/LocalState/xaml/&amp;lt;/code&amp;gt; folder can be accessed by the user and the customized XAML files directly added. An alternative to this on all platforms (including Android, iOS, etc.) is to use the ''Import Customizing'' button in the app settings to import the templates, styles, images, etc. (file by file, or all files within a zip package). The changes should be reflected in the UI (except the current page) without restarting the app. After directly editing the customizings (Mobile Windows), you can also use the &amp;quot;Reload customizing&amp;quot; button without restarting the app.&lt;br /&gt;
&lt;br /&gt;
In the following, we're going to override the default light theme color of the app:&lt;br /&gt;
* Unpack the default XAMLs;&lt;br /&gt;
* Pick and deploy the default UBIKThemes.xamlx to the '''xaml''' folder inside the ''LocalState'' folder;&lt;br /&gt;
* Open it with the text editor of your choice and remove everything within the '''ResouceDictionary''' except &amp;lt;code&amp;gt;&amp;lt;Color x:Key=&amp;quot;UBIKLightThemeColor&amp;quot;&amp;gt;blue&amp;lt;/Color&amp;gt;&amp;lt;/code&amp;gt;;&lt;br /&gt;
* Save the changes and reload. You should see changes successfully implemented.&lt;br /&gt;
&lt;br /&gt;
{{Attention| For maintainability reasons, it's HIGHLY recommended to deploy only those XAML resources you want to override. For example, if you only want to customize the UBIKChildArea, don't deploy others like the UBIKMenuArea. If you only want to customize the UBIKChildItem, that's the only content you should include in the UBIKThemes.}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Custom Templates ==&lt;br /&gt;
Custom templates can be added, just like on the WinX/UWP client. Make sure to include all '''namespace definitions''' (as attributes of the '''ContentView''' tag), otherwise the custom template will not load.&lt;br /&gt;
&lt;br /&gt;
Similar to the ''UBIKThemes.xamlx'' file, custom or overridden templates start with a &amp;lt;code&amp;gt;&amp;lt;ContentView&amp;gt;&amp;lt;/code&amp;gt; tag containing all '''namespaces'''. &amp;lt;code&amp;gt;&amp;lt;ContentView.Resources&amp;gt;&amp;lt;/code&amp;gt; takes a '''ResourceDictionary''' and contains resources like references to converters. Finally, &amp;lt;code&amp;gt;&amp;lt;ContentView.Content&amp;gt;&amp;lt;/code&amp;gt; contains the actual layout content (it's best to start with a '''Grid'''). Again, don't forget to add namespaces that you need!&lt;br /&gt;
&lt;br /&gt;
Templates can also be defined in ''UBIKThemes.xamlx''. In this case, they need to be added into the &amp;lt;code&amp;gt;&amp;lt;ResourceDictionary&amp;gt;&amp;lt;/code&amp;gt; inside the &amp;lt;code&amp;gt;&amp;lt;ContentView.Resources&amp;gt;&amp;lt;/code&amp;gt; template as a &amp;lt;code&amp;gt;&amp;lt;DataTemplate&amp;gt;&amp;lt;/code&amp;gt;. Similarly, if you want to split up the templates into seperate files, you need to make sure to follow the steps mentioned above and get the content of the &amp;lt;code&amp;gt;&amp;lt;DataTemplate&amp;gt;&amp;lt;/code&amp;gt; into the &amp;lt;code&amp;gt;&amp;lt;ContentView.Content&amp;gt;&amp;lt;/code&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
{{Attention|Templates defined in separate files will override templates defined in the ''UBIKThemes.xamlx''!}}&lt;br /&gt;
&lt;br /&gt;
=== Bindings in resources ===&lt;br /&gt;
When using bindings such as [[Xamarin_XAML#Content_filtering|this]] in a resource located in a custom template, it is necessary to place the template in a UBIKContentView.&lt;br /&gt;
&lt;br /&gt;
{{Hint|Technically speaking, this is because bindable objects in the ResourceDictionary of a ContentView (the custom template) don't automatically inherit the BindingContext from the container/parent view. UBIKContentView is created to additionally do that.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- UBIKCustomView.xamlx --&amp;gt;&lt;br /&gt;
&amp;lt;ContentView...&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;controls:SfDataSourceExt... ItemsSource=&amp;quot;{Binding Children.Items}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Container where UBIKCustomView is placed, e.g. UBIKChildArea.xamlx --&amp;gt;&lt;br /&gt;
&amp;lt;ContentView...&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
    &amp;lt;controls:UBIKContentView Content=&amp;quot;{Binding [UBIKCustomView], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Adding Images ==&lt;br /&gt;
Images can't be loaded with the default '''Image''' tag, as the image is on different paths on each operating system.&lt;br /&gt;
&lt;br /&gt;
Therefore, there's a custom '''FileImage''' that internally overrides the default ''Image'' with two custom parameters:&lt;br /&gt;
* '''FolderName''' ...The name of the '''folder''' in the '''local folder'''. Only the first level inside the ''LocalState'' folder seems to work.&lt;br /&gt;
* '''FileName''' ...The name of the '''file''' in the said folder. &lt;br /&gt;
&lt;br /&gt;
Make sure to implement the proper namespace as well by adding&lt;br /&gt;
&amp;lt;code&amp;gt;xmlns:fimage=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;lt;/code&amp;gt; into the root item's attributes.&lt;br /&gt;
&lt;br /&gt;
Then, the image can be loaded using:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;fimage:FileImage FileName=&amp;quot;image.png&amp;quot; FolderName=&amp;quot;xaml&amp;quot;/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This snipped loads the image called '''image.png''' located in the '''xaml''' folder inside the ''LocalState''.&lt;br /&gt;
&lt;br /&gt;
Furthermore, the ''FileImage'' tag doesn't seem to support most attributes. Therefore place it inside a '''Grid''' to achieve a perfect layout.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Custom Icons ==&lt;br /&gt;
Moved to article [[XAML_Tips#Custom_Icons]].&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Converters==&lt;br /&gt;
:''Main Page: [[Converters_In_Mobile]]''&lt;br /&gt;
&lt;br /&gt;
They are used to convert specific data into some desired output, using custom logic. &lt;br /&gt;
&lt;br /&gt;
Consider the following example:&amp;lt;br/&amp;gt;&lt;br /&gt;
A label saying ''There are no children items available!'' should only be visible if the number of children-items is 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
&lt;br /&gt;
== Feature related ==&lt;br /&gt;
&lt;br /&gt;
=== Customizing Menu Button {{Version/XamarinSince|4.6.0}} === &lt;br /&gt;
&lt;br /&gt;
For the Mobile Client, it is possible to show/hide the '''Menu button''' of the client.&amp;lt;br&amp;gt;&lt;br /&gt;
To customize the visibility of the '''Menu button''' you have to edit the default XAML '''Themes''' file.&lt;br /&gt;
&lt;br /&gt;
* Search for &amp;quot;'''ShowMenuToolBar'''&amp;quot; in the Themes file.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
If there isn't any &amp;quot;'''ShowMenuToolBar'''&amp;quot; in your XAML Themes file, you just have to create one, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;x:Boolean x:Key=&amp;quot;ShowMenuToolBar&amp;quot;&amp;gt;true&amp;lt;/x:Boolean&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Set the value to &amp;quot;true&amp;quot; to show the '''Menu button''' (default value).&lt;br /&gt;
* Set the value to &amp;quot;false&amp;quot; to hide the '''Menu button'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=&amp;quot;300&amp;quot; heights=&amp;quot;500&amp;quot;&amp;gt;&lt;br /&gt;
File:menu_button_show.png|Menu Button shown&lt;br /&gt;
File:menu_button_hiddenV3.png|Menu Button hidden&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Content filtering ===&lt;br /&gt;
For the Mobile clients, an &amp;quot;SfDataSourceExt&amp;quot; type is available for filtering list of items using defined expressions.&amp;lt;br /&amp;gt;&lt;br /&gt;
The following example demonstrates how to filter for child items having certain property values. The filtered list and its count can be displayed in the UI.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ContentView&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&lt;br /&gt;
    ...&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;x:String x:Key=&amp;quot;Expresssion&amp;quot;&amp;gt;Item.Values[&amp;amp;quot;MP_YEAR&amp;amp;quot;].Contains(&amp;amp;quot;2019&amp;amp;quot;)&amp;lt;/x:String&amp;gt;&lt;br /&gt;
            &amp;lt;controls:SfDataSourceExt  x:Key=&amp;quot;FilteredList&amp;quot; Expression=&amp;quot;{StaticResource Expresssion}&amp;quot; ItemsSource=&amp;quot;{Binding Children.Items}&amp;quot; Unloaded=&amp;quot;{Binding SkipFiltering}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
    &amp;lt;StackLayout Orientation=&amp;quot;Vertical&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;Label Text=&amp;quot;{Binding DisplayItemsCount, Source={StaticResource FilteredList}}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt ItemsSource=&amp;quot;{Binding DisplayItems, Source={StaticResource FilteredList}}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/StackLayout&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Notes on using bindings in ResourceDictionary ====&lt;br /&gt;
In the example shown above, you can see &amp;lt;code&amp;gt;{Binding Children.Items}&amp;lt;/code&amp;gt; is used. For this to work, the SfDataSourceExt control inside the ResourceDictionary must inherit the binding data context properly.&lt;br /&gt;
* In this case, that data context comes from where this template (UBIKChildArea.xamlx) is used, namely the UBIKContentArea.xamlx;&lt;br /&gt;
* When referencing this template in a ContentView control, the binding data context is '''NOT''' automatically inherited by the controls inside the ResourceDictioinary;&lt;br /&gt;
* That's why we use a UBIKContentView control instead. You can find its example usage in the default UBIKContentArea.xamlx template.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Search ===&lt;br /&gt;
In the default UBIKMenuArea.xamlx (where the search UI is hosted), there are two commands associated with two events. See below.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;SearchBar ...&amp;gt;&lt;br /&gt;
    &amp;lt;SearchBar.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior&lt;br /&gt;
            Command=&amp;quot;{Binding FreeTextSearchCommand}&amp;quot;&lt;br /&gt;
            CommandParameter=&amp;quot;{Binding Path=Text, Source={x:Reference SearchField}}&amp;quot;&lt;br /&gt;
            EventName=&amp;quot;SearchButtonPressed&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding DelayedFreeTextSearchCommand}&amp;quot; EventName=&amp;quot;TextChanged&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/SearchBar.Behaviors&amp;gt;&lt;br /&gt;
&amp;lt;/SearchBar&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The one for &amp;lt;code&amp;gt;SearchButtonPressed&amp;lt;/code&amp;gt; is responsible for executing searches after the user confirms the input (e.g. pressing {{{keypress|Enter}}} or the search button).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The one for &amp;lt;code&amp;gt;TextChanged&amp;lt;/code&amp;gt; is responsible for the &amp;quot;search as you type&amp;quot; behavior. Namely it triggers an automatic search shortly (half second) after the user stops changing the text in the search bar. It can be turned off by simply removing that particular behavior.&lt;br /&gt;
&lt;br /&gt;
=== DisplayViewCommand ===&lt;br /&gt;
This command can be used to [[Custom_View_(Client)|display custom views]].&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
=== Flashlight ===&lt;br /&gt;
For the Mobile clients, it is possible to control the system flashlight via customizing and switch it on or off.&lt;br /&gt;
&lt;br /&gt;
The available properties can, for example, be bound to a Switch or CheckBox, as demonstrated below. These properties allow you to:&lt;br /&gt;
* Determine whether the device supports flashlight functionality (IsFlashSupported)&lt;br /&gt;
* Check whether the flashlight is currently turned on or off (IsFlashEnabled)&lt;br /&gt;
* Toggle the flashlight on or off via user interaction (SwitchFlashLight) &lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
If an attempt is made to enable the flashlight on a device that does not provide flashlight support, no action is performed.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Switch&lt;br /&gt;
! controls:CheckBox&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Switch IsToggled=&amp;quot;{Binding AppStatus.SwitchFlashLight, Mode=TwoWay}&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:CheckBox&lt;br /&gt;
    x:Name=&amp;quot;PropertyToggle&amp;quot;&lt;br /&gt;
    CheckSymbol=&amp;quot;&amp;amp;#x1F526;&amp;quot;&lt;br /&gt;
    IsVisible=&amp;quot;{Binding AppStatus.IsFlashSupported}&amp;quot;&lt;br /&gt;
    IsChecked=&amp;quot;{Binding AppStatus.SwitchFlashLight, Mode=TwoWay}&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource UBIKIconToggleButton}&amp;quot;&lt;br /&gt;
    SymbolSize=&amp;quot;20&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;controls:CheckBox.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger&lt;br /&gt;
            Binding=&amp;quot;{Binding AppStatus.IsFlashEnabled}&amp;quot;&lt;br /&gt;
            TargetType=&amp;quot;controls:CheckBox&amp;quot;&lt;br /&gt;
            Value=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;Background&amp;quot; Value=&amp;quot;{StaticResource UBIKAccentColor}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
   &amp;lt;/controls:CheckBox.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:CheckBox&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;br /&gt;
&lt;br /&gt;
== Performance ==&lt;br /&gt;
To get a good performance in the app UI when using your Xaml customizings, it is recommended to try the following.&lt;br /&gt;
* Always keep your UI structure simple. Choose the most efficient layouts for the scenarios and avoid unnecessary UI elements. Please refer to [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/performance#choose-the-correct-layout &amp;quot;choose the correct layout&amp;quot;] and [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/performance#reduce-the-visual-tree-size &amp;quot;reduce the visual tree size&amp;quot;];&lt;br /&gt;
* Turn on [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/layouts/layout-compression layout compression] on wrapping elements that don't have any visual parameters set (reasons stated in the linked documentation).&lt;br /&gt;
{{Hint|There is a default &amp;quot;HeadlessLayout&amp;quot; style available in the app you can use on elements such as Grids, StackLayouts, ContentViews, etc. It turns on [[Xamarin_XAML#Layout_compression_examples|layout compression]] on the applied elements in Xamarin.Android (since we find it not worth the effort in Xamarin.iOS).}}&lt;br /&gt;
{{Attention|If possible, one should always favor designing the UI with less wrapping elements over turning on layout compression on unnecessary ones.}}&lt;br /&gt;
&lt;br /&gt;
=== General performance tips ===&lt;br /&gt;
* Reduce number of views per page&lt;br /&gt;
* Don’t bind things if they could be set static easily&lt;br /&gt;
* If you do not change the default, don’t set it explicit. For example, [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.StackLayout.Orientation?view=xamarin-forms Orientation of StackLayout] is “Vertical” by default. No need to set it manually if you don’t want to change it.&lt;br /&gt;
* Transparency is expensive.&lt;br /&gt;
* Use async/await to avoid blocking user interface.&lt;br /&gt;
* Do not put ListViews into ScrollViews.&lt;br /&gt;
* To stack elements, create a grid and add them to the same cell one after another. It’s cheaper than RelativeLayout.&lt;br /&gt;
* Use Margins instead of Paddings.&lt;br /&gt;
&lt;br /&gt;
=== Layouts ===&lt;br /&gt;
* Choose correct Layout, e.g. no need to add a StackLayout if it only has 1 child.&lt;br /&gt;
* [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/layouts/layout-options LayoutOptions].Fill or .FillAndExpand are best choice in most cases. And they are already default, so no need to set.&lt;br /&gt;
* Autosize of rows and columns in grids should used as few as possible.&lt;br /&gt;
* RelativeLayout is very expensive. Try to avoid.&lt;br /&gt;
* In StackLayout, make sure there is only 1 LayoutOptions Expand.&lt;br /&gt;
&lt;br /&gt;
=== Labels ===&lt;br /&gt;
* Use [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/label#formatted-text FormattedText] instead of multiple labels.&lt;br /&gt;
* Use [https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.linebreakmode?view=xamarin-forms Linebreakmode] NoWrap (which is already the default).&lt;br /&gt;
* Avoid [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.Label.VerticalTextAlignment?view=xamarin-forms VerticalTextAlignment]. Anyway, if needed, use VerticalTextAligment instead of &lt;br /&gt;
VerticalOptions.&lt;br /&gt;
* Use the &amp;quot;TextTransform&amp;quot; attribute to convert the value of the &amp;quot;Text&amp;quot; attribute to either uppercase or lowercase.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Label&lt;br /&gt;
      TextTransform=&amp;quot;Uppercase&amp;quot;&lt;br /&gt;
      Text=&amp;quot;{Binding Properties.AllItems[DESCR].DisplayValue}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Images ===&lt;br /&gt;
* Provide images in optimized width and size. Provide multiple resolutions for different usage.&lt;br /&gt;
* Set [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.Image.IsOpaque?view=xamarin-forms IsOpaque] to true if image is opaque.&lt;br /&gt;
&lt;br /&gt;
=== Layout compression examples ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView ControlTemplate=&amp;quot;{DynamicResource ChangedSymbol}&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The code above removes one wrapping element added automatically by the ContentView and demonstrates a good reason to use layout compression because it can not be avoided otherwise.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid Margin=&amp;quot;2&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label Margin=&amp;quot;5&amp;quot; Text=&amp;quot;{Binding Title}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This example, on the other hand, demonstrates a bad usage of layout compression because it can be easily achieved by better designs such as using only the Label with a merged margin.&lt;br /&gt;
&lt;br /&gt;
Sometimes the content inside a compressed layout appears on a wrong z-index level. For eample:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;BoxView CornerRadius=&amp;quot;14&amp;quot; HeightRequest=&amp;quot;28&amp;quot; WidthRequest=&amp;quot;28&amp;quot; Color=&amp;quot;Red&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;ContentView ControlTemplate=&amp;quot;{DynamicResource Badge}&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label Text=&amp;quot;{Binding Title}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView &amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
According to the order of the BoxView and the Label, the latter should appear on top of the former (later ones have higher z-index levels). However, this can be disturbed by layout compression, causing the exact opposite.&lt;br /&gt;
In this case, you can add a &amp;lt;code&amp;gt;xmlns:android=&amp;quot;clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core&amp;quot;&amp;lt;/code&amp;gt; namespace to your Xaml file and manually elevate the Label by specifying &amp;lt;code&amp;gt;android:VisualElement.Elevation=&amp;quot;X&amp;quot;&amp;lt;/code&amp;gt; on it accordingly (X is the delta of the z-index level you want).&lt;br /&gt;
&lt;br /&gt;
=== SfListViewExt ===&lt;br /&gt;
For performance reasons, we created an extended version of the Syncfusion SfListView control and it should be used for all lists in customizings. You need to add a namespace like &amp;lt;code&amp;gt;xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;lt;/code&amp;gt; to your Xaml file and use it like &amp;lt;code&amp;gt;&amp;lt;controls:SfListViewExt ... /&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{{Hint|Technically speaking, SfListViewExt informs item view models when their corresponding item views appear on / disappear from the screen. This way, view models can skip a lot of unnecessary work (on the UI) when their views are not visible. '''If SfListView is used instead, the item views will not reflect content changes until the page is reloaded/refreshed.'''}}&lt;br /&gt;
&lt;br /&gt;
It is possible to configure the ListView, that the ScrollPosition is remembered when navigating away from the page, to do so, the property RembemberScrollPosition needs to be set to true. If unset, the value defaults to false and the scroll positions are not remembered.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt RememberScrollPosition=&amp;quot;True&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Delay and LazyLoading ===&lt;br /&gt;
{{Attention|Although both properties can be set in XAML on the two controls, this should not be done. When both the LazyLoading and Delay properties are set, the Delay property is ignored in the code-behind, as otherwise it could lead to unexpected behavior and, in the worst case, result in performance degradation.}}&lt;br /&gt;
&lt;br /&gt;
==== Delay in UBIKContentView and ContentControl {{Version/MobileSince|5.1}} ====&lt;br /&gt;
More complex UIs create a delay in rendering which leads to a feeling of &amp;quot;unresponsiveness&amp;quot; when navigating through the client. This is because the app loads and displays everything at once, leading to a larger delay between triggering navigation and completion of page loading.&lt;br /&gt;
 &lt;br /&gt;
While the complexity of the UI directly affects the time taken to render it, the experience of responsiveness can be somewhat improved by actually adding a delay between the loading of the content page, and actual data content (properties, children, etc). By not loading both at once, resources are freed up in the app, leading to a quicker loading of the basic page. The content then loads in at its normal speed.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Starting from version 5.1, a small delay was introduced in the content heavy pages (child page, document page and query page). However, additional delays can also be applied to the custom UI at will, using a new property added to two existing controls used 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.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! UBIKContentView&lt;br /&gt;
! ContentControl&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView &lt;br /&gt;
    Delay=&amp;quot;50&amp;quot; &lt;br /&gt;
    Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ContentControl &lt;br /&gt;
    Delay=&amp;quot;50&amp;quot; &lt;br /&gt;
    ContentTemplate=&amp;quot;{Binding [UBIKNavigationBar], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Hint|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.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Delay applies ✅&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView Delay=&amp;quot;50&amp;quot; Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot; ConverterParameter=&amp;quot;UBIKChildArea&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Delay doesn't apply ❌&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView Delay=&amp;quot;50&amp;quot; Content=&amp;quot;{Binding [UBIKChildArea], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Lazy Loading in UBIKContentView and ContentControl {{Version/MobileSince|5.1}} ====&lt;br /&gt;
&lt;br /&gt;
To further improve performance, it is now possible to apply LazyLoading to UBIKContentView and ContentControl. &lt;br /&gt;
&lt;br /&gt;
When a ContentTemplate is assigned to either of these controls and the LazyLoading property is set to true, the content is only loaded when it is explicitly requested. The difference between this and simply controlling the IsVisible condition is that in the latter, resources are still consumed in constructing the UI element, even though it is not shown. Note that Lazy loading requires a trigger to determine when the content should be loaded, and the biggest benefit is experienced when complex elements, especially those hosting a ListView or some kind of object/property collection, are lazy-loaded. &lt;br /&gt;
&lt;br /&gt;
UBIKTabView is optimized to make use of the LazyLoading attribute when it is applied to tab content. Additionally, usage outside of UBIKTabView is possible, as the loading can be triggered as a behavior attached to any other control, such as a button with an IsClicked behavior handler. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''UBIKTabView with LazyLoading'''&lt;br /&gt;
&lt;br /&gt;
When used in combination with UBIKTabView (by including the LazyLoading=True attribute on any UBIKContentView or ContentControl content of a tab item, as is now standard {{Version/MobileSince|5.1}}), only the content of the selected tab is rendered (by default, the first tab). The content of non-selected tabs is not. When switching tabs, UBIKTabView takes care of triggering the rendering of the content for the newly selected tab. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! UBIKContentView&lt;br /&gt;
! ContentControl&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;controls:UBIKContentView &lt;br /&gt;
            Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot; &lt;br /&gt;
            ConverterParameter=&amp;quot;UBIKPropertyArea&amp;quot; &lt;br /&gt;
            LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
 &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;controls:ContentControl &lt;br /&gt;
            ContentTemplate=&amp;quot;{DynamicResource MyTemplate}&amp;quot;&lt;br /&gt;
            LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
 &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Using another control as a trigger for lazy loading'''&lt;br /&gt;
&lt;br /&gt;
Other controls (e.g., Button, CheckBox, etc.) can also serve as triggers for lazy loading. The benefit of this is that LazyLoading can still be applied to a complex UBIKContentView or ContentControl that is not hosted within a UBIKTabView. &lt;br /&gt;
&lt;br /&gt;
And example of a usecase is a togglebutton that reveals a section of content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;Grid RowDefinitions=&amp;quot;*,50,*&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;Button&lt;br /&gt;
            x:Name=&amp;quot;LoadDocuments&amp;quot;&lt;br /&gt;
            Grid.Row=&amp;quot;1&amp;quot;&lt;br /&gt;
            HeightRequest=&amp;quot;50&amp;quot;&lt;br /&gt;
            HorizontalOptions=&amp;quot;Center&amp;quot;&lt;br /&gt;
            Text=&amp;quot;LazyLoadDocuments&amp;quot;&lt;br /&gt;
            WidthRequest=&amp;quot;200&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Button.Behaviors&amp;gt;&lt;br /&gt;
                &amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;Clicked&amp;quot;&amp;gt;&lt;br /&gt;
                    &amp;lt;behaviors:InvokeMethodAction MethodName=&amp;quot;TriggerLazyLoad&amp;quot; TargetObject=&amp;quot;{Binding Source={x:Reference DocumentsAreaLoader}}&amp;quot; /&amp;gt;&lt;br /&gt;
                &amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&lt;br /&gt;
            &amp;lt;/Button.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;/Button&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;controls:UBIKContentView&lt;br /&gt;
            x:Name=&amp;quot;DocumentsAreaLoader&amp;quot;&lt;br /&gt;
            Grid.Row=&amp;quot;2&amp;quot;&lt;br /&gt;
            Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot;&lt;br /&gt;
            ConverterParameter=&amp;quot;UBIKDocumentArea&amp;quot;&lt;br /&gt;
            LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Known issues =&lt;br /&gt;
&lt;br /&gt;
=== Headlesslayout style in custom UBIKThemes causing problems ===&lt;br /&gt;
&lt;br /&gt;
In our default '''UBIKThemes''', we are currently using this style for a headless layout:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Style x:Key=&amp;quot;HeadlessLayout&amp;quot; TargetType=&amp;quot;Layout&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Setter Property=&amp;quot;CompressedLayout.IsHeadless&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;Setter.Value&amp;gt;&lt;br /&gt;
            &amp;lt;OnPlatform&lt;br /&gt;
                x:TypeArguments=&amp;quot;x:Boolean&amp;quot;&lt;br /&gt;
                Android=&amp;quot;True&amp;quot;&lt;br /&gt;
                WinPhone=&amp;quot;False&amp;quot;&lt;br /&gt;
                iOS=&amp;quot;False&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/Setter.Value&amp;gt;&lt;br /&gt;
    &amp;lt;/Setter&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
This style is used for better UI performance on Android.&lt;br /&gt;
Using this style in a '''custom UBIKThemes''' could cause an exception &amp;amp; an app crash, or some objects to disappear.&lt;br /&gt;
The best case would be to '''not''' include it in the custom themes file, as it's unnecessary if you don't want to make any changes here.&lt;br /&gt;
&lt;br /&gt;
'''This issue is only known on Android tablet devices.'''&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== DataTrigger Issues ===&lt;br /&gt;
==== Conflicting Triggers ====&lt;br /&gt;
DataTriggers in Mobile function better than the equivalent DataTriggerBehavior in UWP as they automatically handle the opposite case when a Boolean attribute value is set. This means that if a boolean DataTrigger is set, such as IsVisible=True, the False visibility will automatically be set if the Binding/Value condition is not met.&lt;br /&gt;
&lt;br /&gt;
However, this means that stacking multiple DataTriggers on the same attribute can lead to unexpected results. For this reason, it is recommended to use as few DataTriggers as possible. &lt;br /&gt;
* Avoid setting the same attribute more than once; do not set the same value as a default attribute and in the DataTrigger (ControlTemplate in the below example).&lt;br /&gt;
* Ideally, use only DataTriggers without a default ControlTemplate. This ensures that content is created only after the trigger evaluation is complete. If a default ControlTemplate is set, it is always loaded immediately, even if another template is applied right after.&lt;br /&gt;
* It is acceptable, but not recommended, to combine a single DataTrigger with an opposite default value, but only if the default value is different from all values set in triggers.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Don't Do&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot; ControlTemplate=&amp;quot;{StaticResource SelListTemplate}&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource SelListTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Instead Do&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource SelListTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Acceptable, but not recommended&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot; ControlTemplate=&amp;quot;{StaticResource SelListTemplate}&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== DataTrigger to set Footer Properties in a ListView ====&lt;br /&gt;
&lt;br /&gt;
When using a DataTrigger to set the properties of a footer for a ListView, the sequence of the properties inside the DataTrigger might matter in some cases.&lt;br /&gt;
It seems to occur since Version 4.4 due to a Syncfusion update and could lead to the page not being rendered properly and appearing empty.&lt;br /&gt;
&lt;br /&gt;
If you encounter such an issue, please workaround by adding the IsStickyFooter Property Setter on top inside the DataTrigger.&lt;br /&gt;
Also, new customizings should consider this workaround as a preventive action.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS DOESN'T WORK IN CERTAIN CASES --&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt ...&amp;gt;&lt;br /&gt;
	&amp;lt;controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
		&amp;lt;DataTrigger TargetType=&amp;quot;controls:SfListViewExt&amp;quot; Binding=&amp;quot;{Binding Title}&amp;quot; Value=&amp;quot;Administration&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterTemplate&amp;quot; Value=&amp;quot;{DynamicResource AddLoginFooter}&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterSize&amp;quot; Value=&amp;quot;64&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;IsStickyFooter&amp;quot; Value=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
	&amp;lt;/controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt ...&amp;gt;&lt;br /&gt;
	&amp;lt;controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
		&amp;lt;DataTrigger TargetType=&amp;quot;controls:SfListViewExt&amp;quot; Binding=&amp;quot;{Binding Title}&amp;quot; Value=&amp;quot;Administration&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;IsStickyFooter&amp;quot; Value=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterTemplate&amp;quot; Value=&amp;quot;{DynamicResource AddLoginFooter}&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterSize&amp;quot; Value=&amp;quot;64&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
	&amp;lt;/controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Incorrect glyphs may be shown on buttons ===&lt;br /&gt;
&lt;br /&gt;
When using glyphs on buttons in Mobile, sometimes a different glyph than the expected one will show up when viewing the app on Android.&lt;br /&gt;
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.)&lt;br /&gt;
&lt;br /&gt;
If you encounter this issue please workaround by supplying the icon through the FontImageSource property of the button.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Button Command=&amp;quot;{Binding BulkOperation.InvokeOnItemsCommand}&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;Button.ImageSource&amp;gt;&lt;br /&gt;
          &amp;lt;FontImageSource &lt;br /&gt;
               FontFamily=&amp;quot;{DynamicResource UBIKSymbols}&amp;quot;&lt;br /&gt;
               Glyph=&amp;quot;{x:Static resources:UBIKIcons.MobileDelete}&amp;quot;&lt;br /&gt;
               Color=&amp;quot;{DynamicResource UBIKDarkThemeColor}&amp;quot;&lt;br /&gt;
               Size=&amp;quot;22&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;/Button.ImageSource&amp;gt;&lt;br /&gt;
     &amp;lt;Button.CommandParameter&amp;gt;&lt;br /&gt;
          &amp;lt;classes:KeyValueList&amp;gt;&lt;br /&gt;
                    &amp;lt;classes:KeyValueParameter Key=&amp;quot;Command&amp;quot; Value=&amp;quot;DiscardContentCommand&amp;quot; /&amp;gt;&lt;br /&gt;
          &amp;lt;/classes:KeyValueList&amp;gt;&lt;br /&gt;
     &amp;lt;/Button.CommandParameter&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Buttons and gesture recognizers ===&lt;br /&gt;
In Mobile XAML, you can use gesture recognizers on many UI elements such as a Grid to enable the latter to interact with user inputs.&lt;br /&gt;
&lt;br /&gt;
However, we've already made quite a lot of experience that gesture recognizers do not always work on Android and iOS when used on a Button control.&lt;br /&gt;
For example, the following Button won't properly invoke the command on said platforms.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS DOESN'T WORK!!! --&amp;gt;&lt;br /&gt;
&amp;lt;Button ...&amp;gt;&lt;br /&gt;
    &amp;lt;Button.GestureRecognizers&amp;gt;&lt;br /&gt;
        &amp;lt;TapGestureRecognizer Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Button.GestureRecognizers&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Therefore, you should always seek alternatives for Buttons.&lt;br /&gt;
'''If only one command is needed''', use the standard Command property on the Button, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;Button Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Or if multiple commands are needed, use Behaviors '''instead''', e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS ALSO WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;Button xmlns:behaviors=&amp;quot;clr-namespace:UBIK.CPL.Behaviors;assembly=UBIK.CPL&amp;quot; ...&amp;gt;&lt;br /&gt;
    &amp;lt;Button.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; EventName=&amp;quot;Clicked&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding NavigateBackCommand}&amp;quot; EventName=&amp;quot;Clicked&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Button.Behaviors&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== No dynamic reloading of Document Viewer ===&lt;br /&gt;
[[File:PDFViewerFixWiki.JPG]]&lt;br /&gt;
&lt;br /&gt;
In a customizing that combines a single-selection list of documents with some kind of viewer (especially UBIKDocumentContentArea), it is generally the case that switching the document causes the document viewer to then appear blank. The technical reason is that the PDFViewer used in the UBIKDocumentContentArea is not reloaded once the document content is reloaded. &lt;br /&gt;
&lt;br /&gt;
An easy fix is to apply a DataTrigger that unloads the ContentView when the document content is null, as the ContentView is forced to rerender itself when the trigger condition is no longer met.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- Document Viewer --&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView &lt;br /&gt;
    x:Name=&amp;quot;DoucmentViewer&amp;quot; &lt;br /&gt;
    BindingContext=&amp;quot;{Binding SelectedItem, Source={x:Reference DocumentList}}&amp;quot;&lt;br /&gt;
    Content=&amp;quot;{Binding [UBIKDocumentContentArea], Source={x:Static services:TemplateService.Instance}}&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;controls:UBIKContentView.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger TargetType=&amp;quot;controls:UBIKContentView&amp;quot; Binding=&amp;quot;{Binding SelectedItem.DocumentViewModel.DocumentContent, Source={x:Reference DocumentList}, Converter={StaticResource NullToBool}}&amp;quot; Value=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;Content&amp;quot; Value=&amp;quot;{x:Null}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:UBIKContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:UBIKContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Issues with SfPullToRefresh in Mobile client {{Version/MobileSince|5.0}} ===&lt;br /&gt;
Due to a third-party issue, problems may occur on Mobile Android when using the SfPullToRefresh control in combination with the SfListViewExt. This can result in e.g. navigation or task interaction sometimes requiring multiple clicks.&lt;br /&gt;
In general, and due to more issues, it's not recommended to use the SfPullToRefresh control.&lt;br /&gt;
In our Mobile standard client, the PullToRefresh control has been replaced by a Refresh button in the Context Menu.&lt;br /&gt;
If you still decide to use SfPullToRefresh, there are a few points to consider:&lt;br /&gt;
&lt;br /&gt;
==== Avoid multiple SfPullToRefresh controls ====&lt;br /&gt;
To prevent an issue that causes the app to freeze, avoid placing more than one SfPullToRefresh controls as siblings in a xaml hierarchy. If switching between contents in a SfPullToRefresh control is necessary use separate DataTemplates for the contents and use e.g. a DataTrigger to set one of them as the ControlTemplate of a ContentControl inside the SfPullToRefresh control. For an example, refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui#Avoid_multiple_SfPullToRefresh_controls|this link]].&lt;br /&gt;
&lt;br /&gt;
==== Avoid using SyncFusion ListViews directly in SfPullToRefresh controls ====&lt;br /&gt;
To prevent an issue on some Android devices that can cause some items in a SfListViewExt to be rendered incorrectly or not at all after triggering a PullToRefresh, avoid placing a SfListViewExt directly in a SfPullToRefresh control. Instead, wrap the ListView in a DataTemplate and use it in a ContentControl as a child of the SfPullToRefresh control. For an example, refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui#Avoid_using_SyncFusion_ListViews_directly_in_SfPullToRefresh_controls|this link]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= UBIK Go (Maui) Customizing Guide {{Version/MobileSince|5.1}} =&lt;br /&gt;
The change to Maui was taken as an opportunity both to visually update the client's default UI, and to add some quality of life changes aiming to reduce the amount of customizing needed.&lt;br /&gt;
&lt;br /&gt;
This section describes the standard UI and how to more easily customize it.&lt;br /&gt;
&lt;br /&gt;
For differences between Xamarin and Maui, please refer to the [[HowTo:Convert_Xamarin_XAMLs_to_Maui]] article.&lt;br /&gt;
&lt;br /&gt;
== XAML Changes And Improvements ==&lt;br /&gt;
=== Styles and Resources ===&lt;br /&gt;
* Various color elements were renamed for neutrality. This will help clarify the purpose of color themes, and make it easier to keep track of in customizings. The old versions are still available but moved to the Obsolete section of UBIKThemes. &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
UBIKDarkTextColor --&amp;gt; UBIKRegularTextColor&lt;br /&gt;
UBIKDarkThemeColor --&amp;gt; UBIKMainThemeColor&lt;br /&gt;
UBIKLightTextColor --&amp;gt; UBIKMainThemeContrastColor&lt;br /&gt;
UBIKLightThemeColor --&amp;gt; UBIKBasePageColor&lt;br /&gt;
UBIKSubtleTextColor --&amp;gt; UBIKMediumTextColor&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Furthermore, effort was made to create 'contrast pairs' throughout the client; for example, UBIKMainThemeContrastColor is defined primarily for texts layered on elements of UBIKMainThemeColor (such as the title bar and text). &lt;br /&gt;
** The intention here is that this pair can be safely customized with no surprises, that cannot be guaranteed when using non-paired resource. For example, UBIKMainThemeContrastColor  and UBIKBasePageColor are both white in the default customizing, but if UBIKBasePageColor that were to be layered over UBIKMainThemeColor, it would result in a black-on-black issue in a dark theme customizing. &lt;br /&gt;
** The 'pairs' are; &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
UBIKMainThemeColor x UBIKMainThemeContrastColor&lt;br /&gt;
UBIKBasePageColor x UBIKRegularTextColor&lt;br /&gt;
UBIKButtonColor x UBIKButtonTextColor &lt;br /&gt;
UBIKButtonToggledColor x UBIKButtonToggledTextColor &lt;br /&gt;
UBIKPDFBaseColor x UBIKPDFTextColor&lt;br /&gt;
UBIKPDFSelectedToolColor x UBIKPDFSelectedToolTextColor&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* An effort was also made to avoid hardcoding numeric values on the client. Reusable resources were introduced instead; &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKButtonIconSize&amp;quot;&amp;gt;20&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKButtonPanelSize&amp;quot;&amp;gt;56&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKButtonSize&amp;quot;&amp;gt;44&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKListItemSize&amp;quot;&amp;gt;80&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;OnIdiom x:Key=&amp;quot;UBIKTileItemSize&amp;quot; x:TypeArguments=&amp;quot;Thickness&amp;quot; Default=&amp;quot;120&amp;quot; Phone=&amp;quot;100&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKCaptionTextSize&amp;quot;&amp;gt;14&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKButtonTextSize&amp;quot;&amp;gt;16&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKBodyTextSize&amp;quot;&amp;gt;16&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKTitleTextSize&amp;quot;&amp;gt;18&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;x:Double x:Key=&amp;quot;UBIKProgressBarHeight&amp;quot;&amp;gt;4&amp;lt;/x:Double&amp;gt;&lt;br /&gt;
&amp;lt;OnIdiom x:Key=&amp;quot;UBIKAdaptivePadding&amp;quot; x:TypeArguments=&amp;quot;Thickness&amp;quot; Default=&amp;quot;8,0&amp;quot; Phone=&amp;quot;4,0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;OnIdiom x:Key=&amp;quot;UBIKAdaptiveSpacing&amp;quot; x:TypeArguments=&amp;quot;x:Double&amp;quot; Default=&amp;quot;16&amp;quot; Phone=&amp;quot;8&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Regarding corporate colors, there are now additional resources to customize, aside from UBIKAccentColor;&lt;br /&gt;
** UBIKHighlightColor is a secondary accent color used for highlighting (eg. Multiselect mode or edited Property). It is also combined with UBIKAccentColor to form a gradient on the Authentication area.&lt;br /&gt;
* As in WinX {{Version/WinXSince|4.0}}, the various possible object status indicators were exported to a template called '''StatusIndicators''' located in UBIKThemes. These are now displayed at the top right of the item template, with a semi-opaque underlay in case the indicators appear over Title/SubTitle text.&lt;br /&gt;
* '''SfTextInputLayout''' was introduced and is used in various locations (Authentication, and properties).&lt;br /&gt;
* Default values for size, font, color, etc, were applied to various controls (Picker, Entry etc) for consistency.&lt;br /&gt;
* New '''SfListView''' styles were introduced and the originals moved to the Obsolete section.&lt;br /&gt;
** The listview now has a background color (UBIKMediumElementColor) and child item templates are now responsible for providing their own background color (UBIKBasePageColor that is applied to the Grid style UBIKItemBase). &lt;br /&gt;
*** The intention is to provide visual distinction from actual list items and empty list 'space'.&lt;br /&gt;
*** However, this will interfere with lists that rely on the SelectionBackground to highlight selection. This is solved in various ways throughout the UI, such as the SelectedIndicator used in UBIKChildItem, or the seperate SelectedItem and SelectedItemTemplate templates used in UBIKEditGuid.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adaptivity ===&lt;br /&gt;
- tbd.&lt;br /&gt;
&lt;br /&gt;
=== Layout and Functionality ===&lt;br /&gt;
* '''UBIKNavigationBar''' was introduced as a templatable alternative to the hardcoded context menu (accessed by the '...' button in the top right of the content area) and is fully customizable.&lt;br /&gt;
* Shadowed panels were introduced in place of floating buttons in the content tabs (Children, Properties). For consistency, both are located at the top of their respective tab content.&lt;br /&gt;
* '''UBIKChildItem''' was visually simplified. It now displays a simple icon, the Title (and MRO progress, if any) and Subtitle, and StatusIndicators in the top right. The progressbar is now displayed across the bottom of the item.&lt;br /&gt;
* '''UBIKTaskItem''' was completely redesigned. &lt;br /&gt;
** Aside from the StatusIndicators that appear in the top right uniformly on any context object, MRO-related ones (Task status (Finished, NA, or Not Necessary, Group Limit and Size, Previous Value, and Tech Indicator) appear on the top left contained in an SfChipGroup. &lt;br /&gt;
** The main area of the task item is previously split between Title and task-related input. On smaller devices or in editing regardless of screen size, the input area sizes becomes larger.&lt;br /&gt;
** The task related input now looks visually distinct with and without a value. UBIKButton(Text)Color is used for 'new' tasks, while UBIKButtonToggled(Text)Color is used for the 'value filled' state.&lt;br /&gt;
&lt;br /&gt;
=== File Structure ===&lt;br /&gt;
* '''UBIKRootItem''' (formerly UBIKMainItem) was introduced simply so that the Title, Area, and Item are organized together within the default and customizing folders. For compatibility, UBIKMainItem still exists in the default folder, however, be aware that the listview in UBIKRootArea now requests UBIKRootItem as the ItemTemplate by default.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;br /&gt;
&lt;br /&gt;
== Customizing Guides ==&lt;br /&gt;
=== Dark Theme ===&lt;br /&gt;
While UBIK Go does not include a Dark Theme by default, a lot of effort was invested in optimizing the color resources used throughout the app, so that a dark theme can be quickly customized. Furthermore, below is a list of recommended changes that result in a functional dark theme.&lt;br /&gt;
&lt;br /&gt;
'''In UBIKThemes:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;x:String x:Key=&amp;quot;TextFontFamily&amp;quot;&amp;gt;InterL&amp;lt;/x:String&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Replace the value for TextFontFamily with &amp;quot;InterL&amp;quot;; It is recommended to use a thinner font as white on black looks bolder than the inverse.&lt;br /&gt;
A 'Light' version of the default font font was added and can be accessed using the tag InterL.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKRegularTextColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKMediumTextColor&amp;quot;&amp;gt;#A3ffffff&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKBasePageColor&amp;quot;&amp;gt;#3a3a3c&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKMainThemeColor&amp;quot;&amp;gt;#2c2c2e&amp;lt;/Color&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKBorderColor&amp;quot;&amp;gt;#181719&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKElementColor&amp;quot;&amp;gt;#2c2c2e&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKLightElementColor&amp;quot;&amp;gt;#222124&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKFinishedElementColor&amp;quot;&amp;gt;#2a2a2b&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKOverlayElementColor&amp;quot;&amp;gt;#3D000000&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKImageOverlayColor&amp;quot;&amp;gt;#A3000000&amp;lt;/Color&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKButtonColor&amp;quot;&amp;gt;#181719&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKButtonTextColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt; &lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKButtonToggledColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKButtonToggledTextColor&amp;quot;&amp;gt;Black&amp;lt;/Color&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKPDFSelectedToolColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKPDFSelectedToolTextColor&amp;quot;&amp;gt;#292929&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKPDFTextColor&amp;quot;&amp;gt;White&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKPDFBaseColor&amp;quot;&amp;gt;#181719&amp;lt;/Color&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Replace the above color resources (or similar).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Shadow&lt;br /&gt;
        x:Key=&amp;quot;UBIKPanelShadow&amp;quot;&lt;br /&gt;
        Brush=&amp;quot;Black&amp;quot; ... /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Change the value for the attribute Brush to &amp;quot;Black&amp;quot; to darken the panel shadows.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Color x:Key=&amp;quot;UBIKProgressBarUndefinedStatuscolor&amp;quot;&amp;gt;#636365&amp;lt;/Color&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;Style x:Key=&amp;quot;UBIKProgressBar&amp;quot; TargetType=&amp;quot;controls:ProgressBar&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Setter Property=&amp;quot;StatusColor&amp;quot; Value=&amp;quot;{Binding ClassificationHandler.StatusColor, Converter={StaticResource IntToColor}, ConverterParameter={StaticResource UBIKProgressBarUndefinedStatuscolor}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The light theme uses UBIKElementColor for the progress bar color when none is defined on the server. However, this does not invert well in a dark theme. Therefore a new color resource should be introduced (&amp;quot;UBIKProgressBarUndefinedStatuscolor&amp;quot;) and used in the ConverterParameter of the IntToColor converter, which does not accept a color hex code directly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''In UBIKSplashArea:'''&lt;br /&gt;
&lt;br /&gt;
Follow the instructions embedded within the file to replace the splash image with a custom logo. Alternatively, simply adapt the Source attribute of the Image control to &amp;quot;splashlogoinverse.png&amp;quot; to apply an inversion of the UBIK Go logo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Increased FontSize ===&lt;br /&gt;
tbd.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=MRO_(Plugin)&amp;diff=29336</id>
		<title>MRO (Plugin)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=MRO_(Plugin)&amp;diff=29336"/>
				<updated>2026-02-10T08:31:40Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* Basic Features */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The MRO plugin provides a set of {{UBIK}} objects which allow to represent and document maintenance, repair and operations work on the mobile client. An respective implementation of this set of features is available on {{UBIK WinX}}.&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
== Basic Features ==&lt;br /&gt;
Objects classified as MRO objects in general provide a technical and organisational status as well as the overall work progress based on the underlying data branch.&lt;br /&gt;
&lt;br /&gt;
=== Technical Status ===&lt;br /&gt;
For detailed information, see [[MRO Objects (Client)#Technical Status|Technical Status]]&lt;br /&gt;
&lt;br /&gt;
=== Organisational Status ===&lt;br /&gt;
For detailed information, see [[MRO Objects (Client)#Organisational Status|Organisational Status]]&lt;br /&gt;
&lt;br /&gt;
=== Work Progress ===&lt;br /&gt;
For detailed information, see [[MRO Objects (Client)#Work Progress|Work Progress]]&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Module|MRO (Plugin)]]&lt;br /&gt;
&lt;br /&gt;
== MRO Objects ==&lt;br /&gt;
A set of specific objects can be used to provide the required structure for MRO:&lt;br /&gt;
&lt;br /&gt;
=== Task Owner ===&lt;br /&gt;
A [[MROCLS_MRO_TASKOWNER|Task Owner]] is an object having a substructure of jobs to be done. It can have a tree of other task owners or work packages underneath that will update the status of the task owner. This status consists of technical, organisational and progress information. With a task owner a user can get an overview of all the work to be done in the underlying job structure.&lt;br /&gt;
&lt;br /&gt;
=== Work Package===&lt;br /&gt;
A [[MROCLS_MRO_WORKPACKAGE|Work Package]] is a collection of objects to collect and summarize other task owning objects, workpackages, or tasks. A simple workpackage has a certain amount of tasks that have to be finished in order to confirm the workpackage as done. More complex workpackages can also own other underlying workpackages that have to be confirmed.  Confirming a workpackage itself requires a progress of 100% of all related tasks, as well as 100% confirmed sub work packages.&lt;br /&gt;
&lt;br /&gt;
=== Task ===&lt;br /&gt;
A [[MROCLS_MRO_TASK|Task]] is an object reporting a certain progress to the owning workpackage. There are several specialized types of task objects. All kinds of tasks have a property called '''VALUE''' in common. It is very important, that this property is able to be validated. Therefore, a MetaAttribute (providing a validation timestamp by default) has to be attached on the used MetaProperty.&lt;br /&gt;
&lt;br /&gt;
{{Attention|The MetaProperty ''VALUE'' has to use [[Attributes]] in order to be validated. Otherwise, the calculation of work progress will not be possible.}}&lt;br /&gt;
&lt;br /&gt;
==== Measurement Task ====&lt;br /&gt;
A [[MROCLS_MRO_MEASUREMENT_TASK|Measurement Task]] inherits from [[MROCLS_MRO_TASK|Task]] and documents a measured value (e.g. read from a pressure gauge). Once a value has been entered, the task is finished. Alternatively, the task can also be closed by the option ''Not Applicable'' to document the situation of not being able to fullfill the measurement (e.g. the pressure gauge is broken). &lt;br /&gt;
&lt;br /&gt;
==== Progress Task ====&lt;br /&gt;
[[MROCLS_MRO_PROGRESS_TASK| Progress Task]] inherits from [[MROCLS_MRO_MEASUREMENT_TASK|Task]] and reports a certain progress while fullfilling a task. The progress will influence the overall progress of the owning workpackage. If the task cannot be fullfilled, it can also be finished with the option ''Not Applicable''.&lt;br /&gt;
&lt;br /&gt;
==== Check Task ====&lt;br /&gt;
[[MROCLS_MRO_CHECK_TASK|Check Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished by reporting ''Done'' or ''Not Applicable''. This is intended for a simple To-Do task that is either done or not.&lt;br /&gt;
&lt;br /&gt;
==== Inspection Task ====&lt;br /&gt;
A [[MROCLS_MRO_INSPECTION_TASK|Inspection Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished, when the user reports with a positive or negative answer or ''Not Applicable'' (e.g. reporting a yes/no answer for existing equipment).&lt;br /&gt;
&lt;br /&gt;
== MRO Implemented Objects ==&lt;br /&gt;
A set of specific objects extending functionalities of existing MRO elements.&amp;lt;br /&amp;gt;&lt;br /&gt;
For Task Objects, Value properties are assigned by default and implement necessary classifications.&lt;br /&gt;
&lt;br /&gt;
=== Procedure Workpackage ===&lt;br /&gt;
A [[MROCLS_PROCEDURE|Procedure Workpackage]] is a specialized type of [[MROCLS_MRO_WORKPACKAGE|Work Package]] designed to model complex workflows. It consists of sequential tasks that can include branching logic, modular structures, and references to linked data. Procedure Workpackages allow the execution of structured processes that may adapt dynamically depending on conditions. They support both online and offline execution, with certain steps (e.g. data exchange) triggered once connectivity is available.&lt;br /&gt;
&lt;br /&gt;
=== Switch Start Task ===&lt;br /&gt;
A [[MROCLS_SWITCH_START_TASK|Switch Start Task]] is a type of sequential task used within a Procedure Workpackage to define branching logic. It evaluates a predefined (boolean) condition, which can be checked by the client, to determine which branch (true or false) of the workflow will be followed. Each branch represents a different execution path composed of its own set of tasks. A Switch Start Task always requires a corresponding [[MROCLS_SWITCH_END_TASK|Switch End Task]], where all branches converge and the unified procedure continues.&lt;br /&gt;
&lt;br /&gt;
=== Switch End Task ===&lt;br /&gt;
A [[MROCLS_SWITCH_END_TASK|Switch End Task]] marks the end of a branching structure initiated by a [[MROCLS_SWITCH_TASK|Switch Task]]. It is a sequential task that connects the different branches back into a single workflow path. Each Switch End Task is directly linked to its respective Switch Task and ensures that, regardless of which branch was taken, the overall procedure continues in a consistent and controlled manner.&lt;br /&gt;
&lt;br /&gt;
=== Check Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Check Task]] allows the user to check the task as completed or Not Applicable.&lt;br /&gt;
&lt;br /&gt;
=== Numeric Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Numeric Task]] allows the user to input a numeric value (double). It includes a defined value range, and if the entered value falls outside this range, the task is visually marked as problematic.&lt;br /&gt;
&lt;br /&gt;
=== Inspection Task ===&lt;br /&gt;
An [[MRO_Implemented_Objects|Inspection Task]] presents the user with two customizable buttons representing different inspection outcomes, along with a Not Applicable option. The labels of the buttons can be defined during the procedure creation.&lt;br /&gt;
&lt;br /&gt;
=== Text Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Text Task]] provides a text input field for the user to enter free-form information. This task is useful for capturing qualitative data or comments during the procedure.&lt;br /&gt;
&lt;br /&gt;
=== Picture Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Picture Task]] enables the user to take and attach one or more photos. It includes a button to initiate the camera and another to confirm the task. The confirmation button remains disabled until at least one picture has been successfully captured.&lt;br /&gt;
&lt;br /&gt;
=== Dynamic List Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Dynamic List Task]] presents a button that, when clicked, displays a list of selectable options. These options are defined by the procedure creator and can vary depending on the context. This task is ideal for scenarios requiring user selection from a predefined but flexible set of choices.&lt;br /&gt;
&lt;br /&gt;
=== Supervisor Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Supervisor Task]] includes a button for NFC reading. If a supervisor successfully authenticates, it enables confirmation buttons, input fields, or other interactive elements.&lt;br /&gt;
&lt;br /&gt;
=== Interface Task ===&lt;br /&gt;
An [[MRO_Implemented_Objects|Interface Task]] performs a REST API request automatically when it becomes active. It does not include any visible buttons or user interaction. Once the server responds, the task is automatically confirmed based on the response.&lt;br /&gt;
&lt;br /&gt;
=== Calculation Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Calculation Task]] is used to evaluate a predefined expression and apply its result to a predefined property on its owner. It supports logical or numerical expressions. The result type is defined explicitly to ensure correct handling and validation by the client.&lt;br /&gt;
&lt;br /&gt;
[[Category:Module|MRO (Plugin)]]&lt;br /&gt;
&lt;br /&gt;
=== Signature Task ===&lt;br /&gt;
Signature Task prompts the user to provide a written signature to confirm task completion. The task is marked complete once the signature is submitted.&lt;br /&gt;
&lt;br /&gt;
[[Category:Module|MRO (Plugin)]]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[MROCLS_MRO_TASKOWNER#Task Owner]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_WORKPACKAGE#Work Package]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_TASK#Task]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_MEASUREMENT_TASK#Measurement Task]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_PROGRESS_TASK# Progress Task]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_CHECK_TASK#Check Task]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_INSPECTION_TASK#Inspection Task]] (Classification)&lt;br /&gt;
* [[MROCLS_SEQUENTIALTASK]] (Classification)&lt;br /&gt;
* [[MROCLS_GROUPEDTASK]] (Classification)&lt;br /&gt;
* [[MROCLS_PROJECT]] (Classification)&lt;br /&gt;
* [[MROCLS_PROJECTINFORMATION]] (Classification)&lt;br /&gt;
* [[MRO_Objects_(Client)]]&lt;br /&gt;
* [[MRO_Implemented_Objects]]&lt;br /&gt;
* [[MROCLS_PROCEDURE#Procedure Workpackage]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_START_TASK#Switch Start Task]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_END_TASK#Switch End Task]] (Classification)&lt;br /&gt;
* [[MROCLS_CALCULATION_TASK#Calculation Task]] (Classification)&lt;br /&gt;
&lt;br /&gt;
[[Category:Module|MRO (Plugin)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=MRO_Objects_(Client)&amp;diff=29335</id>
		<title>MRO Objects (Client)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=MRO_Objects_(Client)&amp;diff=29335"/>
				<updated>2026-02-10T08:31:35Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* Basic User Interface */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:UI_WinX_MRO_ChildList.png|thumb|alt=MRO Child List UI (WinX)|MRO UI (WinX)]]&lt;br /&gt;
[[File:Android_mro_ui.jpg|thumb|alt=MRO Child List UI (Android)|MRO UI (Android)]]&lt;br /&gt;
The WinX client UI displays MRO configured objects like any other root- or child-object enriched by some additional logic and features.&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionStart}}&lt;br /&gt;
== Basic User Interface ==&lt;br /&gt;
The representation of MRO features comprises some indicators and interactive controls. In the {{UBIK}} child list, the main object displays cumulated technical and organisational status as well as the overall work progress based on the underlying data branch. Objects classified as MRO objects in general provide indicators for the MRO status. This means the status is shown next to the main icon of a child-/details-/documents-page as well as next to the icons of the child list items:&lt;br /&gt;
&lt;br /&gt;
=== Technical Status ===&lt;br /&gt;
The technical status indicates whether all tasks on an object or on its subsequent objects within the underlying data branch have been completed. It also aggregates additional state information, such as issues reported on child items. For example, if an inventory object is marked as damaged, this status is propagated to its parent objects, which will display a corresponding indicator (an exclamation mark) to signal a problem originating from a child item.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_TechnicalStatusIndicator.png|thumb|Technical Status Indicator (WinX)&lt;br /&gt;
File:Android_tech_status.PNG|thumb|Technical Status Indicator (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Organisational Status ===&lt;br /&gt;
The organisational status indicates the amount of confirmed work within the data branch, including already confirmed work packages as well as tasks that are locked by their owning work package. The organisational status indicator is displayed on all objects that represent an organisational state or receive the organisational status from subsequent objects in the underlying data branch, and visualizes the amount of confirmed work performed within that branch.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_OrganisationalStatusIndicator.png|Organisational Status Indicator (WinX)&lt;br /&gt;
File:UI_WinX_MRO_WPConfirmedIndicator.png|MRO Workpackage Confirmed (Flag) Indicator (WinX)&lt;br /&gt;
File:Android_orga_status.PNG|Organisational Status Indicator (Android)&lt;br /&gt;
File:Android_orga_status_finished.PNG|MRO Workpackage Confirmed Indicator (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Work Progress ===&lt;br /&gt;
The work progress is calculated from the current work progress and from the progress cumulated from subsequent objects in the underlying data branch. This indicator shows the amount of work done in the data branch.&lt;br /&gt;
&lt;br /&gt;
{{Version/WinXSince|5.0}} {{Version/MobileSince|5.0}} By default, the progress is displayed with maximum one decimal place. For example, 99.75% is displayed as 99.8%. The format string used to achieve this is &amp;lt;code&amp;gt;{0:0.#}%&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If other numeric formats are preferred in your usecases, you can refer to [https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-numeric-format-strings custom numeric format strings] for more information. The template to customize for this is the UBIKMROProgressBadge within UBIKThemes.&lt;br /&gt;
&lt;br /&gt;
{{Clear}}&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Android|MRO Objects (UBIK WinX)]]&lt;br /&gt;
[[Category:Client|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Mobile|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Pages with broken file links|MRO Objects (Client)]]&lt;br /&gt;
[[Category:WinX|MRO Objects (UBIK WinX)]]&lt;br /&gt;
&lt;br /&gt;
== MRO Objects ==&lt;br /&gt;
A set of specific objects can be used to provide the required structure for MRO:&lt;br /&gt;
&lt;br /&gt;
=== Task Owner ===&lt;br /&gt;
A [[MROCLS_MRO_TASKOWNER|Task Owner]] is an object having a substructure of jobs to be done. It can have a tree of other task owners or work packages underneath that will update the status of the task owner. This status consists of technical, organisational and progress information. With a task owner a user can get an overview of all the work to be done in the underlying job structure.&lt;br /&gt;
&lt;br /&gt;
=== Work Package===&lt;br /&gt;
A [[MROCLS_MRO_WORKPACKAGE|Work Package]] is a collection of objects to collect and summarize other task owning objects, workpackages, or tasks. A simple workpackage has a certain amount of tasks that have to be finished in order to confirm the workpackage as done. More complex workpackages can also own other underlying workpackages that have to be confirmed.  Confirming a workpackage itself requires a progress of 100% of all related tasks, as well as 100% confirmed sub work packages.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_WPConfirmButton.png|MRO Workpackage confirm button (WinX)&lt;br /&gt;
File:UI_WinX_MRO_WPRevokeConfirmButton.png|MRO Workpackage revoke confirmation button (WinX)&lt;br /&gt;
File:Android_finish_workpackage.PNG|MRO Workpackage confirm button (Android)&lt;br /&gt;
File:Android reopen workpackage.PNG|MRO Workpackage revoke confirmation button (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Task ===&lt;br /&gt;
A [[MROCLS_MRO_TASK|Task]] is an object reporting a certain progress to the owning workpackage. There are several specialized types of task objects. All kinds of tasks have a property called '''VALUE''' in common. It is very important, that this property is able to be validated. Therefore, a MetaAttribute (providing a validation timestamp by default) has to be attached on the used MetaProperty.&lt;br /&gt;
&lt;br /&gt;
On both clients, a Task can be reverted by clicking twice on the Not Applicable button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|The MetaProperty ''VALUE'' has to use [[Attributes]] in order to be validated. Otherwise, the calculation of work progress will not be possible.}}&lt;br /&gt;
&lt;br /&gt;
==== Measurement Task ====&lt;br /&gt;
&lt;br /&gt;
A [[MROCLS_MRO_MEASUREMENT_TASK|Measurement Task]] inherits from [[MROCLS_MRO_TASK|Task]] and documents a measured value (e.g. read from a pressure gauge). Therefore, clicking the value on the shown task opens an editor to enter the desired value. If no value was entered before, an empty line will be shown. Once a value has been entered, the task is finished. Alternatively, the task can also be closed by the option ''Not Applicable'' to document the situation of not being able to fullfill the measurement (e.g. the pressure gauge is broken). An additional small value indicator below the main value can report e.g. the previously entered value. The behaviour of this previous value indicator has to be specified separately in the customizing.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Measurment Task Empty UWP.png|Measurement Task without a reported value (WinX)&lt;br /&gt;
File:Measurment Task Not Empty UWP.png|Measurement Task with a reported value (WinX)&lt;br /&gt;
File:Measurment Task Empty Android.jpg|Measurement Task without a reported value (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Progress Task ====&lt;br /&gt;
&lt;br /&gt;
[[MROCLS_MRO_PROGRESS_TASK| Progress Task]] inherits from [[MROCLS_MRO_MEASUREMENT_TASK|Task]] and reports a certain progress while fullfilling a task. The progress will influence the overall progress of the owning workpackage. If the task cannot be fullfilled, it can also be finished with the option ''Not Applicable''.&lt;br /&gt;
&lt;br /&gt;
There is also an [[MRO_PROGRESS_TASK_EDITOR|alternative editor]] available for progress tasks.{{Version/WinXSince|2.5.4}}&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Progress Task UWP.png|Progress Task with a reported work progress (WinX)&lt;br /&gt;
File:Progress Task Android.jpg|Progress Task with a reported work progress and a previous progress(Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Check Task ====&lt;br /&gt;
&lt;br /&gt;
A [[MROCLS_MRO_CHECK_TASK|Check Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished by reporting ''Done'' or ''Not Applicable''. This is intended for a simple To-Do task that is either done or not.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Check Task finished UWP.png|Unfinished MRO CheckTask (WinX)&lt;br /&gt;
File:Check Task android.jpg|Not Applicable MRO CheckTask (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Inspection Task ====&lt;br /&gt;
&lt;br /&gt;
[[MROCLS_MRO_INSPECTION_TASK|Inspection Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished, when the user reports with a positive or negative answer or ''Not Applicable'' (e.g. reporting a yes/no answer for existing equipment).&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Finished Inspection Task UWP.png|Finished MRO InspectionTask (WinX)&lt;br /&gt;
File:Inspection task android.jpg|Finished MRO InspectionTask (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Sequential Task ====&lt;br /&gt;
The [[MROCLS_SEQUENTIALTASK|sequential task classification]] allows you to pre-define a sequence in which tasks are to be resolved by users. This means that it is required for one or multiple tasks to be finished in order for other tasks to become &amp;quot;unlocked&amp;quot; and editable. A task can have any number of &amp;quot;predecessors&amp;quot;. Predecessors are the tasks that are required to be finished first.&lt;br /&gt;
&lt;br /&gt;
A task can have predecessors that live anywhere else in the object hierarchy. It is not necessary for a task and its predecessors to be part of the same work package, even though this is likely the most common use case.&lt;br /&gt;
&lt;br /&gt;
The state of a sequential task is evaluated both offline and online to get the best possible user experience. The user will see dependent tasks update immediately if their successors were finished, if those tasks are currently visible in the UI. There is 1 case in which the server-side state will override the client-side (offline) evaluation, discussed below.&lt;br /&gt;
The state of each sequential task is evaluated the following way:&lt;br /&gt;
&lt;br /&gt;
# If the server-side state says the task is open, we consider this as the truthful state and don't do any other evaluation.&lt;br /&gt;
# Check if the task has any predecessors.&lt;br /&gt;
# Try to load each predecessor task.&lt;br /&gt;
#* If loading of any predecessor fails (the object is not available offline), the task will be locked.&lt;br /&gt;
# If all predecessor tasks are finished, the task is open and can be edited. Otherwise, the task is locked.&lt;br /&gt;
&lt;br /&gt;
The customizer setting up the task dependency relations needs to ensure that the dependencies are not cyclical. In this case, it would be impossible for any tasks in the &amp;quot;cycle&amp;quot; to be finished.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&lt;br /&gt;
&lt;br /&gt;
As a demonstration of this feature, see [[Media:Sequential_tasks_winx.mp4|this video]]. The relations between tasks are defined as in [[Media:Task_relations.png|this image]], starting at A1 and A2, which are not dependent on any other tasks. The lines (from left to right) indicate dependencies. This means that B2 has tasks A1 and A2 as its predecessors, for example.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Grouped Task {{Version/WinXSince|4.2}}{{Version/XamarinSince|4.2}} ====&lt;br /&gt;
Sometimes, not all tasks have to be finished. More specifically, there might be a predefined condition where you only need to finish a certain number of tasks among a group of them. These are known in {{UBIK}} as [[MROCLS_GROUPEDTASK|grouped tasks]].&lt;br /&gt;
&lt;br /&gt;
The idea is, a group of tasks can be defined as siblings to each other and they also share the same server configured threshold. When the number of finished tasks among that group exceeds the threshold, the entire group is considered as no longer necessary. When reflected in the overall status of the task owner(s), these tasks would appear as if they are finished.&lt;br /&gt;
&lt;br /&gt;
{{Hint|Technically speaking, the finished status is completely independent from the not necessary status on a task. A grouped task which is no longer necessary can be both finished or not yet finished. In other words, users don't have to finish a not necessary grouped task, but they still can.}}&lt;br /&gt;
&lt;br /&gt;
{{Hint|The precise status calculation for grouped tasks and their task owners requires the knowledge of all siblings tasks. Imagine 2 out of 3 tasks must be finished but the client only knows 1 in total and the others are only available at the server at that time. This makes it impossible to draw conclusions whether the task(s) should be necessary or not. Under such circumstances, the local status calculation is done as if these are just regular tasks.}}&lt;br /&gt;
&lt;br /&gt;
{{Hint|Like with the other MRO objects, the client always chooses the best available statuses for grouped tasks to present to the users. More specifically, it uses the statuses calculated by the server when the client is not offline and there are no uncommitted local changes on the involved objects. Otherwise, it uses the statuses calculated locally to the best of its knowledge.}}&lt;br /&gt;
&lt;br /&gt;
A task can also be a grouped and a sequential one at the same time. In such a case, the grouped nature of the sibling tasks will affect the way the task sequence completes.&lt;br /&gt;
&lt;br /&gt;
For example, task A1, A2 and A3 are 3 grouped sibling tasks and only 1 of them needs to be finished. At the same time, they are all predecessors of task B. Normally, all predecessors must be finished (and locked) before task B becomes the next one in the sequence and therefore unlocked. In this case, however, as soon as one of the predecessors is finished, all three become unnecessary (and locked) and task B unlocks as a result of that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Supervisor Task {{Version/XamarinSince|4.8}} ====&lt;br /&gt;
As the name suggests, supervisor tasks are those that must be finished under supervision. When users want to finish a [[MROCLS_MRO_SUPERVISOR_TASK|supervisor task]], they must hand over their work devices to a supervisor. The latter checks the work status and scans an NFC tag if the work is approved. If the [[MROCLS_MRO_SUPERVISOR|supervisor]] has sufficient permissions for the task and the correct supervisor PIN is given, the task gets unlocked and the users can proceed to finish it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=300px&amp;gt;&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_Before_Verification.jpg|Supervisor Task Before Verification/Unlocking (Mobile)&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_Enter_PIN.jpg|Supervisor Task Enter PIN (Mobile)&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_After_Verification.jpg|Supervisor Task After Verification/Unlocking (Mobile)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A thing to note is that while the need to verify a supervisor task can be seen as a type of locking, it's certainly not the only reason for a [[Locked_Objects|locked object]]. This means a supervisor task can remain locked (although for different reasons) even after a supervisor has successfully verified it. This can often be the case if you use it in combination with other features such as [[MRO_Objects_(Client)#Sequential_Task|sequential tasks]], [[User_Rights|user rights]].&lt;br /&gt;
&lt;br /&gt;
{{Hint|For security reasons, the verification process is cancelled if the supervisor enters the wrong PIN for three times. Scanning the tag again is required in that case.}}&lt;br /&gt;
{{Hint|A setting controls [[RFID_tags#Choose_which_information_to_use_from_a_tag|which information in a scanned tag is used]] during this process.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MRO objects with project information (WinX only) {{Version/WinXSince|2.5.4}} ===&lt;br /&gt;
[[File:UI_WinX_MRO_ProjectInfo.png|thumb|MRO Object with Project Info (WinX)]]&lt;br /&gt;
An MRO object (except tasks) might also bring along [[MROCLS_PROJECTINFORMATION|project information]]. In this case, the project information together with the MRO progress are displayed in a bar chart. The start &amp;amp; end dates of the MRO object are displayed on the progress bar. The length and the position of the progress bar, together with the current date mark indicate the timeline.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Locking ==&lt;br /&gt;
When an (MRO) object is locked, editing it becomes impossible. More details about [[Locked_Objects|locked objects]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[MRO (Plugin)]]&lt;br /&gt;
* [[MROCLS_PROJECT]]&lt;br /&gt;
* [[MROCLS_PROJECTINFORMATION]]&lt;br /&gt;
* [[MROCLS_SEQUENTIALTASK]]&lt;br /&gt;
* [[MROCLS_GROUPEDTASK]]&lt;br /&gt;
* [[MROCLS_MRO_CHECK_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_INSPECTION_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_MEASUREMENT_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_PROGRESS_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_TASKOWNER]]&lt;br /&gt;
* [[MROCLS_MRO_WORKPACKAGE]]&lt;br /&gt;
* [[MROCLS_PROCEDURE#Procedure Workpackage]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_TASK#Switch Task]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_END_TASK#Switch End Task]] (Classification)&lt;br /&gt;
* [[MROCLS_CALCULATION_TASK#Calculation Task]] (Classification)&lt;br /&gt;
&lt;br /&gt;
[[Category:Android|MRO Objects (UBIK WinX)]]&lt;br /&gt;
[[Category:Client|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Mobile|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Pages with broken file links|MRO Objects (Client)]]&lt;br /&gt;
[[Category:WinX|MRO Objects (UBIK WinX)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=MRO_Objects_(Client)&amp;diff=29334</id>
		<title>MRO Objects (Client)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=MRO_Objects_(Client)&amp;diff=29334"/>
				<updated>2026-02-10T08:25:01Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* Basic User Interface */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:UI_WinX_MRO_ChildList.png|thumb|alt=MRO Child List UI (WinX)|MRO UI (WinX)]]&lt;br /&gt;
[[File:Android_mro_ui.jpg|thumb|alt=MRO Child List UI (Android)|MRO UI (Android)]]&lt;br /&gt;
The WinX client UI displays MRO configured objects like any other root- or child-object enriched by some additional logic and features.&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionStart}}&lt;br /&gt;
== Basic User Interface ==&lt;br /&gt;
The representation of MRO features comprises some indicators and interactive controls. In the {{UBIK}} child list, the main object displays cumulated technical and organisational status as well as the overall work progress based on the underlying data branch. Objects classified as MRO objects in general provide indicators for the MRO status. This means the status is shown next to the main icon of a child-/details-/documents-page as well as next to the icons of the child list items:&lt;br /&gt;
&lt;br /&gt;
=== Technical Status ===&lt;br /&gt;
The technical status indicates whether all tasks on an object or on its subsequent objects within the underlying data branch have been completed. It also aggregates additional state information, such as issues reported on child items. For example, if an inventory object is marked as damaged, this status is propagated to its parent objects, which will display a corresponding indicator (an exclamation mark) to signal a problem originating from a child item.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_TechnicalStatusIndicator.png|thumb|Technical Status Indicator (WinX)&lt;br /&gt;
File:Android_tech_status.PNG|thumb|Technical Status Indicator (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Organisational Status ===&lt;br /&gt;
The organisational status indicates the amount of confirmed work within the data branch, including already confirmed work packages as well as tasks that are locked by their owning work package. The organisational status indicator is displayed on all objects that represent an organisational state or receive the organisational status from subsequent objects in the underlying data branch, and visualizes the amount of confirmed work performed within that branch.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_OrganisationalStatusIndicator.png|Organisational Status Indicator (WinX)&lt;br /&gt;
File:UI_WinX_MRO_WPConfirmedIndicator.png|MRO Workpackage Confirmed (Flag) Indicator (WinX)&lt;br /&gt;
File:Android_orga_status.PNG|Organisational Status Indicator (Android)&lt;br /&gt;
File:Android_orga_status_finished.PNG|MRO Workpackage Confirmed Indicator (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Work Progress ===&lt;br /&gt;
The work progress is shown on all objects that represent the current work progress or receive the work progress cumulated from subsequent objects in the underlying data branch. This indicator shows the amount of work done in the data branch.&lt;br /&gt;
&lt;br /&gt;
{{Version/WinXSince|5.0}} {{Version/MobileSince|5.0}} By default, the progress is displayed with maximum one decimal place. For example, 99.75% is displayed as 99.8%. The format string used to achieve this is &amp;lt;code&amp;gt;{0:0.#}%&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If other numeric formats are preferred in your usecases, you can refer to [https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-numeric-format-strings custom numeric format strings] for more information. The template to customize for this is the UBIKMROProgressBadge within UBIKThemes.&lt;br /&gt;
&lt;br /&gt;
{{Clear}}&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Android|MRO Objects (UBIK WinX)]]&lt;br /&gt;
[[Category:Client|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Mobile|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Pages with broken file links|MRO Objects (Client)]]&lt;br /&gt;
[[Category:WinX|MRO Objects (UBIK WinX)]]&lt;br /&gt;
&lt;br /&gt;
== MRO Objects ==&lt;br /&gt;
A set of specific objects can be used to provide the required structure for MRO:&lt;br /&gt;
&lt;br /&gt;
=== Task Owner ===&lt;br /&gt;
A [[MROCLS_MRO_TASKOWNER|Task Owner]] is an object having a substructure of jobs to be done. It can have a tree of other task owners or work packages underneath that will update the status of the task owner. This status consists of technical, organisational and progress information. With a task owner a user can get an overview of all the work to be done in the underlying job structure.&lt;br /&gt;
&lt;br /&gt;
=== Work Package===&lt;br /&gt;
A [[MROCLS_MRO_WORKPACKAGE|Work Package]] is a collection of objects to collect and summarize other task owning objects, workpackages, or tasks. A simple workpackage has a certain amount of tasks that have to be finished in order to confirm the workpackage as done. More complex workpackages can also own other underlying workpackages that have to be confirmed.  Confirming a workpackage itself requires a progress of 100% of all related tasks, as well as 100% confirmed sub work packages.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_WPConfirmButton.png|MRO Workpackage confirm button (WinX)&lt;br /&gt;
File:UI_WinX_MRO_WPRevokeConfirmButton.png|MRO Workpackage revoke confirmation button (WinX)&lt;br /&gt;
File:Android_finish_workpackage.PNG|MRO Workpackage confirm button (Android)&lt;br /&gt;
File:Android reopen workpackage.PNG|MRO Workpackage revoke confirmation button (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Task ===&lt;br /&gt;
A [[MROCLS_MRO_TASK|Task]] is an object reporting a certain progress to the owning workpackage. There are several specialized types of task objects. All kinds of tasks have a property called '''VALUE''' in common. It is very important, that this property is able to be validated. Therefore, a MetaAttribute (providing a validation timestamp by default) has to be attached on the used MetaProperty.&lt;br /&gt;
&lt;br /&gt;
On both clients, a Task can be reverted by clicking twice on the Not Applicable button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|The MetaProperty ''VALUE'' has to use [[Attributes]] in order to be validated. Otherwise, the calculation of work progress will not be possible.}}&lt;br /&gt;
&lt;br /&gt;
==== Measurement Task ====&lt;br /&gt;
&lt;br /&gt;
A [[MROCLS_MRO_MEASUREMENT_TASK|Measurement Task]] inherits from [[MROCLS_MRO_TASK|Task]] and documents a measured value (e.g. read from a pressure gauge). Therefore, clicking the value on the shown task opens an editor to enter the desired value. If no value was entered before, an empty line will be shown. Once a value has been entered, the task is finished. Alternatively, the task can also be closed by the option ''Not Applicable'' to document the situation of not being able to fullfill the measurement (e.g. the pressure gauge is broken). An additional small value indicator below the main value can report e.g. the previously entered value. The behaviour of this previous value indicator has to be specified separately in the customizing.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Measurment Task Empty UWP.png|Measurement Task without a reported value (WinX)&lt;br /&gt;
File:Measurment Task Not Empty UWP.png|Measurement Task with a reported value (WinX)&lt;br /&gt;
File:Measurment Task Empty Android.jpg|Measurement Task without a reported value (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Progress Task ====&lt;br /&gt;
&lt;br /&gt;
[[MROCLS_MRO_PROGRESS_TASK| Progress Task]] inherits from [[MROCLS_MRO_MEASUREMENT_TASK|Task]] and reports a certain progress while fullfilling a task. The progress will influence the overall progress of the owning workpackage. If the task cannot be fullfilled, it can also be finished with the option ''Not Applicable''.&lt;br /&gt;
&lt;br /&gt;
There is also an [[MRO_PROGRESS_TASK_EDITOR|alternative editor]] available for progress tasks.{{Version/WinXSince|2.5.4}}&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Progress Task UWP.png|Progress Task with a reported work progress (WinX)&lt;br /&gt;
File:Progress Task Android.jpg|Progress Task with a reported work progress and a previous progress(Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Check Task ====&lt;br /&gt;
&lt;br /&gt;
A [[MROCLS_MRO_CHECK_TASK|Check Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished by reporting ''Done'' or ''Not Applicable''. This is intended for a simple To-Do task that is either done or not.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Check Task finished UWP.png|Unfinished MRO CheckTask (WinX)&lt;br /&gt;
File:Check Task android.jpg|Not Applicable MRO CheckTask (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Inspection Task ====&lt;br /&gt;
&lt;br /&gt;
[[MROCLS_MRO_INSPECTION_TASK|Inspection Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished, when the user reports with a positive or negative answer or ''Not Applicable'' (e.g. reporting a yes/no answer for existing equipment).&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Finished Inspection Task UWP.png|Finished MRO InspectionTask (WinX)&lt;br /&gt;
File:Inspection task android.jpg|Finished MRO InspectionTask (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Sequential Task ====&lt;br /&gt;
The [[MROCLS_SEQUENTIALTASK|sequential task classification]] allows you to pre-define a sequence in which tasks are to be resolved by users. This means that it is required for one or multiple tasks to be finished in order for other tasks to become &amp;quot;unlocked&amp;quot; and editable. A task can have any number of &amp;quot;predecessors&amp;quot;. Predecessors are the tasks that are required to be finished first.&lt;br /&gt;
&lt;br /&gt;
A task can have predecessors that live anywhere else in the object hierarchy. It is not necessary for a task and its predecessors to be part of the same work package, even though this is likely the most common use case.&lt;br /&gt;
&lt;br /&gt;
The state of a sequential task is evaluated both offline and online to get the best possible user experience. The user will see dependent tasks update immediately if their successors were finished, if those tasks are currently visible in the UI. There is 1 case in which the server-side state will override the client-side (offline) evaluation, discussed below.&lt;br /&gt;
The state of each sequential task is evaluated the following way:&lt;br /&gt;
&lt;br /&gt;
# If the server-side state says the task is open, we consider this as the truthful state and don't do any other evaluation.&lt;br /&gt;
# Check if the task has any predecessors.&lt;br /&gt;
# Try to load each predecessor task.&lt;br /&gt;
#* If loading of any predecessor fails (the object is not available offline), the task will be locked.&lt;br /&gt;
# If all predecessor tasks are finished, the task is open and can be edited. Otherwise, the task is locked.&lt;br /&gt;
&lt;br /&gt;
The customizer setting up the task dependency relations needs to ensure that the dependencies are not cyclical. In this case, it would be impossible for any tasks in the &amp;quot;cycle&amp;quot; to be finished.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&lt;br /&gt;
&lt;br /&gt;
As a demonstration of this feature, see [[Media:Sequential_tasks_winx.mp4|this video]]. The relations between tasks are defined as in [[Media:Task_relations.png|this image]], starting at A1 and A2, which are not dependent on any other tasks. The lines (from left to right) indicate dependencies. This means that B2 has tasks A1 and A2 as its predecessors, for example.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Grouped Task {{Version/WinXSince|4.2}}{{Version/XamarinSince|4.2}} ====&lt;br /&gt;
Sometimes, not all tasks have to be finished. More specifically, there might be a predefined condition where you only need to finish a certain number of tasks among a group of them. These are known in {{UBIK}} as [[MROCLS_GROUPEDTASK|grouped tasks]].&lt;br /&gt;
&lt;br /&gt;
The idea is, a group of tasks can be defined as siblings to each other and they also share the same server configured threshold. When the number of finished tasks among that group exceeds the threshold, the entire group is considered as no longer necessary. When reflected in the overall status of the task owner(s), these tasks would appear as if they are finished.&lt;br /&gt;
&lt;br /&gt;
{{Hint|Technically speaking, the finished status is completely independent from the not necessary status on a task. A grouped task which is no longer necessary can be both finished or not yet finished. In other words, users don't have to finish a not necessary grouped task, but they still can.}}&lt;br /&gt;
&lt;br /&gt;
{{Hint|The precise status calculation for grouped tasks and their task owners requires the knowledge of all siblings tasks. Imagine 2 out of 3 tasks must be finished but the client only knows 1 in total and the others are only available at the server at that time. This makes it impossible to draw conclusions whether the task(s) should be necessary or not. Under such circumstances, the local status calculation is done as if these are just regular tasks.}}&lt;br /&gt;
&lt;br /&gt;
{{Hint|Like with the other MRO objects, the client always chooses the best available statuses for grouped tasks to present to the users. More specifically, it uses the statuses calculated by the server when the client is not offline and there are no uncommitted local changes on the involved objects. Otherwise, it uses the statuses calculated locally to the best of its knowledge.}}&lt;br /&gt;
&lt;br /&gt;
A task can also be a grouped and a sequential one at the same time. In such a case, the grouped nature of the sibling tasks will affect the way the task sequence completes.&lt;br /&gt;
&lt;br /&gt;
For example, task A1, A2 and A3 are 3 grouped sibling tasks and only 1 of them needs to be finished. At the same time, they are all predecessors of task B. Normally, all predecessors must be finished (and locked) before task B becomes the next one in the sequence and therefore unlocked. In this case, however, as soon as one of the predecessors is finished, all three become unnecessary (and locked) and task B unlocks as a result of that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Supervisor Task {{Version/XamarinSince|4.8}} ====&lt;br /&gt;
As the name suggests, supervisor tasks are those that must be finished under supervision. When users want to finish a [[MROCLS_MRO_SUPERVISOR_TASK|supervisor task]], they must hand over their work devices to a supervisor. The latter checks the work status and scans an NFC tag if the work is approved. If the [[MROCLS_MRO_SUPERVISOR|supervisor]] has sufficient permissions for the task and the correct supervisor PIN is given, the task gets unlocked and the users can proceed to finish it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=300px&amp;gt;&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_Before_Verification.jpg|Supervisor Task Before Verification/Unlocking (Mobile)&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_Enter_PIN.jpg|Supervisor Task Enter PIN (Mobile)&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_After_Verification.jpg|Supervisor Task After Verification/Unlocking (Mobile)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A thing to note is that while the need to verify a supervisor task can be seen as a type of locking, it's certainly not the only reason for a [[Locked_Objects|locked object]]. This means a supervisor task can remain locked (although for different reasons) even after a supervisor has successfully verified it. This can often be the case if you use it in combination with other features such as [[MRO_Objects_(Client)#Sequential_Task|sequential tasks]], [[User_Rights|user rights]].&lt;br /&gt;
&lt;br /&gt;
{{Hint|For security reasons, the verification process is cancelled if the supervisor enters the wrong PIN for three times. Scanning the tag again is required in that case.}}&lt;br /&gt;
{{Hint|A setting controls [[RFID_tags#Choose_which_information_to_use_from_a_tag|which information in a scanned tag is used]] during this process.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MRO objects with project information (WinX only) {{Version/WinXSince|2.5.4}} ===&lt;br /&gt;
[[File:UI_WinX_MRO_ProjectInfo.png|thumb|MRO Object with Project Info (WinX)]]&lt;br /&gt;
An MRO object (except tasks) might also bring along [[MROCLS_PROJECTINFORMATION|project information]]. In this case, the project information together with the MRO progress are displayed in a bar chart. The start &amp;amp; end dates of the MRO object are displayed on the progress bar. The length and the position of the progress bar, together with the current date mark indicate the timeline.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Locking ==&lt;br /&gt;
When an (MRO) object is locked, editing it becomes impossible. More details about [[Locked_Objects|locked objects]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[MRO (Plugin)]]&lt;br /&gt;
* [[MROCLS_PROJECT]]&lt;br /&gt;
* [[MROCLS_PROJECTINFORMATION]]&lt;br /&gt;
* [[MROCLS_SEQUENTIALTASK]]&lt;br /&gt;
* [[MROCLS_GROUPEDTASK]]&lt;br /&gt;
* [[MROCLS_MRO_CHECK_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_INSPECTION_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_MEASUREMENT_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_PROGRESS_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_TASKOWNER]]&lt;br /&gt;
* [[MROCLS_MRO_WORKPACKAGE]]&lt;br /&gt;
* [[MROCLS_PROCEDURE#Procedure Workpackage]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_TASK#Switch Task]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_END_TASK#Switch End Task]] (Classification)&lt;br /&gt;
* [[MROCLS_CALCULATION_TASK#Calculation Task]] (Classification)&lt;br /&gt;
&lt;br /&gt;
[[Category:Android|MRO Objects (UBIK WinX)]]&lt;br /&gt;
[[Category:Client|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Mobile|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Pages with broken file links|MRO Objects (Client)]]&lt;br /&gt;
[[Category:WinX|MRO Objects (UBIK WinX)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=MRO_Objects_(Client)&amp;diff=29333</id>
		<title>MRO Objects (Client)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=MRO_Objects_(Client)&amp;diff=29333"/>
				<updated>2026-02-10T08:14:39Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* Technical Status */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:UI_WinX_MRO_ChildList.png|thumb|alt=MRO Child List UI (WinX)|MRO UI (WinX)]]&lt;br /&gt;
[[File:Android_mro_ui.jpg|thumb|alt=MRO Child List UI (Android)|MRO UI (Android)]]&lt;br /&gt;
The WinX client UI displays MRO configured objects like any other root- or child-object enriched by some additional logic and features.&lt;br /&gt;
&lt;br /&gt;
== Basic User Interface ==&lt;br /&gt;
The representation of MRO features comprises some indicators and interactive controls. In the {{UBIK}} child list, the main object displays cumulated technical and organisational status as well as the overall work progress based on the underlying data branch. Objects classified as MRO objects in general provide indicators for the MRO status. This means the status is shown next to the main icon of a child-/details-/documents-page as well as next to the icons of the child list items:&lt;br /&gt;
&lt;br /&gt;
=== Technical Status ===&lt;br /&gt;
The technical status indicates whether all tasks on an object or on its subsequent objects within the underlying data branch have been completed. It also aggregates additional state information, such as issues reported on child items. For example, if an inventory object is marked as damaged, this status is propagated to its parent objects, which will display a corresponding indicator (an exclamation mark) to signal a problem originating from a child item.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_TechnicalStatusIndicator.png|thumb|Technical Status Indicator (WinX)&lt;br /&gt;
File:Android_tech_status.PNG|thumb|Technical Status Indicator (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Android|MRO Objects (UBIK WinX)]]&lt;br /&gt;
[[Category:Client|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Mobile|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Pages with broken file links|MRO Objects (Client)]]&lt;br /&gt;
[[Category:WinX|MRO Objects (UBIK WinX)]]&lt;br /&gt;
&lt;br /&gt;
=== Organisational Status ===&lt;br /&gt;
The organisational status indicator is shown on all objects that represent an organisational state or receive the organisational status from subsequent objects in the underlying data branch. This indicator shows the amount of confirmed work done in the data branch. It can as well display a work package to be already confirmed or show tasks that are already locked by their owning workpackage.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_OrganisationalStatusIndicator.png|Organisational Status Indicator (WinX)&lt;br /&gt;
File:UI_WinX_MRO_WPConfirmedIndicator.png|MRO Workpackage Confirmed (Flag) Indicator (WinX)&lt;br /&gt;
File:Android_orga_status.PNG|Organisational Status Indicator (Android)&lt;br /&gt;
File:Android_orga_status_finished.PNG|MRO Workpackage Confirmed Indicator (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Work Progress ===&lt;br /&gt;
The work progress is shown on all objects that represent the current work progress or receive the work progress cumulated from subsequent objects in the underlying data branch. This indicator shows the amount of work done in the data branch.&lt;br /&gt;
&lt;br /&gt;
{{Version/WinXSince|5.0}} {{Version/MobileSince|5.0}} By default, the progress is displayed with maximum one decimal place. For example, 99.75% is displayed as 99.8%. The format string used to achieve this is &amp;lt;code&amp;gt;{0:0.#}%&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If other numeric formats are preferred in your usecases, you can refer to [https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-numeric-format-strings custom numeric format strings] for more information. The template to customize for this is the UBIKMROProgressBadge within UBIKThemes.&lt;br /&gt;
&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Android|MRO Objects (UBIK WinX)]]&lt;br /&gt;
[[Category:Client|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Mobile|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Pages with broken file links|MRO Objects (Client)]]&lt;br /&gt;
[[Category:WinX|MRO Objects (UBIK WinX)]]&lt;br /&gt;
&lt;br /&gt;
== MRO Objects ==&lt;br /&gt;
A set of specific objects can be used to provide the required structure for MRO:&lt;br /&gt;
&lt;br /&gt;
=== Task Owner ===&lt;br /&gt;
A [[MROCLS_MRO_TASKOWNER|Task Owner]] is an object having a substructure of jobs to be done. It can have a tree of other task owners or work packages underneath that will update the status of the task owner. This status consists of technical, organisational and progress information. With a task owner a user can get an overview of all the work to be done in the underlying job structure.&lt;br /&gt;
&lt;br /&gt;
=== Work Package===&lt;br /&gt;
A [[MROCLS_MRO_WORKPACKAGE|Work Package]] is a collection of objects to collect and summarize other task owning objects, workpackages, or tasks. A simple workpackage has a certain amount of tasks that have to be finished in order to confirm the workpackage as done. More complex workpackages can also own other underlying workpackages that have to be confirmed.  Confirming a workpackage itself requires a progress of 100% of all related tasks, as well as 100% confirmed sub work packages.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:UI_WinX_MRO_WPConfirmButton.png|MRO Workpackage confirm button (WinX)&lt;br /&gt;
File:UI_WinX_MRO_WPRevokeConfirmButton.png|MRO Workpackage revoke confirmation button (WinX)&lt;br /&gt;
File:Android_finish_workpackage.PNG|MRO Workpackage confirm button (Android)&lt;br /&gt;
File:Android reopen workpackage.PNG|MRO Workpackage revoke confirmation button (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Task ===&lt;br /&gt;
A [[MROCLS_MRO_TASK|Task]] is an object reporting a certain progress to the owning workpackage. There are several specialized types of task objects. All kinds of tasks have a property called '''VALUE''' in common. It is very important, that this property is able to be validated. Therefore, a MetaAttribute (providing a validation timestamp by default) has to be attached on the used MetaProperty.&lt;br /&gt;
&lt;br /&gt;
On both clients, a Task can be reverted by clicking twice on the Not Applicable button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|The MetaProperty ''VALUE'' has to use [[Attributes]] in order to be validated. Otherwise, the calculation of work progress will not be possible.}}&lt;br /&gt;
&lt;br /&gt;
==== Measurement Task ====&lt;br /&gt;
&lt;br /&gt;
A [[MROCLS_MRO_MEASUREMENT_TASK|Measurement Task]] inherits from [[MROCLS_MRO_TASK|Task]] and documents a measured value (e.g. read from a pressure gauge). Therefore, clicking the value on the shown task opens an editor to enter the desired value. If no value was entered before, an empty line will be shown. Once a value has been entered, the task is finished. Alternatively, the task can also be closed by the option ''Not Applicable'' to document the situation of not being able to fullfill the measurement (e.g. the pressure gauge is broken). An additional small value indicator below the main value can report e.g. the previously entered value. The behaviour of this previous value indicator has to be specified separately in the customizing.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Measurment Task Empty UWP.png|Measurement Task without a reported value (WinX)&lt;br /&gt;
File:Measurment Task Not Empty UWP.png|Measurement Task with a reported value (WinX)&lt;br /&gt;
File:Measurment Task Empty Android.jpg|Measurement Task without a reported value (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Progress Task ====&lt;br /&gt;
&lt;br /&gt;
[[MROCLS_MRO_PROGRESS_TASK| Progress Task]] inherits from [[MROCLS_MRO_MEASUREMENT_TASK|Task]] and reports a certain progress while fullfilling a task. The progress will influence the overall progress of the owning workpackage. If the task cannot be fullfilled, it can also be finished with the option ''Not Applicable''.&lt;br /&gt;
&lt;br /&gt;
There is also an [[MRO_PROGRESS_TASK_EDITOR|alternative editor]] available for progress tasks.{{Version/WinXSince|2.5.4}}&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Progress Task UWP.png|Progress Task with a reported work progress (WinX)&lt;br /&gt;
File:Progress Task Android.jpg|Progress Task with a reported work progress and a previous progress(Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Check Task ====&lt;br /&gt;
&lt;br /&gt;
A [[MROCLS_MRO_CHECK_TASK|Check Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished by reporting ''Done'' or ''Not Applicable''. This is intended for a simple To-Do task that is either done or not.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Check Task finished UWP.png|Unfinished MRO CheckTask (WinX)&lt;br /&gt;
File:Check Task android.jpg|Not Applicable MRO CheckTask (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Inspection Task ====&lt;br /&gt;
&lt;br /&gt;
[[MROCLS_MRO_INSPECTION_TASK|Inspection Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished, when the user reports with a positive or negative answer or ''Not Applicable'' (e.g. reporting a yes/no answer for existing equipment).&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=497px heights=69px&amp;gt;&lt;br /&gt;
File:Finished Inspection Task UWP.png|Finished MRO InspectionTask (WinX)&lt;br /&gt;
File:Inspection task android.jpg|Finished MRO InspectionTask (Android)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Sequential Task ====&lt;br /&gt;
The [[MROCLS_SEQUENTIALTASK|sequential task classification]] allows you to pre-define a sequence in which tasks are to be resolved by users. This means that it is required for one or multiple tasks to be finished in order for other tasks to become &amp;quot;unlocked&amp;quot; and editable. A task can have any number of &amp;quot;predecessors&amp;quot;. Predecessors are the tasks that are required to be finished first.&lt;br /&gt;
&lt;br /&gt;
A task can have predecessors that live anywhere else in the object hierarchy. It is not necessary for a task and its predecessors to be part of the same work package, even though this is likely the most common use case.&lt;br /&gt;
&lt;br /&gt;
The state of a sequential task is evaluated both offline and online to get the best possible user experience. The user will see dependent tasks update immediately if their successors were finished, if those tasks are currently visible in the UI. There is 1 case in which the server-side state will override the client-side (offline) evaluation, discussed below.&lt;br /&gt;
The state of each sequential task is evaluated the following way:&lt;br /&gt;
&lt;br /&gt;
# If the server-side state says the task is open, we consider this as the truthful state and don't do any other evaluation.&lt;br /&gt;
# Check if the task has any predecessors.&lt;br /&gt;
# Try to load each predecessor task.&lt;br /&gt;
#* If loading of any predecessor fails (the object is not available offline), the task will be locked.&lt;br /&gt;
# If all predecessor tasks are finished, the task is open and can be edited. Otherwise, the task is locked.&lt;br /&gt;
&lt;br /&gt;
The customizer setting up the task dependency relations needs to ensure that the dependencies are not cyclical. In this case, it would be impossible for any tasks in the &amp;quot;cycle&amp;quot; to be finished.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&lt;br /&gt;
&lt;br /&gt;
As a demonstration of this feature, see [[Media:Sequential_tasks_winx.mp4|this video]]. The relations between tasks are defined as in [[Media:Task_relations.png|this image]], starting at A1 and A2, which are not dependent on any other tasks. The lines (from left to right) indicate dependencies. This means that B2 has tasks A1 and A2 as its predecessors, for example.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Grouped Task {{Version/WinXSince|4.2}}{{Version/XamarinSince|4.2}} ====&lt;br /&gt;
Sometimes, not all tasks have to be finished. More specifically, there might be a predefined condition where you only need to finish a certain number of tasks among a group of them. These are known in {{UBIK}} as [[MROCLS_GROUPEDTASK|grouped tasks]].&lt;br /&gt;
&lt;br /&gt;
The idea is, a group of tasks can be defined as siblings to each other and they also share the same server configured threshold. When the number of finished tasks among that group exceeds the threshold, the entire group is considered as no longer necessary. When reflected in the overall status of the task owner(s), these tasks would appear as if they are finished.&lt;br /&gt;
&lt;br /&gt;
{{Hint|Technically speaking, the finished status is completely independent from the not necessary status on a task. A grouped task which is no longer necessary can be both finished or not yet finished. In other words, users don't have to finish a not necessary grouped task, but they still can.}}&lt;br /&gt;
&lt;br /&gt;
{{Hint|The precise status calculation for grouped tasks and their task owners requires the knowledge of all siblings tasks. Imagine 2 out of 3 tasks must be finished but the client only knows 1 in total and the others are only available at the server at that time. This makes it impossible to draw conclusions whether the task(s) should be necessary or not. Under such circumstances, the local status calculation is done as if these are just regular tasks.}}&lt;br /&gt;
&lt;br /&gt;
{{Hint|Like with the other MRO objects, the client always chooses the best available statuses for grouped tasks to present to the users. More specifically, it uses the statuses calculated by the server when the client is not offline and there are no uncommitted local changes on the involved objects. Otherwise, it uses the statuses calculated locally to the best of its knowledge.}}&lt;br /&gt;
&lt;br /&gt;
A task can also be a grouped and a sequential one at the same time. In such a case, the grouped nature of the sibling tasks will affect the way the task sequence completes.&lt;br /&gt;
&lt;br /&gt;
For example, task A1, A2 and A3 are 3 grouped sibling tasks and only 1 of them needs to be finished. At the same time, they are all predecessors of task B. Normally, all predecessors must be finished (and locked) before task B becomes the next one in the sequence and therefore unlocked. In this case, however, as soon as one of the predecessors is finished, all three become unnecessary (and locked) and task B unlocks as a result of that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Supervisor Task {{Version/XamarinSince|4.8}} ====&lt;br /&gt;
As the name suggests, supervisor tasks are those that must be finished under supervision. When users want to finish a [[MROCLS_MRO_SUPERVISOR_TASK|supervisor task]], they must hand over their work devices to a supervisor. The latter checks the work status and scans an NFC tag if the work is approved. If the [[MROCLS_MRO_SUPERVISOR|supervisor]] has sufficient permissions for the task and the correct supervisor PIN is given, the task gets unlocked and the users can proceed to finish it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=300px&amp;gt;&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_Before_Verification.jpg|Supervisor Task Before Verification/Unlocking (Mobile)&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_Enter_PIN.jpg|Supervisor Task Enter PIN (Mobile)&lt;br /&gt;
File:UI_Xamarin_Supervisor_Task_After_Verification.jpg|Supervisor Task After Verification/Unlocking (Mobile)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A thing to note is that while the need to verify a supervisor task can be seen as a type of locking, it's certainly not the only reason for a [[Locked_Objects|locked object]]. This means a supervisor task can remain locked (although for different reasons) even after a supervisor has successfully verified it. This can often be the case if you use it in combination with other features such as [[MRO_Objects_(Client)#Sequential_Task|sequential tasks]], [[User_Rights|user rights]].&lt;br /&gt;
&lt;br /&gt;
{{Hint|For security reasons, the verification process is cancelled if the supervisor enters the wrong PIN for three times. Scanning the tag again is required in that case.}}&lt;br /&gt;
{{Hint|A setting controls [[RFID_tags#Choose_which_information_to_use_from_a_tag|which information in a scanned tag is used]] during this process.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MRO objects with project information (WinX only) {{Version/WinXSince|2.5.4}} ===&lt;br /&gt;
[[File:UI_WinX_MRO_ProjectInfo.png|thumb|MRO Object with Project Info (WinX)]]&lt;br /&gt;
An MRO object (except tasks) might also bring along [[MROCLS_PROJECTINFORMATION|project information]]. In this case, the project information together with the MRO progress are displayed in a bar chart. The start &amp;amp; end dates of the MRO object are displayed on the progress bar. The length and the position of the progress bar, together with the current date mark indicate the timeline.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Locking ==&lt;br /&gt;
When an (MRO) object is locked, editing it becomes impossible. More details about [[Locked_Objects|locked objects]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[MRO (Plugin)]]&lt;br /&gt;
* [[MROCLS_PROJECT]]&lt;br /&gt;
* [[MROCLS_PROJECTINFORMATION]]&lt;br /&gt;
* [[MROCLS_SEQUENTIALTASK]]&lt;br /&gt;
* [[MROCLS_GROUPEDTASK]]&lt;br /&gt;
* [[MROCLS_MRO_CHECK_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_INSPECTION_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_MEASUREMENT_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_PROGRESS_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_TASK]]&lt;br /&gt;
* [[MROCLS_MRO_TASKOWNER]]&lt;br /&gt;
* [[MROCLS_MRO_WORKPACKAGE]]&lt;br /&gt;
* [[MROCLS_PROCEDURE#Procedure Workpackage]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_TASK#Switch Task]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_END_TASK#Switch End Task]] (Classification)&lt;br /&gt;
* [[MROCLS_CALCULATION_TASK#Calculation Task]] (Classification)&lt;br /&gt;
&lt;br /&gt;
[[Category:Android|MRO Objects (UBIK WinX)]]&lt;br /&gt;
[[Category:Client|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Mobile|MRO Objects (Client)]]&lt;br /&gt;
[[Category:Pages with broken file links|MRO Objects (Client)]]&lt;br /&gt;
[[Category:WinX|MRO Objects (UBIK WinX)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=MRO_(Plugin)&amp;diff=29332</id>
		<title>MRO (Plugin)</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=MRO_(Plugin)&amp;diff=29332"/>
				<updated>2026-02-10T08:14:03Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* Technical Status */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The MRO plugin provides a set of {{UBIK}} objects which allow to represent and document maintenance, repair and operations work on the mobile client. An respective implementation of this set of features is available on {{UBIK WinX}}.&lt;br /&gt;
&lt;br /&gt;
== Basic Features ==&lt;br /&gt;
Objects classified as MRO objects in general provide a technical and organisational status as well as the overall work progress based on the underlying data branch.&lt;br /&gt;
&lt;br /&gt;
=== Technical Status ===&lt;br /&gt;
For detailed information, see [[MRO Objects (Client)#Technical Status|Technical Status]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Module|MRO (Plugin)]]&lt;br /&gt;
&lt;br /&gt;
=== Organisational Status ===&lt;br /&gt;
The organisational status indicates the amount of confirmed work done in the data branch. It can include a work package already confirmed or tasks that are already locked by their owning workpackage.&lt;br /&gt;
&lt;br /&gt;
=== Work Progress ===&lt;br /&gt;
The work progress is calculated from the current work progress and from the progress cumulated from subsequent objects in the underlying data branch. This indicator shows the amount of work done in the data branch.&lt;br /&gt;
&lt;br /&gt;
== MRO Objects ==&lt;br /&gt;
A set of specific objects can be used to provide the required structure for MRO:&lt;br /&gt;
&lt;br /&gt;
=== Task Owner ===&lt;br /&gt;
A [[MROCLS_MRO_TASKOWNER|Task Owner]] is an object having a substructure of jobs to be done. It can have a tree of other task owners or work packages underneath that will update the status of the task owner. This status consists of technical, organisational and progress information. With a task owner a user can get an overview of all the work to be done in the underlying job structure.&lt;br /&gt;
&lt;br /&gt;
=== Work Package===&lt;br /&gt;
A [[MROCLS_MRO_WORKPACKAGE|Work Package]] is a collection of objects to collect and summarize other task owning objects, workpackages, or tasks. A simple workpackage has a certain amount of tasks that have to be finished in order to confirm the workpackage as done. More complex workpackages can also own other underlying workpackages that have to be confirmed.  Confirming a workpackage itself requires a progress of 100% of all related tasks, as well as 100% confirmed sub work packages.&lt;br /&gt;
&lt;br /&gt;
=== Task ===&lt;br /&gt;
A [[MROCLS_MRO_TASK|Task]] is an object reporting a certain progress to the owning workpackage. There are several specialized types of task objects. All kinds of tasks have a property called '''VALUE''' in common. It is very important, that this property is able to be validated. Therefore, a MetaAttribute (providing a validation timestamp by default) has to be attached on the used MetaProperty.&lt;br /&gt;
&lt;br /&gt;
{{Attention|The MetaProperty ''VALUE'' has to use [[Attributes]] in order to be validated. Otherwise, the calculation of work progress will not be possible.}}&lt;br /&gt;
&lt;br /&gt;
==== Measurement Task ====&lt;br /&gt;
A [[MROCLS_MRO_MEASUREMENT_TASK|Measurement Task]] inherits from [[MROCLS_MRO_TASK|Task]] and documents a measured value (e.g. read from a pressure gauge). Once a value has been entered, the task is finished. Alternatively, the task can also be closed by the option ''Not Applicable'' to document the situation of not being able to fullfill the measurement (e.g. the pressure gauge is broken). &lt;br /&gt;
&lt;br /&gt;
==== Progress Task ====&lt;br /&gt;
[[MROCLS_MRO_PROGRESS_TASK| Progress Task]] inherits from [[MROCLS_MRO_MEASUREMENT_TASK|Task]] and reports a certain progress while fullfilling a task. The progress will influence the overall progress of the owning workpackage. If the task cannot be fullfilled, it can also be finished with the option ''Not Applicable''.&lt;br /&gt;
&lt;br /&gt;
==== Check Task ====&lt;br /&gt;
[[MROCLS_MRO_CHECK_TASK|Check Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished by reporting ''Done'' or ''Not Applicable''. This is intended for a simple To-Do task that is either done or not.&lt;br /&gt;
&lt;br /&gt;
==== Inspection Task ====&lt;br /&gt;
A [[MROCLS_MRO_INSPECTION_TASK|Inspection Task]] inherits from [[MROCLS_MRO_TASK|Task]] and is finished, when the user reports with a positive or negative answer or ''Not Applicable'' (e.g. reporting a yes/no answer for existing equipment).&lt;br /&gt;
&lt;br /&gt;
== MRO Implemented Objects ==&lt;br /&gt;
A set of specific objects extending functionalities of existing MRO elements.&amp;lt;br /&amp;gt;&lt;br /&gt;
For Task Objects, Value properties are assigned by default and implement necessary classifications.&lt;br /&gt;
&lt;br /&gt;
=== Procedure Workpackage ===&lt;br /&gt;
A [[MROCLS_PROCEDURE|Procedure Workpackage]] is a specialized type of [[MROCLS_MRO_WORKPACKAGE|Work Package]] designed to model complex workflows. It consists of sequential tasks that can include branching logic, modular structures, and references to linked data. Procedure Workpackages allow the execution of structured processes that may adapt dynamically depending on conditions. They support both online and offline execution, with certain steps (e.g. data exchange) triggered once connectivity is available.&lt;br /&gt;
&lt;br /&gt;
=== Switch Start Task ===&lt;br /&gt;
A [[MROCLS_SWITCH_START_TASK|Switch Start Task]] is a type of sequential task used within a Procedure Workpackage to define branching logic. It evaluates a predefined (boolean) condition, which can be checked by the client, to determine which branch (true or false) of the workflow will be followed. Each branch represents a different execution path composed of its own set of tasks. A Switch Start Task always requires a corresponding [[MROCLS_SWITCH_END_TASK|Switch End Task]], where all branches converge and the unified procedure continues.&lt;br /&gt;
&lt;br /&gt;
=== Switch End Task ===&lt;br /&gt;
A [[MROCLS_SWITCH_END_TASK|Switch End Task]] marks the end of a branching structure initiated by a [[MROCLS_SWITCH_TASK|Switch Task]]. It is a sequential task that connects the different branches back into a single workflow path. Each Switch End Task is directly linked to its respective Switch Task and ensures that, regardless of which branch was taken, the overall procedure continues in a consistent and controlled manner.&lt;br /&gt;
&lt;br /&gt;
=== Check Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Check Task]] allows the user to check the task as completed or Not Applicable.&lt;br /&gt;
&lt;br /&gt;
=== Numeric Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Numeric Task]] allows the user to input a numeric value (double). It includes a defined value range, and if the entered value falls outside this range, the task is visually marked as problematic.&lt;br /&gt;
&lt;br /&gt;
=== Inspection Task ===&lt;br /&gt;
An [[MRO_Implemented_Objects|Inspection Task]] presents the user with two customizable buttons representing different inspection outcomes, along with a Not Applicable option. The labels of the buttons can be defined during the procedure creation.&lt;br /&gt;
&lt;br /&gt;
=== Text Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Text Task]] provides a text input field for the user to enter free-form information. This task is useful for capturing qualitative data or comments during the procedure.&lt;br /&gt;
&lt;br /&gt;
=== Picture Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Picture Task]] enables the user to take and attach one or more photos. It includes a button to initiate the camera and another to confirm the task. The confirmation button remains disabled until at least one picture has been successfully captured.&lt;br /&gt;
&lt;br /&gt;
=== Dynamic List Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Dynamic List Task]] presents a button that, when clicked, displays a list of selectable options. These options are defined by the procedure creator and can vary depending on the context. This task is ideal for scenarios requiring user selection from a predefined but flexible set of choices.&lt;br /&gt;
&lt;br /&gt;
=== Supervisor Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Supervisor Task]] includes a button for NFC reading. If a supervisor successfully authenticates, it enables confirmation buttons, input fields, or other interactive elements.&lt;br /&gt;
&lt;br /&gt;
=== Interface Task ===&lt;br /&gt;
An [[MRO_Implemented_Objects|Interface Task]] performs a REST API request automatically when it becomes active. It does not include any visible buttons or user interaction. Once the server responds, the task is automatically confirmed based on the response.&lt;br /&gt;
&lt;br /&gt;
=== Calculation Task ===&lt;br /&gt;
A [[MRO_Implemented_Objects|Calculation Task]] is used to evaluate a predefined expression and apply its result to a predefined property on its owner. It supports logical or numerical expressions. The result type is defined explicitly to ensure correct handling and validation by the client.&lt;br /&gt;
&lt;br /&gt;
[[Category:Module|MRO (Plugin)]]&lt;br /&gt;
&lt;br /&gt;
=== Signature Task ===&lt;br /&gt;
Signature Task prompts the user to provide a written signature to confirm task completion. The task is marked complete once the signature is submitted.&lt;br /&gt;
&lt;br /&gt;
[[Category:Module|MRO (Plugin)]]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[MROCLS_MRO_TASKOWNER#Task Owner]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_WORKPACKAGE#Work Package]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_TASK#Task]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_MEASUREMENT_TASK#Measurement Task]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_PROGRESS_TASK# Progress Task]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_CHECK_TASK#Check Task]] (Classification)&lt;br /&gt;
* [[MROCLS_MRO_INSPECTION_TASK#Inspection Task]] (Classification)&lt;br /&gt;
* [[MROCLS_SEQUENTIALTASK]] (Classification)&lt;br /&gt;
* [[MROCLS_GROUPEDTASK]] (Classification)&lt;br /&gt;
* [[MROCLS_PROJECT]] (Classification)&lt;br /&gt;
* [[MROCLS_PROJECTINFORMATION]] (Classification)&lt;br /&gt;
* [[MRO_Objects_(Client)]]&lt;br /&gt;
* [[MRO_Implemented_Objects]]&lt;br /&gt;
* [[MROCLS_PROCEDURE#Procedure Workpackage]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_START_TASK#Switch Start Task]] (Classification)&lt;br /&gt;
* [[MROCLS_SWITCH_END_TASK#Switch End Task]] (Classification)&lt;br /&gt;
* [[MROCLS_CALCULATION_TASK#Calculation Task]] (Classification)&lt;br /&gt;
&lt;br /&gt;
[[Category:Module|MRO (Plugin)]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=HowTo:Convert_Xamarin_XAMLs_to_Maui&amp;diff=29234</id>
		<title>HowTo:Convert Xamarin XAMLs to Maui</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=HowTo:Convert_Xamarin_XAMLs_to_Maui&amp;diff=29234"/>
				<updated>2025-12-12T11:50:45Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* UBIKTabView */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Information ==&lt;br /&gt;
=== Frame to Border ===  &lt;br /&gt;
'''Use [https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/border?view=net-maui-9.0 Border] instead of Frame.'''  &lt;br /&gt;
Frame is deprecated in MAUI. Attributes;&lt;br /&gt;
* Stroke (previously BorderColor)&lt;br /&gt;
* Use StrokeShape (previously CornerRadius) to define the corners. Eg. &amp;lt;nowiki&amp;gt;StrokeShape=&amp;quot;RoundRectangle 8,8,8,8&amp;quot;&amp;lt;/nowiki&amp;gt; where the corner curve can be written as 1 value (all the same), 2 values (horizontal and vertical), or 4 values (each corner defined seperately). The default StrokeShape is 'Rectangle', which effectively equals a CornerRadius of 0.&lt;br /&gt;
* StrokeThickness can be used to define the thickness of the border.&lt;br /&gt;
* Other properties documented in the link above can be used to define the look of the border. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;Frame ... /&amp;gt;&lt;br /&gt;
| &amp;lt;Border ... /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
&lt;br /&gt;
=== LayoutOptions with &amp;quot;...AndExpand&amp;quot; ===  &lt;br /&gt;
'''Replace &amp;quot;...AndExpand&amp;quot; with Grid layout.'''  &lt;br /&gt;
Horizontal/VerticalOptions ending in &amp;quot;...AndExpand&amp;quot; are deprecated. Use Grid with `ColumnDefinition Width=&amp;quot;*&amp;quot;` for expansion.&lt;br /&gt;
&lt;br /&gt;
=== GlyphLabel and Styles ===  &lt;br /&gt;
'''Use Label with new styles.'''  &lt;br /&gt;
Custom controls like `GlyphLabel` are no longer needed. Use `Label` with styles like `UBIKSymbolText`.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| controls:GlyphLabel&lt;br /&gt;
| Label with UBIKSymbolText style&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== SfTabView Virtualization ===  &lt;br /&gt;
'''Enable virtualization.'''  &lt;br /&gt;
Add `EnableVirtualization=&amp;quot;True&amp;quot;` to all SfTabView instances or styles.&lt;br /&gt;
&lt;br /&gt;
=== Swipe Menu Icons on Android ===  &lt;br /&gt;
'''Refactor swipe templates and label styles.'''  &lt;br /&gt;
Icons in swipe menus were truncated on Android. Fixed via refactoring.&lt;br /&gt;
&lt;br /&gt;
=== Color Style Changes ===  &lt;br /&gt;
'''Dark theme adjustments.'''  &lt;br /&gt;
Changes to color styles may affect appearance. Review usage of `UBIKDarkThemeColor`, `UBIKDarkTextColor`, etc.&lt;br /&gt;
&lt;br /&gt;
=== Strikethrough Converter ===  &lt;br /&gt;
'''Use `TextDecorations=&amp;quot;Strikethrough&amp;quot;` instead of converter.'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| Text=&amp;quot;{Binding ..., Converter={StaticResource StrikethroughConverter}}&amp;quot;&lt;br /&gt;
| Text=&amp;quot;{Binding ...}&amp;quot; TextDecorations=&amp;quot;Strikethrough&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Button Disabled Trigger ===  &lt;br /&gt;
'''Add trigger for disabled buttons.'''  &lt;br /&gt;
Maui buttons don’t visually change when disabled. Add trigger to style.&lt;br /&gt;
&lt;br /&gt;
=== TapGestureRecognizer Replacement ===  &lt;br /&gt;
'''Use TappedBehavior instead.'''  &lt;br /&gt;
TapGestureRecognizer now intercepts taps. Use `TappedBehavior` to avoid conflicts.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;... .GestureRecognizers&amp;gt;&amp;lt;TapGestureRecognizer Command=&amp;quot;{Binding ...}&amp;quot; /&amp;gt;&amp;lt;/... .GestureRecognizers&amp;gt;&lt;br /&gt;
| &amp;lt;... .Behaviors&amp;gt;&amp;lt;behaviors:TappedBehavior&amp;gt;&amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding ...}&amp;quot; /&amp;gt;&amp;lt;/behaviors:TappedBehavior&amp;gt;&amp;lt;/... .Behaviors&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TapGestureRecognizer and Swipe Conflict ===  &lt;br /&gt;
'''Remove TapGestureRecognizer from root Grid.'''  &lt;br /&gt;
TapGestureRecognizer blocks swipe behavior. Remove it and adapt parent list to trigger navigation. An example of such behaviors can be seen in UBIKChildArea.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Navigation in UBIKChildItem ===  &lt;br /&gt;
'''Use EventHandlerBehavior for navigation.'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| [none]&lt;br /&gt;
| &amp;lt;controls:SfListViewExt.Behaviors&amp;gt;&amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;ItemTapped&amp;quot;&amp;gt;&amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding AppStatus.RootList.Items[0].NavigateToChildrenCommand}&amp;quot; /&amp;gt;&amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&amp;lt;/controls:SfListViewExt.Behaviors&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
== Recommended ==&lt;br /&gt;
=== Extract DataTemplates from UBIKThemes ===&lt;br /&gt;
'''Create separate .xamlx files for the following DataTemplates.'''&lt;br /&gt;
It's not so easy about the namespaces:&lt;br /&gt;
* In our default templates, it's enough to add the following ones to every new separate .xamlx files at the beginning;&lt;br /&gt;
    * xmlns:ctrls=&amp;quot;clr-namespace:UBIK.MAUI.Controls;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
    * xmlns:platform=&amp;quot;clr-namespace:UBIK.MAUI.Platform.Renderers;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
    * xmlns:resources=&amp;quot;clr-namespace:UBIK.MAUI.Resources;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
    * xmlns:services=&amp;quot;clr-namespace:UBIK.MAUI.Services;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
    * xmlns:uiservices=&amp;quot;clr-namespace:UBIK.UI.Services;assembly=UBIK.UI&amp;quot;.&lt;br /&gt;
* But we don't know if other namespaces might be used in the custom templates. So it might be necessary to really analyze the namespaces used and find/copy them from the UBIKThemes file.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! &amp;amp;nbsp; !! Templates !! &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| UBIKMainItem || UBIKChildItem || UBIKTaskItem&lt;br /&gt;
|-&lt;br /&gt;
| UBIKTaskProperty || UBIKTaskPropertyString || UBIKTaskPropertyDouble&lt;br /&gt;
|-&lt;br /&gt;
| UBIKTaskPropertyInt || UBIKTaskPropertyNumeric || UBIKTaskPropertyDateTime&lt;br /&gt;
|-&lt;br /&gt;
| UBIKTaskPropertyGeoData || UBIKTaskPropertyBool || UBIKTaskPropertyPopup&lt;br /&gt;
|-&lt;br /&gt;
| UBIKTaskPropertyList || UBIKTaskPropertyGuid || UBIKPropertyItem&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyTextLengthHint || UBIKPropertyDirectEditButtons || UBIKTaskPropertyEditButtons&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyDirectItemString || UBIKPropertyDirectItemDouble || UBIKPropertyDirectItemInt&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyDirectItemMinMax || UBIKPropertyDirectItemNumeric || UBIKPropertyDirectItemDateTime&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyDirectItemGeoData || UBIKPropertyDirectItemBool || UBIKPropertyDirectItemPopup&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyDirectItemList || UBIKPropertyDirectItemGuid || UBIKDocumentItem&lt;br /&gt;
|-&lt;br /&gt;
| UBIKSearchResultItem || UBIKDefaultHotSpot || UBIKAngularLinkHotSpot&lt;br /&gt;
|-&lt;br /&gt;
| UBIKRoundLinkHotSpot || UBIKInputHotSpot || UBIKSignatureHotSpot&lt;br /&gt;
|-&lt;br /&gt;
| UBIKObjectHotSpot || UBIKMediaHotSpot || &lt;br /&gt;
|}&lt;br /&gt;
=== VideoPlayer Adjustments ===&lt;br /&gt;
'''This property is repsonsible for the video player regarding how or if it should get scaled up depending on the value of the&lt;br /&gt;
Aspect property'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;VideoPlayer...&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;VideoPlayer Aspect=&amp;quot;AspectFit&amp;quot;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''The UriToVideoSourceConverter is no longer needed because the conversion of the &lt;br /&gt;
VideoSource gets done by the MediaElement itself. It is marked as obsolete and should therefore no longer be used.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:VideoPlayer... Source=&amp;quot;{Binding DocumentViewModel.LocalURI, Converter={StaticResource UriToVideoSource}}&amp;quot;/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:VideoPlayer... Source=&amp;quot;{Binding DocumentViewModel.LocalURI}&amp;quot;/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''The StopTimer property is obsolete and no longer needed because the MediaElement behind does the Stop of the VideoPlayer&lt;br /&gt;
by itself.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:VideoPlayer... StopTimer=&amp;quot;{Binding Unloaded}&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:VideoPlayer... /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
=== SearchBar Style Fix on iOS ===&lt;br /&gt;
'''On iOS, defining a transparent background for the SearchBar control results in a black text on black background appearance.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;[issue on iOS only] UBIKThemes: SearchBar style: &amp;lt;Setter Property=&amp;quot;BackgroundColor&amp;quot; Value=&amp;quot;Transparent&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;Delete this setter&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Remove TapGestureRecognizer from Main Item ===&lt;br /&gt;
'''Swiping on the Main items was broken by Maui (Documented in Information). The workaround is to remove the TapGestureRecognizer from UBIKMainItem, and add ListView-based navigation similar to that found in UBIKChildArea (with an extended binding path for technical reasons).'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;(In UBIKMainItem)&lt;br /&gt;
&amp;lt;Grid.GestureRecognizers&amp;gt;&lt;br /&gt;
	&amp;lt;TapGestureRecognizer Command=&amp;quot;{Binding NavigateToChildrenCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Grid.GestureRecognizers&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;[nothing]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
=== Add Navigation Behavior in Child Area ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;(In UBIKChildArea)&lt;br /&gt;
[nothing]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:SfListViewExt.Behaviors&amp;gt;&lt;br /&gt;
	&amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;ItemTapped&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding AppStatus.RootList.Items[0].NavigateToChildrenCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
	&amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt.Behaviors&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
== Highly Recommended ==&lt;br /&gt;
=== CircularImage to AvatarView ===  &lt;br /&gt;
'''Use AvatarView instead of CircularImage.'''  &lt;br /&gt;
CircularImage and its wrapping Frame are no longer needed. Use AvatarView from the MAUI Community Toolkit. Add the namespace:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
xmlns:toolkit=&amp;quot;http://schemas.microsoft.com/dotnet/2022/maui/toolkit&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;Frame&amp;gt;&amp;lt;CircularImage Source=&amp;quot;...&amp;quot; /&amp;gt;&amp;lt;/Frame&amp;gt;&lt;br /&gt;
| &amp;lt;toolkit:AvatarView ImageSource=&amp;quot;...&amp;quot; BorderWidth=&amp;quot;...&amp;quot; BackgroundColor=&amp;quot;...&amp;quot; /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== GlyphSize to FontSize and Alignment ===  &lt;br /&gt;
'''Use FontSize and alignment properties instead of GlyphSize.'''  &lt;br /&gt;
The GlyphSize property is obsolete. Use FontSize and add alignment properties for better layout.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;Setter Property=&amp;quot;GlyphSize&amp;quot; Value=&amp;quot;13.0&amp;quot; /&amp;gt;&lt;br /&gt;
| &amp;lt;Setter Property=&amp;quot;FontSize&amp;quot; Value=&amp;quot;16&amp;quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;Setter Property=&amp;quot;VerticalOptions&amp;quot; Value=&amp;quot;Center&amp;quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;Setter Property=&amp;quot;HorizontalOptions&amp;quot; Value=&amp;quot;Center&amp;quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;Setter Property=&amp;quot;VerticalTextAlignment&amp;quot; Value=&amp;quot;Center&amp;quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;Setter Property=&amp;quot;HorizontalTextAlignment&amp;quot; Value=&amp;quot;Center&amp;quot; /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== StaticResource to DynamicResource ===  &lt;br /&gt;
'''Use DynamicResource and BaseResourceKey.'''  &lt;br /&gt;
For dynamic theming, use DynamicResource instead of StaticResource. When inheriting styles, use BaseResourceKey.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| BasedOn=&amp;quot;{StaticResource SomeStyle}&amp;quot;&lt;br /&gt;
| BaseResourceKey=&amp;quot;SomeStyle&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Style=&amp;quot;{StaticResource SomeStyle}&amp;quot;&lt;br /&gt;
| Style=&amp;quot;{DynamicResource SomeStyle}&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UBIKPropertyDirectEditListPopup and Guid link direct editing ===&lt;br /&gt;
We have changed the way the content item template is defined and used in UBIKPropertyDirectEditListPopup, which is used in the direct editing of Guid link properties. This change aims to simplify the template and is also due to the fact that the old approach has a poor performance in the new MAUI app.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;DataTemplate x:Key=&amp;quot;PopupFilterQueryItemTemplate&amp;quot;&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
|| &lt;br /&gt;
The DataTemplate &amp;quot;PopupFilterQueryItemTemplate&amp;quot; is no longer needed and should be removed.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;FilterQueryResultList&amp;quot;&lt;br /&gt;
    ...&lt;br /&gt;
    ItemTemplate=&amp;quot;{StaticResource PopupFilterQueryItemTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;FilterQueryResultList&amp;quot;&lt;br /&gt;
    ...&lt;br /&gt;
    ItemTemplate=&amp;quot;{Binding [UBIKChildItem], Source={x:Static services:TemplateService.Instance}}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;controls:SfListViewExt.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;ItemTapped&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding SetPropertyValueCommand}&amp;quot; Converter=&amp;quot;{StaticResource ItemTappedEventArgsToViewModelConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding ConfirmEditCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:SfListViewExt.Behaviors&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
In comparison, the old solution defines a &amp;quot;PopupFilterQueryItemTemplate&amp;quot; DataTemplate which simply wraps the needed selection related behaviors to the existing &amp;quot;UBIKChildItem&amp;quot; template. The new solution reuses the &amp;quot;UBIKChildItem&amp;quot; template directly and add the same but adapted behaviors to the list view instead.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UBIKTabView ===&lt;br /&gt;
UBIKTabView has been adapted so that it now supports lazy loading when used in combination with a UBIKContentView or ContentControl. This results in a performance boost because the contents of non-selected tabs are no longer rendered in the UI automatically unless the tab is explicitly selected by the user. Therefore, the LazyLoading property should be set to true for tabs that are not the “default” tabs—i.e., tabs that are not initially selected when a page is opened (Property or Document tabs).&lt;br /&gt;
&lt;br /&gt;
Add the following namespace to use the UBIKTabView:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
xmlns:controls=&amp;quot;clr-namespace:UBIK.MAUI.Controls;assembly=UBIK.MAUI&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''From a performance perspective, our UBIKTabView should be used instead of the SfTabView going forward, as it supports lazy loading.'''{{Version/MobileSince|5.1}}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; table-layout:fixed;&amp;quot;&lt;br /&gt;
! style=&amp;quot;width:60%;&amp;quot; | Xamarin&lt;br /&gt;
! style=&amp;quot;width:40%;&amp;quot; | MAUI&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabView&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
        &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
            &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
        &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
            &amp;lt;ContentView Content=&amp;quot;{Binding [UBIKPropertyArea], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
        &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
            &amp;lt;ContentView Content=&amp;quot;{Binding [UBIKDocumentArea], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&amp;lt;/tabView:SfTabView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt; &lt;br /&gt;
&amp;lt;controls:UBIKTabView&lt;br /&gt;
    x:Name=&amp;quot;ContentTabs&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource TabViewBaseStyle}&amp;quot;&lt;br /&gt;
    TabHeaderPadding=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;controls:UBIKTabView.Items&amp;gt;&lt;br /&gt;
        &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
            &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
                &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; &lt;br /&gt;
                Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
            &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
                &amp;lt;controls:UBIKContentView&lt;br /&gt;
                    Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot;&lt;br /&gt;
                    ConverterParameter=&amp;quot;UBIKPropertyArea&amp;quot;&lt;br /&gt;
                    LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
            &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
                &amp;lt;controls:UBIKContentView&lt;br /&gt;
                    Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot;&lt;br /&gt;
                    ConverterParameter=&amp;quot;UBIKDocumentArea&amp;quot;&lt;br /&gt;
                    LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:UBIKTabView.Items&amp;gt;&lt;br /&gt;
&amp;lt;/controls:UBIKTabView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
&lt;br /&gt;
== Mandatory ==&lt;br /&gt;
&lt;br /&gt;
=== Namespace conversion ===  &lt;br /&gt;
'''Update all namespaces to MAUI equivalents.'''  &lt;br /&gt;
All `xmlns` and `clr-namespace` declarations must be updated to their MAUI counterparts.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| xmlns=&amp;quot;http://xamarin.com/schemas/2014/forms&amp;quot;&lt;br /&gt;
| xmlns=&amp;quot;http://schemas.microsoft.com/dotnet/2021/maui&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core&lt;br /&gt;
| clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific;assembly=Microsoft.Maui.Controls&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Behaviors;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Behaviors;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Classes;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Classes;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Controls;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Converters;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Converters;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Platform.Renderers;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Platform.Controls;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Services;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Services;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Resources;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Resources;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.Scanning.Forms;assembly=UBIK.Scanning.Forms&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Controls.ZXingScanner;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.SfPullToRefresh.XForms;assembly=Syncfusion.SfPullToRefresh.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.PullToRefresh;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.XForms.TabView;assembly=Syncfusion.SfTabView.Xforms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.TabView;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.ListView;assembly=Syncfusion.Maui.ListView&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.XForms.TreeView;assembly=Syncfusion.SfTreeView.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.TreeView;assembly=Syncfusion.Maui.TreeView&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.XForms.TextInputLayout;assembly=Syncfusion.Core.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.SfChart.XForms;assembly=Syncfusion.SfChart.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.Charts;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For classes referenced in the XAML code, please don't forget to also replace &amp;quot;CPL&amp;quot; with &amp;quot;MAUI&amp;quot; in the class namespace.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Syncfusion control updates ===&lt;br /&gt;
'''There are some other properties that have changed their names on SfListView/SfListViewExt. We don't use them in our standard XAMLs. But if you use them in customizings, please refer to https://help.syncfusion.com/maui/listview/migration for the complete list.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
SfListViewExt:&lt;br /&gt;
    * ItemHolding&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| ItemLongPress&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Syncfusion control updates ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| * LeftSwipeTemplate, RightSwipeTemplate&lt;br /&gt;
| StartSwipeTemplate, EndSwipeTemplate&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Layout name change ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
* &amp;lt;sync:SfListView.LayoutManager&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sync:SfListView.ItemsLayout&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TemplateService binding for extracted templates ===&lt;br /&gt;
'''1. We need to add the following namespace where the changes are applied:&lt;br /&gt;
xmlns:services=&amp;quot;clr-namespace:UBIK.MAUI.Services;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
2. We need to search for both &amp;quot;StaticResource&amp;quot; and &amp;quot;DynamicResource&amp;quot;;&lt;br /&gt;
3. We only listed some examples here. But the same rule applies to all those templates exacted from UBIKThemes (see the first &amp;quot;Recommended&amp;quot; point).'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| {StaticResource UBIKChildItem}&lt;br /&gt;
| {Binding [UBIKChildItem], Source={x:Static services:TemplateService.Instance}}&lt;br /&gt;
|-&lt;br /&gt;
| {StaticResource UBIKDocumentItem}&lt;br /&gt;
| {Binding [UBIKDocumentItem], Source={x:Static services:TemplateService.Instance}}&lt;br /&gt;
|-&lt;br /&gt;
| {StaticResource UBIKMainItem}&lt;br /&gt;
| {Binding [UBIKMainItem], Source={x:Static services:TemplateService.Instance}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== OnPlatform and OnIdiom syntax changes ===&lt;br /&gt;
'''All code containing the OnPlatform and OnIdiom functionalities needs to be refactored as the syntax has changed.'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
! style=&amp;quot;width:7%&amp;quot; | Notes&lt;br /&gt;
|-&lt;br /&gt;
| OnPlatform&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;TheControl&lt;br /&gt;
        ...&lt;br /&gt;
        TheProperty=&amp;quot;{OnPlatform Android=False, iOS=True}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;TheControl&lt;br /&gt;
     ...&lt;br /&gt;
     TheProperty=&amp;quot;{OnPlatform Android={Binding ...}, iOS={Binding ...}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | It is recommended to use the inline syntax as a default wherever possible, but there are also other approaches.&lt;br /&gt;
When using Bindings, Resources, or other complex values in OnIdiom or OnPlatform values, it should '''only''' be used with the inline syntax.&lt;br /&gt;
|-&lt;br /&gt;
| OnIdiom&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;TheControl&lt;br /&gt;
        ...&lt;br /&gt;
        TheProperty=&amp;quot;{OnIdiom Phone=False, Desktop=True}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;TheControl&lt;br /&gt;
     ...&lt;br /&gt;
     TheProperty=&amp;quot;{OnIdiom Desktop={Binding ...}, Phone={Binding ...}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
e.g.&lt;br /&gt;
&amp;lt;ColumnDefinition.Width&amp;gt;&lt;br /&gt;
   &amp;lt;OnIdiom&lt;br /&gt;
        ...&lt;br /&gt;
        Desktop=&amp;quot;Auto&amp;quot;&lt;br /&gt;
        Phone=&amp;quot;*&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/ColumnDefinition.Width&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;RowDefinition.Height&amp;gt;&lt;br /&gt;
   &amp;lt;OnPlatform&lt;br /&gt;
        ...&lt;br /&gt;
        Android=&amp;quot;Auto&amp;quot;&lt;br /&gt;
        iOS=&amp;quot;*&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/RowDefinition.Height&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ColumnDefinition Width=&amp;quot;{OnIdiom Desktop='Auto', Phone='*'}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;RowDefinition Height=&amp;quot;{OnPlatform Android='Auto', iOS='*'}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| When using GridLength as a type (e.g,. in ColumnDefinition.Width or RowDefinition.Height) in OnIdiom or OnPlatform, it should '''only''' be used with the inline syntax.&lt;br /&gt;
|-&lt;br /&gt;
| WinPhone&lt;br /&gt;
| WinUI&lt;br /&gt;
| In the scope of any OnPlatform/On Platform, WinPhone needs to be replaced with WinUI.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
⚠️ Please refer to the wiki for more details and possibilities (e.g., if the value contains multiple elements): [https://wiki.augmensys.com/index.php?title=XAML_Tips#Platform_and_Device-specific_UI_with_OnPlatform_and_OnIdiom Platform and Device-specific UI with OnPlatform and OnIdiom].&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
&lt;br /&gt;
=== Remove default ControlTemplate ===&lt;br /&gt;
'''The default ControlTemplate should be removed from the ContentView if the ControlTemplate property of that ContentView is determined by DataTriggers. The same applies to ContentControls. The default ContentTemplate should be removed from the controls:ContentControl if the ContentTemplate property of that ContentControl is determined by DataTriggers.'''&lt;br /&gt;
Using only DataTriggers without a default ControlTemplate ensures that content is created only after the trigger evaluation is complete. If a default ControlTemplate is set, it is always loaded immediately, even if another template is applied right after.&lt;br /&gt;
For more details refer to [[Xamarin_XAML#Conflicting_Triggers|Conflicting Triggers]].&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;containerName&amp;quot; ControlTemplate=&amp;quot;{StaticResource YourTemplate}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger&lt;br /&gt;
            Binding=&amp;quot;{Binding Source={x:Reference containerName}, Path=...}&amp;quot;&lt;br /&gt;
            TargetType=&amp;quot;ContentView&amp;quot;&lt;br /&gt;
            Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot;&lt;br /&gt;
                    Value=&amp;quot;{StaticResource YourTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
        ...&lt;br /&gt;
    &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;containerName&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger&lt;br /&gt;
            Binding=&amp;quot;{Binding Source={x:Reference containerName}, Path=...}&amp;quot;&lt;br /&gt;
            TargetType=&amp;quot;ContentView&amp;quot;&lt;br /&gt;
            Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot;&lt;br /&gt;
                    Value=&amp;quot;{StaticResource YourTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
        ...&lt;br /&gt;
    &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Remove HeadlessLayout style ===&lt;br /&gt;
'''This Style has no longer any effect in MAUI and even degrades app performance. We are keeping it in our standard UBIKThemes under the Obsolete section to maintain backward compatibility.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Style x:Key=&amp;quot;HeadlessLayout&amp;quot; TargetType=&amp;quot;Layout&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;CompressedLayout.IsHeadless&amp;quot; Value=&amp;quot;{OnPlatform False, Android=True}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| Delete it from your custom UBIKThemes file&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Additional mandatory rule ===&lt;br /&gt;
'''In the customizings, however, it can and should be removed entirely, as it negatively affects performance, as mentioned before. To remove the style, you can simply use VS Code or any other editor with a search function and look through all custom .xaml files for usages of {StaticResource HeadlessLayout} or {DynamicResource HeadlessLayout}. These references should be removed from the respective elements or controls.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView&lt;br /&gt;
    Grid.Column=&amp;quot;2&amp;quot;&lt;br /&gt;
    ControlTemplate=&amp;quot;{DynamicResource ChildCountBadge}&amp;quot;&lt;br /&gt;
    HorizontalOptions=&amp;quot;Start&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot;&lt;br /&gt;
    VerticalOptions=&amp;quot;Start&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView&lt;br /&gt;
    Grid.Column=&amp;quot;2&amp;quot;&lt;br /&gt;
    ControlTemplate=&amp;quot;{DynamicResource ChildCountBadge}&amp;quot;&lt;br /&gt;
    HorizontalOptions=&amp;quot;Start&amp;quot;&lt;br /&gt;
    VerticalOptions=&amp;quot;Start&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Rename progress colors ===&lt;br /&gt;
'''Renamed in Maui.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| ProgressBackgroundColor, ProgressStrokeColor&lt;br /&gt;
| ProgressBackground, ProgressColor&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Rename Default Font Name  ===&lt;br /&gt;
'''The name of the default font was slightly renamed in the UBIKThemes file in MAUI — the first letter now needs to be capitalized. Otherwise, on iOS, bold or italic styles are not applied correctly, and changing a property in Direct Editing, for example, would result in no visible change.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;x:String x:Key=&amp;quot;TextFontFamily&amp;quot;&amp;gt;inter&amp;lt;/x:String&amp;gt;&lt;br /&gt;
| &amp;lt;x:String x:Key=&amp;quot;TextFontFamily&amp;quot;&amp;gt;Inter&amp;lt;/x:String&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Chart control updates ===&lt;br /&gt;
'''The Title, Legend, and Zoom &amp;amp; Pan behavior syntax of the Chart control have changed. Further, some SyncFusion Chart components &amp;amp; Properties have changed.'''&lt;br /&gt;
&amp;lt;br&amp;gt;⚠️ For more information and examples about changed SyncFusion Chart components &amp;amp; Properties, please refer to the [https://help.syncfusion.com/maui/cartesian-charts/overview Syncfusion Maui Charts documentation]. For more info on how to customize a chart, refer to [[Charts#Mobile_Chart_Customizing|Mobile Chart Customizing]].&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;chart:SfChart.Title&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartTitle Text=&amp;quot;{Binding Header}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/chart:SfChart.Title&amp;gt;&lt;br /&gt;
&amp;lt;chart:SfChart.Legend&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartLegend /&amp;gt;&lt;br /&gt;
&amp;lt;/chart:SfChart.Legend&amp;gt;&lt;br /&gt;
&amp;lt;chart:SfChart.ChartBehaviors&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartZoomPanBehavior /&amp;gt;&lt;br /&gt;
&amp;lt;/chart:SfChart.ChartBehaviors&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;chart:NumericalStripLine&lt;br /&gt;
    Width=&amp;quot;2&amp;quot;&lt;br /&gt;
    StrokeColor=&amp;quot;{Binding Color, Converter={StaticResource IntToColor}}&amp;quot;&lt;br /&gt;
    IsPixelWidth=&amp;quot;True&amp;quot;&lt;br /&gt;
    StrokeWidth=&amp;quot;5&amp;quot;&lt;br /&gt;
    Start=&amp;quot;{Binding Value}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;chart:FastLineSeries                    &lt;br /&gt;
    ItemsSource=&amp;quot;{Binding Items}&amp;quot;&lt;br /&gt;
    Label=&amp;quot;{Binding Name}&amp;quot;&lt;br /&gt;
    Color=&amp;quot;{Binding Color, Converter={StaticResource IntToColor}}&amp;quot;&lt;br /&gt;
    XBindingPath=&amp;quot;XValue&amp;quot;&lt;br /&gt;
    YBindingPath=&amp;quot;YValue&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfChartExt.Title&amp;gt;&lt;br /&gt;
    &amp;lt;Label Text=&amp;quot;{Binding Header}&amp;quot; HorizontalOptions=&amp;quot;Center&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfChartExt.Title&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfChartExt.Legend&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartLegend /&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfChartExt.Legend&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfChartExt.ZoomPanBehavior&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartZoomPanBehavior /&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfChartExt.ZoomPanBehavior&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;chart:NumericalPlotBand&lt;br /&gt;
    StrokeWidth=&amp;quot;2&amp;quot;&lt;br /&gt;
    Stroke=&amp;quot;{Binding Color, Converter={StaticResource IntToColor}}&amp;quot;&lt;br /&gt;
    Start=&amp;quot;{Binding Value}&amp;quot;&lt;br /&gt;
    End=&amp;quot;{Binding Value}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;chart:FastLineSeries                    &lt;br /&gt;
    ItemsSource=&amp;quot;{Binding Items}&amp;quot;&lt;br /&gt;
    Label=&amp;quot;{Binding Name}&amp;quot;&lt;br /&gt;
    Fill=&amp;quot;{Binding Color, Converter={StaticResource IntToColor}}&amp;quot;&lt;br /&gt;
    XBindingPath=&amp;quot;XValue&amp;quot;&lt;br /&gt;
    YBindingPath=&amp;quot;YValue&amp;quot;&lt;br /&gt;
    StrokeWidth=&amp;quot;2&amp;quot;&lt;br /&gt;
    EnableAntiAliasing=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
&lt;br /&gt;
== SfTabView ==&lt;br /&gt;
&lt;br /&gt;
=== Namespace Update ===&lt;br /&gt;
'''Update Syncfusion TabView namespace.'''&lt;br /&gt;
Replace the Xamarin namespace with the MAUI equivalent.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.XForms.TabView;assembly=Syncfusion.SfTabView.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.TabView;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Remove Obsolete Converters ===&lt;br /&gt;
'''Remove ItemCountToBoolConverter from Resources.'''&lt;br /&gt;
This converter is no longer usable in TabView headers.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;converters:ItemCountToBoolConverter x:Key=&amp;quot;ItemCountToBool&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| [remove]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Add StringFormatConverter ===&lt;br /&gt;
'''Use StringFormatConverter for combined header strings.'''&lt;br /&gt;
Syncfusion MAUI TabView uses a single `Header` property instead of templates.&lt;br /&gt;
For all tab headers, formatters should be specified to assemble the text. As a best practice, even for simple header strings.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| [template-based header]&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;converters:StringFormatConverter x:Key=&amp;quot;ChildrenTabFormatter&amp;quot; Parameter1=&amp;quot;{resources:Translate ChildrenTitle}&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In the above example, a previously defined formatter (that must be also added to the resource dictionary) is used to fill in the header attribute value.&lt;br /&gt;
⚠️ Avoid using bindings in `Parameter1` and `Parameter2` — use static strings only. For complex cases, use `EvalExpression`.&lt;br /&gt;
&lt;br /&gt;
=== FontImageSource Styling ===&lt;br /&gt;
'''Add local style for FontImageSource.'''&lt;br /&gt;
Global styles are not supported.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| [global FontImageSource style]&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Style TargetType=&amp;quot;FontImageSource&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;Setter Property=&amp;quot;FontFamily&amp;quot; Value=&amp;quot;{DynamicResource UBIKSymbols}&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;Setter Property=&amp;quot;Color&amp;quot; Value=&amp;quot;{DynamicResource UBIKLightThemeColor}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TabView Structure ===&lt;br /&gt;
'''Use Grid to wrap TabView.'''&lt;br /&gt;
MAUI TabView requires a different structure and property set.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabView VisibleHeaderCount=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
  ...&lt;br /&gt;
&amp;lt;/tabView:SfTabView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid&amp;gt;&lt;br /&gt;
  &amp;lt;tabView:SfTabView&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem Header=&amp;quot;string example header&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;tabView:SfTabItem.ImageSource&amp;gt;&lt;br /&gt;
        &amp;lt;FontImageSource Glyph=&amp;quot;{x:Static resources:UBIKIcons.XXX}&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/tabView:SfTabItem.ImageSource&amp;gt;&lt;br /&gt;
      &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
  &amp;lt;/tabView:SfTabView&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Property Changes ===&lt;br /&gt;
'''Update renamed or removed properties.'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| VisibleHeaderCount&lt;br /&gt;
| [not available yet]&lt;br /&gt;
|-&lt;br /&gt;
| UBIKCenterButtonSettings&lt;br /&gt;
| CenterButtonSettings&lt;br /&gt;
|-&lt;br /&gt;
| SelectionIndicatorSettings&lt;br /&gt;
| IndicatorPlacement, IndicatorStrokeThickness, IndicatorBackground&lt;br /&gt;
|-&lt;br /&gt;
| SelectionColor&lt;br /&gt;
| Use VisualStateManager instead&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
⚠️ Refer to [https://help.syncfusion.com/maui/tabview/migration Syncfusion migration guide] for full property list.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== SfPullToRefresh ==&lt;br /&gt;
&lt;br /&gt;
'''It is recommended to get rid of all SfPullToRefresh controls due to some issues that might occur.''' For more information refer to [[Mobile_XAML#Issues_with_SfPullToRefresh_in_MAUI|this article]]. In our Maui standard client, the PullToRefresh control has already been replaced by a Refresh button in the Context Menu, so there's no need for a custom Refresh button.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt&lt;br /&gt;
            .../&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
&amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
     .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
⚠️ '''If SfPullToRefresh is still required, the following points should be considered.'''&lt;br /&gt;
&lt;br /&gt;
=== Namespace Update ===&lt;br /&gt;
'''Update Syncfusion TabView namespace.'''&lt;br /&gt;
Replace the Xamarin namespace with the MAUI equivalent.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.SfPullToRefresh.XForms;assembly=Syncfusion.SfPullToRefresh.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.PullToRefresh;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Rename SfPullToRefresh properties ===&lt;br /&gt;
'''Renamed in Maui, however, currently these properties cause an issue and should not be included in customizings.'''&lt;br /&gt;
SfPullToRefresh:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| RefreshContentHeight, RefreshContentWidth&lt;br /&gt;
| RefreshViewHeight, RefreshViewWidth&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Avoid multiple SfPullToRefresh controls ===&lt;br /&gt;
'''To prevent an issue that causes the app to freeze, avoid placing more than one SfPullToRefresh controls as siblings in a xaml hierarchy'''. If switching between contents in a SfPullToRefresh control is necessary use separate DataTemplates for the contents and use e.g. a DataTrigger to set one of them as the ControlTemplate of a ContentControl inside the SfPullToRefresh control.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pullToRefresh:SfPullToRefresh IsVisible = {Binding ShowContentB, Converter={StaticResource BoolToNotBool}}&amp;gt;&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt&lt;br /&gt;
            x:Name=&amp;quot;ContentA&amp;quot;&lt;br /&gt;
            .../&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
&amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pullToRefresh:SfPullToRefresh  IsVisible = {Binding ShowContentB}&amp;gt;&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt&lt;br /&gt;
            x:Name=&amp;quot;ContentB&amp;quot;&lt;br /&gt;
            .../&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
&amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid&amp;gt;&lt;br /&gt;
    &amp;lt;Grid.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;DataTemplate x:Key=&amp;quot;TemplateA&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;controls:SfListViewExt&lt;br /&gt;
                    x:Name=&amp;quot;ContentA&amp;quot;&lt;br /&gt;
                    .../&amp;gt;&lt;br /&gt;
            &amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
            &amp;lt;DataTemplate x:Key=&amp;quot;TemplateB&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;controls:SfListViewExt&lt;br /&gt;
                    x:Name=&amp;quot;ContentB&amp;quot;&lt;br /&gt;
                    .../&amp;gt;&lt;br /&gt;
            &amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/Grid.Resources&amp;gt;&lt;br /&gt;
   &amp;lt;pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
       &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
           &amp;lt;controls:ContentControl&amp;gt;&lt;br /&gt;
               &amp;lt;controls:ContentControl.Triggers&amp;gt;&lt;br /&gt;
                   &amp;lt;DataTrigger&lt;br /&gt;
                       Binding=&amp;quot;{Binding ShowContentB}}&amp;quot;&lt;br /&gt;
                       TargetType=&amp;quot;controls:ContentControl&amp;quot;&lt;br /&gt;
                       Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
                       &amp;lt;Setter Property=&amp;quot;ContentTemplate&amp;quot; Value=&amp;quot;{DynamicResource TemplateA}&amp;quot; /&amp;gt;&lt;br /&gt;
                   &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
                   &amp;lt;DataTrigger&lt;br /&gt;
                       Binding=&amp;quot;{Binding ShowContentB}}&amp;quot;&lt;br /&gt;
                       TargetType=&amp;quot;controls:ContentControl&amp;quot;&lt;br /&gt;
                       Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
                       &amp;lt;Setter Property=&amp;quot;ContentTemplate&amp;quot; Value=&amp;quot;{DynamicResource TemplateB}&amp;quot; /&amp;gt;&lt;br /&gt;
                   &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
               &amp;lt;/controls:ContentControl.Triggers&amp;gt;&lt;br /&gt;
           &amp;lt;/controls:ContentControl&amp;gt;&lt;br /&gt;
       &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Avoid using SyncFusion ListViews directly in SfPullToRefresh controls ===&lt;br /&gt;
'''To prevent an issue on some Android devices that can cause some items in a SfListViewExt to be rendered incorrectly or not at all after triggering a PullToRefresh, avoid placing a SfListViewExt directly in a SfPullToRefresh control'''.&lt;br /&gt;
Instead, wrap the ListView in a DataTemplate and use it in a ContentControl as a child of the SfPullToRefresh control, as shown in the Xaml example below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt&lt;br /&gt;
            .../&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
&amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid&amp;gt;&lt;br /&gt;
    &amp;lt;Grid.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;DataTemplate x:Key=&amp;quot;ListViewTemplate&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;controls:SfListViewExt&lt;br /&gt;
                    .../&amp;gt;&lt;br /&gt;
            &amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/Grid.Resources&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
       &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
           &amp;lt;controls:ContentControl ContentTemplate=&amp;quot;{DynamicResource ListViewTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
       &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Mobile_XAML&amp;diff=29232</id>
		<title>Mobile XAML</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Mobile_XAML&amp;diff=29232"/>
				<updated>2025-12-12T10:43:25Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* Performance */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The User Interface of the Mobile Clients (Android, iOS, Windows) can be fundamentally customized using custom XAML definitions. This customization process is heavily influenced by the [[XAML|XAML Customization Process on the WinX Client]].&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
There are predefined XAML templates available that can be customized. If no customizing is found, the default templates will be used.&lt;br /&gt;
&lt;br /&gt;
== Default XAMLs ==&lt;br /&gt;
All default XAML templates that can be customized are available through the Mobile Windows client. You need to go to the app settings and click the &amp;quot;Unpack default XAMLs&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
== Differences to WinX/UWP ==&lt;br /&gt;
* Since it's based on the Mobile XAML dialect, you CANNOT use any existing XAML customizings for the WinX/UWP app;&lt;br /&gt;
* Namespace definitions must include the corresponding assembly names;&lt;br /&gt;
* XAML template files have the extension name of '''xamlx''' instead of '''xaml''';&lt;br /&gt;
* You can deploy only those resources that you want to customize. (This is also the case for newer versions of WinX/UWP. {{Version/WinXSince|3.6}})&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Overriding default XAMLs=&lt;br /&gt;
On Windows (WinX/UWP), the &amp;lt;code&amp;gt;[App Package Folder]/LocalState/xaml/&amp;lt;/code&amp;gt; folder can be accessed by the user and the customized XAML files directly added. An alternative to this on all platforms (including Android, iOS, etc.) is to use the ''Import Customizing'' button in the app settings to import the templates, styles, images, etc. (file by file, or all files within a zip package). The changes should be reflected in the UI (except the current page) without restarting the app. After directly editing the customizings (Mobile Windows), you can also use the &amp;quot;Reload customizing&amp;quot; button without restarting the app.&lt;br /&gt;
&lt;br /&gt;
In the following, we're going to override the default light theme color of the app:&lt;br /&gt;
* Unpack the default XAMLs;&lt;br /&gt;
* Pick and deploy the default UBIKThemes.xamlx to the '''xaml''' folder inside the ''LocalState'' folder;&lt;br /&gt;
* Open it with the text editor of your choice and remove everything within the '''ResouceDictionary''' except &amp;lt;code&amp;gt;&amp;lt;Color x:Key=&amp;quot;UBIKLightThemeColor&amp;quot;&amp;gt;blue&amp;lt;/Color&amp;gt;&amp;lt;/code&amp;gt;;&lt;br /&gt;
* Save the changes and reload. You should see changes successfully implemented.&lt;br /&gt;
&lt;br /&gt;
{{Attention| For maintainability reasons, it's HIGHLY recommended to deploy only those XAML resources you want to override. For example, if you only want to customize the UBIKChildArea, don't deploy others like the UBIKMenuArea. If you only want to customize the UBIKChildItem, that's the only content you should include in the UBIKThemes.}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Custom Templates ==&lt;br /&gt;
Custom templates can be added, just like on the WinX/UWP client. Make sure to include all '''namespace definitions''' (as attributes of the '''ContentView''' tag), otherwise the custom template will not load.&lt;br /&gt;
&lt;br /&gt;
Similar to the ''UBIKThemes.xamlx'' file, custom or overridden templates start with a &amp;lt;code&amp;gt;&amp;lt;ContentView&amp;gt;&amp;lt;/code&amp;gt; tag containing all '''namespaces'''. &amp;lt;code&amp;gt;&amp;lt;ContentView.Resources&amp;gt;&amp;lt;/code&amp;gt; takes a '''ResourceDictionary''' and contains resources like references to converters. Finally, &amp;lt;code&amp;gt;&amp;lt;ContentView.Content&amp;gt;&amp;lt;/code&amp;gt; contains the actual layout content (it's best to start with a '''Grid'''). Again, don't forget to add namespaces that you need!&lt;br /&gt;
&lt;br /&gt;
Templates can also be defined in ''UBIKThemes.xamlx''. In this case, they need to be added into the &amp;lt;code&amp;gt;&amp;lt;ResourceDictionary&amp;gt;&amp;lt;/code&amp;gt; inside the &amp;lt;code&amp;gt;&amp;lt;ContentView.Resources&amp;gt;&amp;lt;/code&amp;gt; template as a &amp;lt;code&amp;gt;&amp;lt;DataTemplate&amp;gt;&amp;lt;/code&amp;gt;. Similarly, if you want to split up the templates into seperate files, you need to make sure to follow the steps mentioned above and get the content of the &amp;lt;code&amp;gt;&amp;lt;DataTemplate&amp;gt;&amp;lt;/code&amp;gt; into the &amp;lt;code&amp;gt;&amp;lt;ContentView.Content&amp;gt;&amp;lt;/code&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
{{Attention|Templates defined in separate files will override templates defined in the ''UBIKThemes.xamlx''!}}&lt;br /&gt;
&lt;br /&gt;
=== Bindings in resources ===&lt;br /&gt;
When using bindings such as [[Xamarin_XAML#Content_filtering|this]] in a resource located in a custom template, it is necessary to place the template in a UBIKContentView.&lt;br /&gt;
&lt;br /&gt;
{{Hint|Technically speaking, this is because bindable objects in the ResourceDictionary of a ContentView (the custom template) don't automatically inherit the BindingContext from the container/parent view. UBIKContentView is created to additionally do that.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- UBIKCustomView.xamlx --&amp;gt;&lt;br /&gt;
&amp;lt;ContentView...&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;controls:SfDataSourceExt... ItemsSource=&amp;quot;{Binding Children.Items}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Container where UBIKCustomView is placed, e.g. UBIKChildArea.xamlx --&amp;gt;&lt;br /&gt;
&amp;lt;ContentView...&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
    &amp;lt;controls:UBIKContentView Content=&amp;quot;{Binding [UBIKCustomView], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Adding Images ==&lt;br /&gt;
Images can't be loaded with the default '''Image''' tag, as the image is on different paths on each operating system.&lt;br /&gt;
&lt;br /&gt;
Therefore, there's a custom '''FileImage''' that internally overrides the default ''Image'' with two custom parameters:&lt;br /&gt;
* '''FolderName''' ...The name of the '''folder''' in the '''local folder'''. Only the first level inside the ''LocalState'' folder seems to work.&lt;br /&gt;
* '''FileName''' ...The name of the '''file''' in the said folder. &lt;br /&gt;
&lt;br /&gt;
Make sure to implement the proper namespace as well by adding&lt;br /&gt;
&amp;lt;code&amp;gt;xmlns:fimage=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;lt;/code&amp;gt; into the root item's attributes.&lt;br /&gt;
&lt;br /&gt;
Then, the image can be loaded using:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;fimage:FileImage FileName=&amp;quot;image.png&amp;quot; FolderName=&amp;quot;xaml&amp;quot;/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This snipped loads the image called '''image.png''' located in the '''xaml''' folder inside the ''LocalState''.&lt;br /&gt;
&lt;br /&gt;
Furthermore, the ''FileImage'' tag doesn't seem to support most attributes. Therefore place it inside a '''Grid''' to achieve a perfect layout.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Custom Icons ==&lt;br /&gt;
Moved to article [[XAML_Tips#Custom_Icons]].&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Converters==&lt;br /&gt;
:''Main Page: [[Converters_In_Mobile]]''&lt;br /&gt;
&lt;br /&gt;
They are used to convert specific data into some desired output, using custom logic. &lt;br /&gt;
&lt;br /&gt;
Consider the following example:&amp;lt;br/&amp;gt;&lt;br /&gt;
A label saying ''There are no children items available!'' should only be visible if the number of children-items is 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
&lt;br /&gt;
== Feature related ==&lt;br /&gt;
&lt;br /&gt;
=== Customizing Menu Button {{Version/XamarinSince|4.6.0}} === &lt;br /&gt;
&lt;br /&gt;
For the Mobile Client, it is possible to show/hide the '''Menu button''' of the client.&amp;lt;br&amp;gt;&lt;br /&gt;
To customize the visibility of the '''Menu button''' you have to edit the default XAML '''Themes''' file.&lt;br /&gt;
&lt;br /&gt;
* Search for &amp;quot;'''ShowMenuToolBar'''&amp;quot; in the Themes file.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
If there isn't any &amp;quot;'''ShowMenuToolBar'''&amp;quot; in your XAML Themes file, you just have to create one, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;x:Boolean x:Key=&amp;quot;ShowMenuToolBar&amp;quot;&amp;gt;true&amp;lt;/x:Boolean&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Set the value to &amp;quot;true&amp;quot; to show the '''Menu button''' (default value).&lt;br /&gt;
* Set the value to &amp;quot;false&amp;quot; to hide the '''Menu button'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=&amp;quot;300&amp;quot; heights=&amp;quot;500&amp;quot;&amp;gt;&lt;br /&gt;
File:menu_button_show.png|Menu Button shown&lt;br /&gt;
File:menu_button_hiddenV3.png|Menu Button hidden&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Content filtering ===&lt;br /&gt;
For the Mobile clients, an &amp;quot;SfDataSourceExt&amp;quot; type is available for filtering list of items using defined expressions.&amp;lt;br /&amp;gt;&lt;br /&gt;
The following example demonstrates how to filter for child items having certain property values. The filtered list and its count can be displayed in the UI.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ContentView&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&lt;br /&gt;
    ...&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;x:String x:Key=&amp;quot;Expresssion&amp;quot;&amp;gt;Item.Values[&amp;amp;quot;MP_YEAR&amp;amp;quot;].Contains(&amp;amp;quot;2019&amp;amp;quot;)&amp;lt;/x:String&amp;gt;&lt;br /&gt;
            &amp;lt;controls:SfDataSourceExt  x:Key=&amp;quot;FilteredList&amp;quot; Expression=&amp;quot;{StaticResource Expresssion}&amp;quot; ItemsSource=&amp;quot;{Binding Children.Items}&amp;quot; Unloaded=&amp;quot;{Binding SkipFiltering}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
    &amp;lt;StackLayout Orientation=&amp;quot;Vertical&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;Label Text=&amp;quot;{Binding DisplayItemsCount, Source={StaticResource FilteredList}}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt ItemsSource=&amp;quot;{Binding DisplayItems, Source={StaticResource FilteredList}}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/StackLayout&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Notes on using bindings in ResourceDictionary ====&lt;br /&gt;
In the example shown above, you can see &amp;lt;code&amp;gt;{Binding Children.Items}&amp;lt;/code&amp;gt; is used. For this to work, the SfDataSourceExt control inside the ResourceDictionary must inherit the binding data context properly.&lt;br /&gt;
* In this case, that data context comes from where this template (UBIKChildArea.xamlx) is used, namely the UBIKContentArea.xamlx;&lt;br /&gt;
* When referencing this template in a ContentView control, the binding data context is '''NOT''' automatically inherited by the controls inside the ResourceDictioinary;&lt;br /&gt;
* That's why we use a UBIKContentView control instead. You can find its example usage in the default UBIKContentArea.xamlx template.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Search ===&lt;br /&gt;
In the default UBIKMenuArea.xamlx (where the search UI is hosted), there are two commands associated with two events. See below.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;SearchBar ...&amp;gt;&lt;br /&gt;
    &amp;lt;SearchBar.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior&lt;br /&gt;
            Command=&amp;quot;{Binding FreeTextSearchCommand}&amp;quot;&lt;br /&gt;
            CommandParameter=&amp;quot;{Binding Path=Text, Source={x:Reference SearchField}}&amp;quot;&lt;br /&gt;
            EventName=&amp;quot;SearchButtonPressed&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding DelayedFreeTextSearchCommand}&amp;quot; EventName=&amp;quot;TextChanged&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/SearchBar.Behaviors&amp;gt;&lt;br /&gt;
&amp;lt;/SearchBar&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The one for &amp;lt;code&amp;gt;SearchButtonPressed&amp;lt;/code&amp;gt; is responsible for executing searches after the user confirms the input (e.g. pressing {{{keypress|Enter}}} or the search button).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The one for &amp;lt;code&amp;gt;TextChanged&amp;lt;/code&amp;gt; is responsible for the &amp;quot;search as you type&amp;quot; behavior. Namely it triggers an automatic search shortly (half second) after the user stops changing the text in the search bar. It can be turned off by simply removing that particular behavior.&lt;br /&gt;
&lt;br /&gt;
=== DisplayViewCommand ===&lt;br /&gt;
This command can be used to [[Custom_View_(Client)|display custom views]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Performance ==&lt;br /&gt;
To get a good performance in the app UI when using your Xaml customizings, it is recommended to try the following.&lt;br /&gt;
* Always keep your UI structure simple. Choose the most efficient layouts for the scenarios and avoid unnecessary UI elements. Please refer to [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/performance#choose-the-correct-layout &amp;quot;choose the correct layout&amp;quot;] and [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/performance#reduce-the-visual-tree-size &amp;quot;reduce the visual tree size&amp;quot;];&lt;br /&gt;
* Turn on [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/layouts/layout-compression layout compression] on wrapping elements that don't have any visual parameters set (reasons stated in the linked documentation).&lt;br /&gt;
{{Hint|There is a default &amp;quot;HeadlessLayout&amp;quot; style available in the app you can use on elements such as Grids, StackLayouts, ContentViews, etc. It turns on [[Xamarin_XAML#Layout_compression_examples|layout compression]] on the applied elements in Xamarin.Android (since we find it not worth the effort in Xamarin.iOS).}}&lt;br /&gt;
{{Attention|If possible, one should always favor designing the UI with less wrapping elements over turning on layout compression on unnecessary ones.}}&lt;br /&gt;
&lt;br /&gt;
=== General performance tips ===&lt;br /&gt;
* Reduce number of views per page&lt;br /&gt;
* Don’t bind things if they could be set static easily&lt;br /&gt;
* If you do not change the default, don’t set it explicit. For example, [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.StackLayout.Orientation?view=xamarin-forms Orientation of StackLayout] is “Vertical” by default. No need to set it manually if you don’t want to change it.&lt;br /&gt;
* Transparency is expensive.&lt;br /&gt;
* Use async/await to avoid blocking user interface.&lt;br /&gt;
* Do not put ListViews into ScrollViews.&lt;br /&gt;
* To stack elements, create a grid and add them to the same cell one after another. It’s cheaper than RelativeLayout.&lt;br /&gt;
* Use Margins instead of Paddings.&lt;br /&gt;
&lt;br /&gt;
=== Layouts ===&lt;br /&gt;
* Choose correct Layout, e.g. no need to add a StackLayout if it only has 1 child.&lt;br /&gt;
* [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/layouts/layout-options LayoutOptions].Fill or .FillAndExpand are best choice in most cases. And they are already default, so no need to set.&lt;br /&gt;
* Autosize of rows and columns in grids should used as few as possible.&lt;br /&gt;
* RelativeLayout is very expensive. Try to avoid.&lt;br /&gt;
* In StackLayout, make sure there is only 1 LayoutOptions Expand.&lt;br /&gt;
&lt;br /&gt;
=== Labels ===&lt;br /&gt;
* Use [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/label#formatted-text FormattedText] instead of multiple labels.&lt;br /&gt;
* Use [https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.linebreakmode?view=xamarin-forms Linebreakmode] NoWrap (which is already the default).&lt;br /&gt;
* Avoid [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.Label.VerticalTextAlignment?view=xamarin-forms VerticalTextAlignment]. Anyway, if needed, use VerticalTextAligment instead of &lt;br /&gt;
VerticalOptions.&lt;br /&gt;
* Use the &amp;quot;TextTransform&amp;quot; attribute to convert the value of the &amp;quot;Text&amp;quot; attribute to either uppercase or lowercase.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Label&lt;br /&gt;
      TextTransform=&amp;quot;Uppercase&amp;quot;&lt;br /&gt;
      Text=&amp;quot;{Binding Properties.AllItems[DESCR].DisplayValue}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Images ===&lt;br /&gt;
* Provide images in optimized width and size. Provide multiple resolutions for different usage.&lt;br /&gt;
* Set [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.Image.IsOpaque?view=xamarin-forms IsOpaque] to true if image is opaque.&lt;br /&gt;
&lt;br /&gt;
=== Layout compression examples ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView ControlTemplate=&amp;quot;{DynamicResource ChangedSymbol}&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The code above removes one wrapping element added automatically by the ContentView and demonstrates a good reason to use layout compression because it can not be avoided otherwise.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid Margin=&amp;quot;2&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label Margin=&amp;quot;5&amp;quot; Text=&amp;quot;{Binding Title}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This example, on the other hand, demonstrates a bad usage of layout compression because it can be easily achieved by better designs such as using only the Label with a merged margin.&lt;br /&gt;
&lt;br /&gt;
Sometimes the content inside a compressed layout appears on a wrong z-index level. For eample:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;BoxView CornerRadius=&amp;quot;14&amp;quot; HeightRequest=&amp;quot;28&amp;quot; WidthRequest=&amp;quot;28&amp;quot; Color=&amp;quot;Red&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;ContentView ControlTemplate=&amp;quot;{DynamicResource Badge}&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label Text=&amp;quot;{Binding Title}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView &amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
According to the order of the BoxView and the Label, the latter should appear on top of the former (later ones have higher z-index levels). However, this can be disturbed by layout compression, causing the exact opposite.&lt;br /&gt;
In this case, you can add a &amp;lt;code&amp;gt;xmlns:android=&amp;quot;clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core&amp;quot;&amp;lt;/code&amp;gt; namespace to your Xaml file and manually elevate the Label by specifying &amp;lt;code&amp;gt;android:VisualElement.Elevation=&amp;quot;X&amp;quot;&amp;lt;/code&amp;gt; on it accordingly (X is the delta of the z-index level you want).&lt;br /&gt;
&lt;br /&gt;
=== SfListViewExt ===&lt;br /&gt;
For performance reasons, we created an extended version of the Syncfusion SfListView control and it should be used for all lists in customizings. You need to add a namespace like &amp;lt;code&amp;gt;xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;lt;/code&amp;gt; to your Xaml file and use it like &amp;lt;code&amp;gt;&amp;lt;controls:SfListViewExt ... /&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{{Hint|Technically speaking, SfListViewExt informs item view models when their corresponding item views appear on / disappear from the screen. This way, view models can skip a lot of unnecessary work (on the UI) when their views are not visible. '''If SfListView is used instead, the item views will not reflect content changes until the page is reloaded/refreshed.'''}}&lt;br /&gt;
&lt;br /&gt;
It is possible to configure the ListView, that the ScrollPosition is remembered when navigating away from the page, to do so, the property RembemberScrollPosition needs to be set to true. If unset, the value defaults to false and the scroll positions are not remembered.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt RememberScrollPosition=&amp;quot;True&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Delay and LazyLoading ===&lt;br /&gt;
{{Attention|Although both properties can be set in XAML on the two controls, this should not be done. When both the LazyLoading and Delay properties are set, the Delay property is ignored in the code-behind, as otherwise it could lead to unexpected behavior and, in the worst case, result in performance degradation.}}&lt;br /&gt;
&lt;br /&gt;
==== Delay in UBIKContentView and ContentControl {{Version/MobileSince|5.1}} ====&lt;br /&gt;
More complex UIs create a delay in rendering which leads to a feeling of &amp;quot;unresponsiveness&amp;quot; when navigating through the client. This is because the app loads and displays everything at once, leading to a larger delay between triggering navigation and completion of page loading.&lt;br /&gt;
 &lt;br /&gt;
While the complexity of the UI directly affects the time taken to render it, the experience of responsiveness can be somewhat improved by actually adding a delay between the loading of the content page, and actual data content (properties, children, etc). By not loading both at once, resources are freed up in the app, leading to a quicker loading of the basic page. The content then loads in at its normal speed.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Starting from version 5.1, a small delay was introduced in the content heavy pages (child page, document page and query page). However, additional delays can also be applied to the custom UI at will, using a new property added to two existing controls used 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.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView Delay=&amp;quot;50&amp;quot; Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ContentControl Delay=&amp;quot;50&amp;quot; ContentTemplate=&amp;quot;{Binding [UBIKNavigationBar], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Delay applies ✅&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView Delay=&amp;quot;50&amp;quot; Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot; ConverterParameter=&amp;quot;UBIKChildArea&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Delay doesn't apply ❌&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView Delay=&amp;quot;50&amp;quot; Content=&amp;quot;{Binding [UBIKChildArea], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Lazy Loading in UBIKContentView and ContentControl {{Version/MobileSince|5.1}} ====&lt;br /&gt;
To further improve performance, we have added a LazyLoading property to UBIKContentView and ContentControl. When a ContentTemplate is assigned to either of these controls and the LazyLoading property is set to true, the content is only loaded when it is explicitly requested. This can be used in combination with a UBIKTabView, so that only the content of the selected tab is rendered, while the content of non-selected tabs is not. When switching tabs, the content for the newly selected tab is rendered on demand. Lazy loading requires a trigger to determine when the content should be loaded. In the case of a UBIKTabView, this occurs when switching tabs. Alternatively, it can be triggered by, for example, a button with an IsClicked behavior. However, lazy loading always requires a trigger; otherwise, the content would never be loaded.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! UBIKContentView&lt;br /&gt;
! ContentControl&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
            &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
                &amp;lt;controls:UBIKContentView&lt;br /&gt;
                    Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot;&lt;br /&gt;
                    ConverterParameter=&amp;quot;UBIKPropertyArea&amp;quot;&lt;br /&gt;
                    LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;controls:ContentControl LazyLoading=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;controls:ContentControl.ContentTemplate&amp;gt;&lt;br /&gt;
            &amp;lt;DataTemplate&amp;gt;&lt;br /&gt;
                &amp;lt;Grid RowDefinitions=&amp;quot;*,Auto&amp;quot;&amp;gt;&lt;br /&gt;
                    &amp;lt;Label Text=&amp;quot;MyLabel&amp;quot; /&amp;gt;&lt;br /&gt;
                    &amp;lt;controls:CheckBox&lt;br /&gt;
                    Grid.Row=&amp;quot;1&amp;quot;&lt;br /&gt;
                    IsChecked=&amp;quot;True&amp;quot;&lt;br /&gt;
                    IsToggleButton=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
                &amp;lt;/Grid&amp;gt;&lt;br /&gt;
            &amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
        &amp;lt;/controls:ContentControl.ContentTemplate&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:ContentControl&amp;gt;&lt;br /&gt;
&amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
⚠️Please note: Although this is possible, care must be taken not to create excessive nesting, as this can ultimately lead to performance degradation if overused. For example, a grid inside a grid, inside another grid, and so on.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Another control as a trigger for lazy loading'''&lt;br /&gt;
&lt;br /&gt;
Other controls (e.g., Button, CheckBox, etc.) can also serve as triggers for lazy loading. For instance, interacting with such a control can trigger lazy loading for a UBIKContentView or ContentControl.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;Grid RowDefinitions=&amp;quot;*,50,*&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;Button&lt;br /&gt;
            x:Name=&amp;quot;LoadDocuments&amp;quot;&lt;br /&gt;
            Grid.Row=&amp;quot;1&amp;quot;&lt;br /&gt;
            HeightRequest=&amp;quot;50&amp;quot;&lt;br /&gt;
            HorizontalOptions=&amp;quot;Center&amp;quot;&lt;br /&gt;
            Text=&amp;quot;LazyLoadDocuments&amp;quot;&lt;br /&gt;
            WidthRequest=&amp;quot;200&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Button.Behaviors&amp;gt;&lt;br /&gt;
                &amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;Clicked&amp;quot;&amp;gt;&lt;br /&gt;
                    &amp;lt;behaviors:InvokeMethodAction MethodName=&amp;quot;TriggerLazyLoad&amp;quot; TargetObject=&amp;quot;{Binding Source={x:Reference DocumentsAreaLoader}}&amp;quot; /&amp;gt;&lt;br /&gt;
                &amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&lt;br /&gt;
            &amp;lt;/Button.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;/Button&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;controls:UBIKContentView&lt;br /&gt;
            x:Name=&amp;quot;DocumentsAreaLoader&amp;quot;&lt;br /&gt;
            Grid.Row=&amp;quot;2&amp;quot;&lt;br /&gt;
            Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot;&lt;br /&gt;
            ConverterParameter=&amp;quot;UBIKDocumentArea&amp;quot;&lt;br /&gt;
            LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;br /&gt;
&lt;br /&gt;
= Known issues =&lt;br /&gt;
&lt;br /&gt;
=== Headlesslayout style in custom UBIKThemes causing problems ===&lt;br /&gt;
&lt;br /&gt;
In our default '''UBIKThemes''', we are currently using this style for a headless layout:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Style x:Key=&amp;quot;HeadlessLayout&amp;quot; TargetType=&amp;quot;Layout&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Setter Property=&amp;quot;CompressedLayout.IsHeadless&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;Setter.Value&amp;gt;&lt;br /&gt;
            &amp;lt;OnPlatform&lt;br /&gt;
                x:TypeArguments=&amp;quot;x:Boolean&amp;quot;&lt;br /&gt;
                Android=&amp;quot;True&amp;quot;&lt;br /&gt;
                WinPhone=&amp;quot;False&amp;quot;&lt;br /&gt;
                iOS=&amp;quot;False&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/Setter.Value&amp;gt;&lt;br /&gt;
    &amp;lt;/Setter&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
This style is used for better UI performance on Android.&lt;br /&gt;
Using this style in a '''custom UBIKThemes''' could cause an exception &amp;amp; an app crash, or some objects to disappear.&lt;br /&gt;
The best case would be to '''not''' include it in the custom themes file, as it's unnecessary if you don't want to make any changes here.&lt;br /&gt;
&lt;br /&gt;
'''This issue is only known on Android tablet devices.'''&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;br /&gt;
&lt;br /&gt;
=== DataTrigger Issues ===&lt;br /&gt;
==== Conflicting Triggers ====&lt;br /&gt;
DataTriggers in Mobile function better than the equivalent DataTriggerBehavior in UWP as they automatically handle the opposite case when a Boolean attribute value is set. This means that if a boolean DataTrigger is set, such as IsVisible=True, the False visibility will automatically be set if the Binding/Value condition is not met.&lt;br /&gt;
&lt;br /&gt;
However, this means that stacking multiple DataTriggers on the same attribute can lead to unexpected results. For this reason, it is recommended to use as few DataTriggers as possible. &lt;br /&gt;
* Avoid setting the same attribute more than once; do not set the same value as a default attribute and in the DataTrigger (ControlTemplate in the below example).&lt;br /&gt;
* Ideally, use only DataTriggers without a default ControlTemplate. This ensures that content is created only after the trigger evaluation is complete. If a default ControlTemplate is set, it is always loaded immediately, even if another template is applied right after.&lt;br /&gt;
* It is acceptable, but not recommended, to combine a single DataTrigger with an opposite default value, but only if the default value is different from all values set in triggers.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Don't Do&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot; ControlTemplate=&amp;quot;{StaticResource SelListTemplate}&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource SelListTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Instead Do&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource SelListTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Acceptable, but not recommended&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot; ControlTemplate=&amp;quot;{StaticResource SelListTemplate}&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== DataTrigger to set Footer Properties in a ListView ====&lt;br /&gt;
&lt;br /&gt;
When using a DataTrigger to set the properties of a footer for a ListView, the sequence of the properties inside the DataTrigger might matter in some cases.&lt;br /&gt;
It seems to occur since Version 4.4 due to a Syncfusion update and could lead to the page not being rendered properly and appearing empty.&lt;br /&gt;
&lt;br /&gt;
If you encounter such an issue, please workaround by adding the IsStickyFooter Property Setter on top inside the DataTrigger.&lt;br /&gt;
Also, new customizings should consider this workaround as a preventive action.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS DOESN'T WORK IN CERTAIN CASES --&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt ...&amp;gt;&lt;br /&gt;
	&amp;lt;controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
		&amp;lt;DataTrigger TargetType=&amp;quot;controls:SfListViewExt&amp;quot; Binding=&amp;quot;{Binding Title}&amp;quot; Value=&amp;quot;Administration&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterTemplate&amp;quot; Value=&amp;quot;{DynamicResource AddLoginFooter}&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterSize&amp;quot; Value=&amp;quot;64&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;IsStickyFooter&amp;quot; Value=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
	&amp;lt;/controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt ...&amp;gt;&lt;br /&gt;
	&amp;lt;controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
		&amp;lt;DataTrigger TargetType=&amp;quot;controls:SfListViewExt&amp;quot; Binding=&amp;quot;{Binding Title}&amp;quot; Value=&amp;quot;Administration&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;IsStickyFooter&amp;quot; Value=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterTemplate&amp;quot; Value=&amp;quot;{DynamicResource AddLoginFooter}&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterSize&amp;quot; Value=&amp;quot;64&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
	&amp;lt;/controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Incorrect glyphs may be shown on buttons ===&lt;br /&gt;
&lt;br /&gt;
When using glyphs on buttons in Mobile, sometimes a different glyph than the expected one will show up when viewing the app on Android.&lt;br /&gt;
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.)&lt;br /&gt;
&lt;br /&gt;
If you encounter this issue please workaround by supplying the icon through the FontImageSource property of the button.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Button Command=&amp;quot;{Binding BulkOperation.InvokeOnItemsCommand}&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;Button.ImageSource&amp;gt;&lt;br /&gt;
          &amp;lt;FontImageSource &lt;br /&gt;
               FontFamily=&amp;quot;{DynamicResource UBIKSymbols}&amp;quot;&lt;br /&gt;
               Glyph=&amp;quot;{x:Static resources:UBIKIcons.MobileDelete}&amp;quot;&lt;br /&gt;
               Color=&amp;quot;{DynamicResource UBIKDarkThemeColor}&amp;quot;&lt;br /&gt;
               Size=&amp;quot;22&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;/Button.ImageSource&amp;gt;&lt;br /&gt;
     &amp;lt;Button.CommandParameter&amp;gt;&lt;br /&gt;
          &amp;lt;classes:KeyValueList&amp;gt;&lt;br /&gt;
                    &amp;lt;classes:KeyValueParameter Key=&amp;quot;Command&amp;quot; Value=&amp;quot;DiscardContentCommand&amp;quot; /&amp;gt;&lt;br /&gt;
          &amp;lt;/classes:KeyValueList&amp;gt;&lt;br /&gt;
     &amp;lt;/Button.CommandParameter&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Buttons and gesture recognizers ===&lt;br /&gt;
In Mobile XAML, you can use gesture recognizers on many UI elements such as a Grid to enable the latter to interact with user inputs.&lt;br /&gt;
&lt;br /&gt;
However, we've already made quite a lot of experience that gesture recognizers do not always work on Android and iOS when used on a Button control.&lt;br /&gt;
For example, the following Button won't properly invoke the command on said platforms.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS DOESN'T WORK!!! --&amp;gt;&lt;br /&gt;
&amp;lt;Button ...&amp;gt;&lt;br /&gt;
    &amp;lt;Button.GestureRecognizers&amp;gt;&lt;br /&gt;
        &amp;lt;TapGestureRecognizer Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Button.GestureRecognizers&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Therefore, you should always seek alternatives for Buttons.&lt;br /&gt;
'''If only one command is needed''', use the standard Command property on the Button, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;Button Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Or if multiple commands are needed, use Behaviors '''instead''', e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS ALSO WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;Button xmlns:behaviors=&amp;quot;clr-namespace:UBIK.CPL.Behaviors;assembly=UBIK.CPL&amp;quot; ...&amp;gt;&lt;br /&gt;
    &amp;lt;Button.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; EventName=&amp;quot;Clicked&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding NavigateBackCommand}&amp;quot; EventName=&amp;quot;Clicked&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Button.Behaviors&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== No dynamic reloading of Document Viewer ===&lt;br /&gt;
[[File:PDFViewerFixWiki.JPG]]&lt;br /&gt;
&lt;br /&gt;
In a customizing that combines a single-selection list of documents with some kind of viewer (especially UBIKDocumentContentArea), it is generally the case that switching the document causes the document viewer to then appear blank. The technical reason is that the PDFViewer used in the UBIKDocumentContentArea is not reloaded once the document content is reloaded. &lt;br /&gt;
&lt;br /&gt;
An easy fix is to apply a DataTrigger that unloads the ContentView when the document content is null, as the ContentView is forced to rerender itself when the trigger condition is no longer met.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- Document Viewer --&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView &lt;br /&gt;
    x:Name=&amp;quot;DoucmentViewer&amp;quot; &lt;br /&gt;
    BindingContext=&amp;quot;{Binding SelectedItem, Source={x:Reference DocumentList}}&amp;quot;&lt;br /&gt;
    Content=&amp;quot;{Binding [UBIKDocumentContentArea], Source={x:Static services:TemplateService.Instance}}&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;controls:UBIKContentView.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger TargetType=&amp;quot;controls:UBIKContentView&amp;quot; Binding=&amp;quot;{Binding SelectedItem.DocumentViewModel.DocumentContent, Source={x:Reference DocumentList}, Converter={StaticResource NullToBool}}&amp;quot; Value=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;Content&amp;quot; Value=&amp;quot;{x:Null}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:UBIKContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:UBIKContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Issues with SfPullToRefresh in Mobile client {{Version/MobileSince|5.0}} ===&lt;br /&gt;
Due to a third-party issue, problems may occur on Mobile Android when using the SfPullToRefresh control in combination with the SfListViewExt. This can result in e.g. navigation or task interaction sometimes requiring multiple clicks.&lt;br /&gt;
In general, and due to more issues, it's not recommended to use the SfPullToRefresh control.&lt;br /&gt;
In our Mobile standard client, the PullToRefresh control has been replaced by a Refresh button in the Context Menu.&lt;br /&gt;
If you still decide to use SfPullToRefresh, there are a few points to consider:&lt;br /&gt;
&lt;br /&gt;
==== Avoid multiple SfPullToRefresh controls ====&lt;br /&gt;
To prevent an issue that causes the app to freeze, avoid placing more than one SfPullToRefresh controls as siblings in a xaml hierarchy. If switching between contents in a SfPullToRefresh control is necessary use separate DataTemplates for the contents and use e.g. a DataTrigger to set one of them as the ControlTemplate of a ContentControl inside the SfPullToRefresh control. For an example, refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui#Avoid_multiple_SfPullToRefresh_controls|this link]].&lt;br /&gt;
&lt;br /&gt;
==== Avoid using SyncFusion ListViews directly in SfPullToRefresh controls ====&lt;br /&gt;
To prevent an issue on some Android devices that can cause some items in a SfListViewExt to be rendered incorrectly or not at all after triggering a PullToRefresh, avoid placing a SfListViewExt directly in a SfPullToRefresh control. Instead, wrap the ListView in a DataTemplate and use it in a ContentControl as a child of the SfPullToRefresh control. For an example, refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui#Avoid_using_SyncFusion_ListViews_directly_in_SfPullToRefresh_controls|this link]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=HowTo:Convert_Xamarin_XAMLs_to_Maui&amp;diff=29231</id>
		<title>HowTo:Convert Xamarin XAMLs to Maui</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=HowTo:Convert_Xamarin_XAMLs_to_Maui&amp;diff=29231"/>
				<updated>2025-12-12T10:42:43Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* UBIKTabView */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Information ==&lt;br /&gt;
=== Frame to Border ===  &lt;br /&gt;
'''Use [https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/border?view=net-maui-9.0 Border] instead of Frame.'''  &lt;br /&gt;
Frame is deprecated in MAUI. Attributes;&lt;br /&gt;
* Stroke (previously BorderColor)&lt;br /&gt;
* Use StrokeShape (previously CornerRadius) to define the corners. Eg. &amp;lt;nowiki&amp;gt;StrokeShape=&amp;quot;RoundRectangle 8,8,8,8&amp;quot;&amp;lt;/nowiki&amp;gt; where the corner curve can be written as 1 value (all the same), 2 values (horizontal and vertical), or 4 values (each corner defined seperately). The default StrokeShape is 'Rectangle', which effectively equals a CornerRadius of 0.&lt;br /&gt;
* StrokeThickness can be used to define the thickness of the border.&lt;br /&gt;
* Other properties documented in the link above can be used to define the look of the border. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;Frame ... /&amp;gt;&lt;br /&gt;
| &amp;lt;Border ... /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
&lt;br /&gt;
=== LayoutOptions with &amp;quot;...AndExpand&amp;quot; ===  &lt;br /&gt;
'''Replace &amp;quot;...AndExpand&amp;quot; with Grid layout.'''  &lt;br /&gt;
Horizontal/VerticalOptions ending in &amp;quot;...AndExpand&amp;quot; are deprecated. Use Grid with `ColumnDefinition Width=&amp;quot;*&amp;quot;` for expansion.&lt;br /&gt;
&lt;br /&gt;
=== GlyphLabel and Styles ===  &lt;br /&gt;
'''Use Label with new styles.'''  &lt;br /&gt;
Custom controls like `GlyphLabel` are no longer needed. Use `Label` with styles like `UBIKSymbolText`.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| controls:GlyphLabel&lt;br /&gt;
| Label with UBIKSymbolText style&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== SfTabView Virtualization ===  &lt;br /&gt;
'''Enable virtualization.'''  &lt;br /&gt;
Add `EnableVirtualization=&amp;quot;True&amp;quot;` to all SfTabView instances or styles.&lt;br /&gt;
&lt;br /&gt;
=== Swipe Menu Icons on Android ===  &lt;br /&gt;
'''Refactor swipe templates and label styles.'''  &lt;br /&gt;
Icons in swipe menus were truncated on Android. Fixed via refactoring.&lt;br /&gt;
&lt;br /&gt;
=== Color Style Changes ===  &lt;br /&gt;
'''Dark theme adjustments.'''  &lt;br /&gt;
Changes to color styles may affect appearance. Review usage of `UBIKDarkThemeColor`, `UBIKDarkTextColor`, etc.&lt;br /&gt;
&lt;br /&gt;
=== Strikethrough Converter ===  &lt;br /&gt;
'''Use `TextDecorations=&amp;quot;Strikethrough&amp;quot;` instead of converter.'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| Text=&amp;quot;{Binding ..., Converter={StaticResource StrikethroughConverter}}&amp;quot;&lt;br /&gt;
| Text=&amp;quot;{Binding ...}&amp;quot; TextDecorations=&amp;quot;Strikethrough&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Button Disabled Trigger ===  &lt;br /&gt;
'''Add trigger for disabled buttons.'''  &lt;br /&gt;
Maui buttons don’t visually change when disabled. Add trigger to style.&lt;br /&gt;
&lt;br /&gt;
=== TapGestureRecognizer Replacement ===  &lt;br /&gt;
'''Use TappedBehavior instead.'''  &lt;br /&gt;
TapGestureRecognizer now intercepts taps. Use `TappedBehavior` to avoid conflicts.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;... .GestureRecognizers&amp;gt;&amp;lt;TapGestureRecognizer Command=&amp;quot;{Binding ...}&amp;quot; /&amp;gt;&amp;lt;/... .GestureRecognizers&amp;gt;&lt;br /&gt;
| &amp;lt;... .Behaviors&amp;gt;&amp;lt;behaviors:TappedBehavior&amp;gt;&amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding ...}&amp;quot; /&amp;gt;&amp;lt;/behaviors:TappedBehavior&amp;gt;&amp;lt;/... .Behaviors&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TapGestureRecognizer and Swipe Conflict ===  &lt;br /&gt;
'''Remove TapGestureRecognizer from root Grid.'''  &lt;br /&gt;
TapGestureRecognizer blocks swipe behavior. Remove it and adapt parent list to trigger navigation. An example of such behaviors can be seen in UBIKChildArea.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Navigation in UBIKChildItem ===  &lt;br /&gt;
'''Use EventHandlerBehavior for navigation.'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| [none]&lt;br /&gt;
| &amp;lt;controls:SfListViewExt.Behaviors&amp;gt;&amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;ItemTapped&amp;quot;&amp;gt;&amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding AppStatus.RootList.Items[0].NavigateToChildrenCommand}&amp;quot; /&amp;gt;&amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&amp;lt;/controls:SfListViewExt.Behaviors&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
== Recommended ==&lt;br /&gt;
=== Extract DataTemplates from UBIKThemes ===&lt;br /&gt;
'''Create separate .xamlx files for the following DataTemplates.'''&lt;br /&gt;
It's not so easy about the namespaces:&lt;br /&gt;
* In our default templates, it's enough to add the following ones to every new separate .xamlx files at the beginning;&lt;br /&gt;
    * xmlns:ctrls=&amp;quot;clr-namespace:UBIK.MAUI.Controls;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
    * xmlns:platform=&amp;quot;clr-namespace:UBIK.MAUI.Platform.Renderers;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
    * xmlns:resources=&amp;quot;clr-namespace:UBIK.MAUI.Resources;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
    * xmlns:services=&amp;quot;clr-namespace:UBIK.MAUI.Services;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
    * xmlns:uiservices=&amp;quot;clr-namespace:UBIK.UI.Services;assembly=UBIK.UI&amp;quot;.&lt;br /&gt;
* But we don't know if other namespaces might be used in the custom templates. So it might be necessary to really analyze the namespaces used and find/copy them from the UBIKThemes file.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! &amp;amp;nbsp; !! Templates !! &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| UBIKMainItem || UBIKChildItem || UBIKTaskItem&lt;br /&gt;
|-&lt;br /&gt;
| UBIKTaskProperty || UBIKTaskPropertyString || UBIKTaskPropertyDouble&lt;br /&gt;
|-&lt;br /&gt;
| UBIKTaskPropertyInt || UBIKTaskPropertyNumeric || UBIKTaskPropertyDateTime&lt;br /&gt;
|-&lt;br /&gt;
| UBIKTaskPropertyGeoData || UBIKTaskPropertyBool || UBIKTaskPropertyPopup&lt;br /&gt;
|-&lt;br /&gt;
| UBIKTaskPropertyList || UBIKTaskPropertyGuid || UBIKPropertyItem&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyTextLengthHint || UBIKPropertyDirectEditButtons || UBIKTaskPropertyEditButtons&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyDirectItemString || UBIKPropertyDirectItemDouble || UBIKPropertyDirectItemInt&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyDirectItemMinMax || UBIKPropertyDirectItemNumeric || UBIKPropertyDirectItemDateTime&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyDirectItemGeoData || UBIKPropertyDirectItemBool || UBIKPropertyDirectItemPopup&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyDirectItemList || UBIKPropertyDirectItemGuid || UBIKDocumentItem&lt;br /&gt;
|-&lt;br /&gt;
| UBIKSearchResultItem || UBIKDefaultHotSpot || UBIKAngularLinkHotSpot&lt;br /&gt;
|-&lt;br /&gt;
| UBIKRoundLinkHotSpot || UBIKInputHotSpot || UBIKSignatureHotSpot&lt;br /&gt;
|-&lt;br /&gt;
| UBIKObjectHotSpot || UBIKMediaHotSpot || &lt;br /&gt;
|}&lt;br /&gt;
=== VideoPlayer Adjustments ===&lt;br /&gt;
'''This property is repsonsible for the video player regarding how or if it should get scaled up depending on the value of the&lt;br /&gt;
Aspect property'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;VideoPlayer...&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;VideoPlayer Aspect=&amp;quot;AspectFit&amp;quot;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''The UriToVideoSourceConverter is no longer needed because the conversion of the &lt;br /&gt;
VideoSource gets done by the MediaElement itself. It is marked as obsolete and should therefore no longer be used.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:VideoPlayer... Source=&amp;quot;{Binding DocumentViewModel.LocalURI, Converter={StaticResource UriToVideoSource}}&amp;quot;/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:VideoPlayer... Source=&amp;quot;{Binding DocumentViewModel.LocalURI}&amp;quot;/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''The StopTimer property is obsolete and no longer needed because the MediaElement behind does the Stop of the VideoPlayer&lt;br /&gt;
by itself.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:VideoPlayer... StopTimer=&amp;quot;{Binding Unloaded}&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:VideoPlayer... /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
=== SearchBar Style Fix on iOS ===&lt;br /&gt;
'''On iOS, defining a transparent background for the SearchBar control results in a black text on black background appearance.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;[issue on iOS only] UBIKThemes: SearchBar style: &amp;lt;Setter Property=&amp;quot;BackgroundColor&amp;quot; Value=&amp;quot;Transparent&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;Delete this setter&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Remove TapGestureRecognizer from Main Item ===&lt;br /&gt;
'''Swiping on the Main items was broken by Maui (Documented in Information). The workaround is to remove the TapGestureRecognizer from UBIKMainItem, and add ListView-based navigation similar to that found in UBIKChildArea (with an extended binding path for technical reasons).'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;(In UBIKMainItem)&lt;br /&gt;
&amp;lt;Grid.GestureRecognizers&amp;gt;&lt;br /&gt;
	&amp;lt;TapGestureRecognizer Command=&amp;quot;{Binding NavigateToChildrenCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Grid.GestureRecognizers&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;[nothing]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
=== Add Navigation Behavior in Child Area ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;(In UBIKChildArea)&lt;br /&gt;
[nothing]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:SfListViewExt.Behaviors&amp;gt;&lt;br /&gt;
	&amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;ItemTapped&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding AppStatus.RootList.Items[0].NavigateToChildrenCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
	&amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt.Behaviors&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
== Highly Recommended ==&lt;br /&gt;
=== CircularImage to AvatarView ===  &lt;br /&gt;
'''Use AvatarView instead of CircularImage.'''  &lt;br /&gt;
CircularImage and its wrapping Frame are no longer needed. Use AvatarView from the MAUI Community Toolkit. Add the namespace:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
xmlns:toolkit=&amp;quot;http://schemas.microsoft.com/dotnet/2022/maui/toolkit&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;Frame&amp;gt;&amp;lt;CircularImage Source=&amp;quot;...&amp;quot; /&amp;gt;&amp;lt;/Frame&amp;gt;&lt;br /&gt;
| &amp;lt;toolkit:AvatarView ImageSource=&amp;quot;...&amp;quot; BorderWidth=&amp;quot;...&amp;quot; BackgroundColor=&amp;quot;...&amp;quot; /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== GlyphSize to FontSize and Alignment ===  &lt;br /&gt;
'''Use FontSize and alignment properties instead of GlyphSize.'''  &lt;br /&gt;
The GlyphSize property is obsolete. Use FontSize and add alignment properties for better layout.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;Setter Property=&amp;quot;GlyphSize&amp;quot; Value=&amp;quot;13.0&amp;quot; /&amp;gt;&lt;br /&gt;
| &amp;lt;Setter Property=&amp;quot;FontSize&amp;quot; Value=&amp;quot;16&amp;quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;Setter Property=&amp;quot;VerticalOptions&amp;quot; Value=&amp;quot;Center&amp;quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;Setter Property=&amp;quot;HorizontalOptions&amp;quot; Value=&amp;quot;Center&amp;quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;Setter Property=&amp;quot;VerticalTextAlignment&amp;quot; Value=&amp;quot;Center&amp;quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;Setter Property=&amp;quot;HorizontalTextAlignment&amp;quot; Value=&amp;quot;Center&amp;quot; /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== StaticResource to DynamicResource ===  &lt;br /&gt;
'''Use DynamicResource and BaseResourceKey.'''  &lt;br /&gt;
For dynamic theming, use DynamicResource instead of StaticResource. When inheriting styles, use BaseResourceKey.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| BasedOn=&amp;quot;{StaticResource SomeStyle}&amp;quot;&lt;br /&gt;
| BaseResourceKey=&amp;quot;SomeStyle&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Style=&amp;quot;{StaticResource SomeStyle}&amp;quot;&lt;br /&gt;
| Style=&amp;quot;{DynamicResource SomeStyle}&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UBIKPropertyDirectEditListPopup and Guid link direct editing ===&lt;br /&gt;
We have changed the way the content item template is defined and used in UBIKPropertyDirectEditListPopup, which is used in the direct editing of Guid link properties. This change aims to simplify the template and is also due to the fact that the old approach has a poor performance in the new MAUI app.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;DataTemplate x:Key=&amp;quot;PopupFilterQueryItemTemplate&amp;quot;&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
|| &lt;br /&gt;
The DataTemplate &amp;quot;PopupFilterQueryItemTemplate&amp;quot; is no longer needed and should be removed.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;FilterQueryResultList&amp;quot;&lt;br /&gt;
    ...&lt;br /&gt;
    ItemTemplate=&amp;quot;{StaticResource PopupFilterQueryItemTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;FilterQueryResultList&amp;quot;&lt;br /&gt;
    ...&lt;br /&gt;
    ItemTemplate=&amp;quot;{Binding [UBIKChildItem], Source={x:Static services:TemplateService.Instance}}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;controls:SfListViewExt.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;ItemTapped&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding SetPropertyValueCommand}&amp;quot; Converter=&amp;quot;{StaticResource ItemTappedEventArgsToViewModelConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding ConfirmEditCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:SfListViewExt.Behaviors&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
In comparison, the old solution defines a &amp;quot;PopupFilterQueryItemTemplate&amp;quot; DataTemplate which simply wraps the needed selection related behaviors to the existing &amp;quot;UBIKChildItem&amp;quot; template. The new solution reuses the &amp;quot;UBIKChildItem&amp;quot; template directly and add the same but adapted behaviors to the list view instead.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UBIKTabView ===&lt;br /&gt;
We have adapted our UBIKTabView for MAUI so that, when used in combination with a UBIKContentView or ContentControl, it now supports lazy loading. This results in a performance boost because the contents of non-selected tabs are no longer rendered in the UI automatically unless the tab is explicitly selected by the user. Therefore, the LazyLoading property should be set to true for tabs that are not the “default” tabs—i.e., tabs that are not initially selected when a page is opened (Property or Document tabs).&lt;br /&gt;
&lt;br /&gt;
Add the following namespace to use the UBIKTabView:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
xmlns:controls=&amp;quot;clr-namespace:UBIK.MAUI.Controls;assembly=UBIK.MAUI&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''From a performance perspective, our UBIKTabView should be used instead of the SfTabView going forward, as it supports lazy loading.'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabView&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
        &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
            &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
        &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
            &amp;lt;ContentView Content=&amp;quot;{Binding [UBIKPropertyArea], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
        &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
            &amp;lt;ContentView Content=&amp;quot;{Binding [UBIKDocumentArea], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&amp;lt;/tabView:SfTabView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt; &lt;br /&gt;
&amp;lt;controls:UBIKTabView&lt;br /&gt;
    x:Name=&amp;quot;ContentTabs&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource TabViewBaseStyle}&amp;quot;&lt;br /&gt;
    TabHeaderPadding=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;controls:UBIKTabView.Items&amp;gt;&lt;br /&gt;
        &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
            &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
                &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; &lt;br /&gt;
                Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
            &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
                &amp;lt;controls:UBIKContentView&lt;br /&gt;
                    Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot;&lt;br /&gt;
                    ConverterParameter=&amp;quot;UBIKPropertyArea&amp;quot;&lt;br /&gt;
                    LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
            &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
                &amp;lt;controls:UBIKContentView&lt;br /&gt;
                    Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot;&lt;br /&gt;
                    ConverterParameter=&amp;quot;UBIKDocumentArea&amp;quot;&lt;br /&gt;
                    LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:UBIKTabView.Items&amp;gt;&lt;br /&gt;
&amp;lt;/controls:UBIKTabView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
&lt;br /&gt;
== Mandatory ==&lt;br /&gt;
&lt;br /&gt;
=== Namespace conversion ===  &lt;br /&gt;
'''Update all namespaces to MAUI equivalents.'''  &lt;br /&gt;
All `xmlns` and `clr-namespace` declarations must be updated to their MAUI counterparts.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| xmlns=&amp;quot;http://xamarin.com/schemas/2014/forms&amp;quot;&lt;br /&gt;
| xmlns=&amp;quot;http://schemas.microsoft.com/dotnet/2021/maui&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core&lt;br /&gt;
| clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific;assembly=Microsoft.Maui.Controls&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Behaviors;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Behaviors;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Classes;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Classes;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Controls;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Converters;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Converters;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Platform.Renderers;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Platform.Controls;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Services;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Services;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Resources;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Resources;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.Scanning.Forms;assembly=UBIK.Scanning.Forms&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Controls.ZXingScanner;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.SfPullToRefresh.XForms;assembly=Syncfusion.SfPullToRefresh.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.PullToRefresh;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.XForms.TabView;assembly=Syncfusion.SfTabView.Xforms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.TabView;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.ListView;assembly=Syncfusion.Maui.ListView&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.XForms.TreeView;assembly=Syncfusion.SfTreeView.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.TreeView;assembly=Syncfusion.Maui.TreeView&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.XForms.TextInputLayout;assembly=Syncfusion.Core.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.SfChart.XForms;assembly=Syncfusion.SfChart.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.Charts;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For classes referenced in the XAML code, please don't forget to also replace &amp;quot;CPL&amp;quot; with &amp;quot;MAUI&amp;quot; in the class namespace.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Syncfusion control updates ===&lt;br /&gt;
'''There are some other properties that have changed their names on SfListView/SfListViewExt. We don't use them in our standard XAMLs. But if you use them in customizings, please refer to https://help.syncfusion.com/maui/listview/migration for the complete list.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
SfListViewExt:&lt;br /&gt;
    * ItemHolding&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| ItemLongPress&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Syncfusion control updates ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| * LeftSwipeTemplate, RightSwipeTemplate&lt;br /&gt;
| StartSwipeTemplate, EndSwipeTemplate&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Layout name change ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
* &amp;lt;sync:SfListView.LayoutManager&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sync:SfListView.ItemsLayout&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TemplateService binding for extracted templates ===&lt;br /&gt;
'''1. We need to add the following namespace where the changes are applied:&lt;br /&gt;
xmlns:services=&amp;quot;clr-namespace:UBIK.MAUI.Services;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
2. We need to search for both &amp;quot;StaticResource&amp;quot; and &amp;quot;DynamicResource&amp;quot;;&lt;br /&gt;
3. We only listed some examples here. But the same rule applies to all those templates exacted from UBIKThemes (see the first &amp;quot;Recommended&amp;quot; point).'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| {StaticResource UBIKChildItem}&lt;br /&gt;
| {Binding [UBIKChildItem], Source={x:Static services:TemplateService.Instance}}&lt;br /&gt;
|-&lt;br /&gt;
| {StaticResource UBIKDocumentItem}&lt;br /&gt;
| {Binding [UBIKDocumentItem], Source={x:Static services:TemplateService.Instance}}&lt;br /&gt;
|-&lt;br /&gt;
| {StaticResource UBIKMainItem}&lt;br /&gt;
| {Binding [UBIKMainItem], Source={x:Static services:TemplateService.Instance}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== OnPlatform and OnIdiom syntax changes ===&lt;br /&gt;
'''All code containing the OnPlatform and OnIdiom functionalities needs to be refactored as the syntax has changed.'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
! style=&amp;quot;width:7%&amp;quot; | Notes&lt;br /&gt;
|-&lt;br /&gt;
| OnPlatform&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;TheControl&lt;br /&gt;
        ...&lt;br /&gt;
        TheProperty=&amp;quot;{OnPlatform Android=False, iOS=True}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;TheControl&lt;br /&gt;
     ...&lt;br /&gt;
     TheProperty=&amp;quot;{OnPlatform Android={Binding ...}, iOS={Binding ...}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | It is recommended to use the inline syntax as a default wherever possible, but there are also other approaches.&lt;br /&gt;
When using Bindings, Resources, or other complex values in OnIdiom or OnPlatform values, it should '''only''' be used with the inline syntax.&lt;br /&gt;
|-&lt;br /&gt;
| OnIdiom&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;TheControl&lt;br /&gt;
        ...&lt;br /&gt;
        TheProperty=&amp;quot;{OnIdiom Phone=False, Desktop=True}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;TheControl&lt;br /&gt;
     ...&lt;br /&gt;
     TheProperty=&amp;quot;{OnIdiom Desktop={Binding ...}, Phone={Binding ...}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
e.g.&lt;br /&gt;
&amp;lt;ColumnDefinition.Width&amp;gt;&lt;br /&gt;
   &amp;lt;OnIdiom&lt;br /&gt;
        ...&lt;br /&gt;
        Desktop=&amp;quot;Auto&amp;quot;&lt;br /&gt;
        Phone=&amp;quot;*&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/ColumnDefinition.Width&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;RowDefinition.Height&amp;gt;&lt;br /&gt;
   &amp;lt;OnPlatform&lt;br /&gt;
        ...&lt;br /&gt;
        Android=&amp;quot;Auto&amp;quot;&lt;br /&gt;
        iOS=&amp;quot;*&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/RowDefinition.Height&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ColumnDefinition Width=&amp;quot;{OnIdiom Desktop='Auto', Phone='*'}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;RowDefinition Height=&amp;quot;{OnPlatform Android='Auto', iOS='*'}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| When using GridLength as a type (e.g,. in ColumnDefinition.Width or RowDefinition.Height) in OnIdiom or OnPlatform, it should '''only''' be used with the inline syntax.&lt;br /&gt;
|-&lt;br /&gt;
| WinPhone&lt;br /&gt;
| WinUI&lt;br /&gt;
| In the scope of any OnPlatform/On Platform, WinPhone needs to be replaced with WinUI.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
⚠️ Please refer to the wiki for more details and possibilities (e.g., if the value contains multiple elements): [https://wiki.augmensys.com/index.php?title=XAML_Tips#Platform_and_Device-specific_UI_with_OnPlatform_and_OnIdiom Platform and Device-specific UI with OnPlatform and OnIdiom].&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
&lt;br /&gt;
=== Remove default ControlTemplate ===&lt;br /&gt;
'''The default ControlTemplate should be removed from the ContentView if the ControlTemplate property of that ContentView is determined by DataTriggers. The same applies to ContentControls. The default ContentTemplate should be removed from the controls:ContentControl if the ContentTemplate property of that ContentControl is determined by DataTriggers.'''&lt;br /&gt;
Using only DataTriggers without a default ControlTemplate ensures that content is created only after the trigger evaluation is complete. If a default ControlTemplate is set, it is always loaded immediately, even if another template is applied right after.&lt;br /&gt;
For more details refer to [[Xamarin_XAML#Conflicting_Triggers|Conflicting Triggers]].&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;containerName&amp;quot; ControlTemplate=&amp;quot;{StaticResource YourTemplate}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger&lt;br /&gt;
            Binding=&amp;quot;{Binding Source={x:Reference containerName}, Path=...}&amp;quot;&lt;br /&gt;
            TargetType=&amp;quot;ContentView&amp;quot;&lt;br /&gt;
            Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot;&lt;br /&gt;
                    Value=&amp;quot;{StaticResource YourTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
        ...&lt;br /&gt;
    &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;containerName&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger&lt;br /&gt;
            Binding=&amp;quot;{Binding Source={x:Reference containerName}, Path=...}&amp;quot;&lt;br /&gt;
            TargetType=&amp;quot;ContentView&amp;quot;&lt;br /&gt;
            Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot;&lt;br /&gt;
                    Value=&amp;quot;{StaticResource YourTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
        ...&lt;br /&gt;
    &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Remove HeadlessLayout style ===&lt;br /&gt;
'''This Style has no longer any effect in MAUI and even degrades app performance. We are keeping it in our standard UBIKThemes under the Obsolete section to maintain backward compatibility.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Style x:Key=&amp;quot;HeadlessLayout&amp;quot; TargetType=&amp;quot;Layout&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;CompressedLayout.IsHeadless&amp;quot; Value=&amp;quot;{OnPlatform False, Android=True}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| Delete it from your custom UBIKThemes file&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Additional mandatory rule ===&lt;br /&gt;
'''In the customizings, however, it can and should be removed entirely, as it negatively affects performance, as mentioned before. To remove the style, you can simply use VS Code or any other editor with a search function and look through all custom .xaml files for usages of {StaticResource HeadlessLayout} or {DynamicResource HeadlessLayout}. These references should be removed from the respective elements or controls.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView&lt;br /&gt;
    Grid.Column=&amp;quot;2&amp;quot;&lt;br /&gt;
    ControlTemplate=&amp;quot;{DynamicResource ChildCountBadge}&amp;quot;&lt;br /&gt;
    HorizontalOptions=&amp;quot;Start&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot;&lt;br /&gt;
    VerticalOptions=&amp;quot;Start&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView&lt;br /&gt;
    Grid.Column=&amp;quot;2&amp;quot;&lt;br /&gt;
    ControlTemplate=&amp;quot;{DynamicResource ChildCountBadge}&amp;quot;&lt;br /&gt;
    HorizontalOptions=&amp;quot;Start&amp;quot;&lt;br /&gt;
    VerticalOptions=&amp;quot;Start&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Rename progress colors ===&lt;br /&gt;
'''Renamed in Maui.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| ProgressBackgroundColor, ProgressStrokeColor&lt;br /&gt;
| ProgressBackground, ProgressColor&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Rename Default Font Name  ===&lt;br /&gt;
'''The name of the default font was slightly renamed in the UBIKThemes file in MAUI — the first letter now needs to be capitalized. Otherwise, on iOS, bold or italic styles are not applied correctly, and changing a property in Direct Editing, for example, would result in no visible change.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;x:String x:Key=&amp;quot;TextFontFamily&amp;quot;&amp;gt;inter&amp;lt;/x:String&amp;gt;&lt;br /&gt;
| &amp;lt;x:String x:Key=&amp;quot;TextFontFamily&amp;quot;&amp;gt;Inter&amp;lt;/x:String&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Chart control updates ===&lt;br /&gt;
'''The Title, Legend, and Zoom &amp;amp; Pan behavior syntax of the Chart control have changed. Further, some SyncFusion Chart components &amp;amp; Properties have changed.'''&lt;br /&gt;
&amp;lt;br&amp;gt;⚠️ For more information and examples about changed SyncFusion Chart components &amp;amp; Properties, please refer to the [https://help.syncfusion.com/maui/cartesian-charts/overview Syncfusion Maui Charts documentation]. For more info on how to customize a chart, refer to [[Charts#Mobile_Chart_Customizing|Mobile Chart Customizing]].&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;chart:SfChart.Title&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartTitle Text=&amp;quot;{Binding Header}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/chart:SfChart.Title&amp;gt;&lt;br /&gt;
&amp;lt;chart:SfChart.Legend&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartLegend /&amp;gt;&lt;br /&gt;
&amp;lt;/chart:SfChart.Legend&amp;gt;&lt;br /&gt;
&amp;lt;chart:SfChart.ChartBehaviors&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartZoomPanBehavior /&amp;gt;&lt;br /&gt;
&amp;lt;/chart:SfChart.ChartBehaviors&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;chart:NumericalStripLine&lt;br /&gt;
    Width=&amp;quot;2&amp;quot;&lt;br /&gt;
    StrokeColor=&amp;quot;{Binding Color, Converter={StaticResource IntToColor}}&amp;quot;&lt;br /&gt;
    IsPixelWidth=&amp;quot;True&amp;quot;&lt;br /&gt;
    StrokeWidth=&amp;quot;5&amp;quot;&lt;br /&gt;
    Start=&amp;quot;{Binding Value}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;chart:FastLineSeries                    &lt;br /&gt;
    ItemsSource=&amp;quot;{Binding Items}&amp;quot;&lt;br /&gt;
    Label=&amp;quot;{Binding Name}&amp;quot;&lt;br /&gt;
    Color=&amp;quot;{Binding Color, Converter={StaticResource IntToColor}}&amp;quot;&lt;br /&gt;
    XBindingPath=&amp;quot;XValue&amp;quot;&lt;br /&gt;
    YBindingPath=&amp;quot;YValue&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfChartExt.Title&amp;gt;&lt;br /&gt;
    &amp;lt;Label Text=&amp;quot;{Binding Header}&amp;quot; HorizontalOptions=&amp;quot;Center&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfChartExt.Title&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfChartExt.Legend&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartLegend /&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfChartExt.Legend&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfChartExt.ZoomPanBehavior&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartZoomPanBehavior /&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfChartExt.ZoomPanBehavior&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;chart:NumericalPlotBand&lt;br /&gt;
    StrokeWidth=&amp;quot;2&amp;quot;&lt;br /&gt;
    Stroke=&amp;quot;{Binding Color, Converter={StaticResource IntToColor}}&amp;quot;&lt;br /&gt;
    Start=&amp;quot;{Binding Value}&amp;quot;&lt;br /&gt;
    End=&amp;quot;{Binding Value}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;chart:FastLineSeries                    &lt;br /&gt;
    ItemsSource=&amp;quot;{Binding Items}&amp;quot;&lt;br /&gt;
    Label=&amp;quot;{Binding Name}&amp;quot;&lt;br /&gt;
    Fill=&amp;quot;{Binding Color, Converter={StaticResource IntToColor}}&amp;quot;&lt;br /&gt;
    XBindingPath=&amp;quot;XValue&amp;quot;&lt;br /&gt;
    YBindingPath=&amp;quot;YValue&amp;quot;&lt;br /&gt;
    StrokeWidth=&amp;quot;2&amp;quot;&lt;br /&gt;
    EnableAntiAliasing=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
&lt;br /&gt;
== SfTabView ==&lt;br /&gt;
&lt;br /&gt;
=== Namespace Update ===&lt;br /&gt;
'''Update Syncfusion TabView namespace.'''&lt;br /&gt;
Replace the Xamarin namespace with the MAUI equivalent.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.XForms.TabView;assembly=Syncfusion.SfTabView.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.TabView;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Remove Obsolete Converters ===&lt;br /&gt;
'''Remove ItemCountToBoolConverter from Resources.'''&lt;br /&gt;
This converter is no longer usable in TabView headers.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;converters:ItemCountToBoolConverter x:Key=&amp;quot;ItemCountToBool&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| [remove]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Add StringFormatConverter ===&lt;br /&gt;
'''Use StringFormatConverter for combined header strings.'''&lt;br /&gt;
Syncfusion MAUI TabView uses a single `Header` property instead of templates.&lt;br /&gt;
For all tab headers, formatters should be specified to assemble the text. As a best practice, even for simple header strings.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| [template-based header]&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;converters:StringFormatConverter x:Key=&amp;quot;ChildrenTabFormatter&amp;quot; Parameter1=&amp;quot;{resources:Translate ChildrenTitle}&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In the above example, a previously defined formatter (that must be also added to the resource dictionary) is used to fill in the header attribute value.&lt;br /&gt;
⚠️ Avoid using bindings in `Parameter1` and `Parameter2` — use static strings only. For complex cases, use `EvalExpression`.&lt;br /&gt;
&lt;br /&gt;
=== FontImageSource Styling ===&lt;br /&gt;
'''Add local style for FontImageSource.'''&lt;br /&gt;
Global styles are not supported.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| [global FontImageSource style]&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Style TargetType=&amp;quot;FontImageSource&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;Setter Property=&amp;quot;FontFamily&amp;quot; Value=&amp;quot;{DynamicResource UBIKSymbols}&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;Setter Property=&amp;quot;Color&amp;quot; Value=&amp;quot;{DynamicResource UBIKLightThemeColor}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TabView Structure ===&lt;br /&gt;
'''Use Grid to wrap TabView.'''&lt;br /&gt;
MAUI TabView requires a different structure and property set.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabView VisibleHeaderCount=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
  ...&lt;br /&gt;
&amp;lt;/tabView:SfTabView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid&amp;gt;&lt;br /&gt;
  &amp;lt;tabView:SfTabView&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem Header=&amp;quot;string example header&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;tabView:SfTabItem.ImageSource&amp;gt;&lt;br /&gt;
        &amp;lt;FontImageSource Glyph=&amp;quot;{x:Static resources:UBIKIcons.XXX}&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/tabView:SfTabItem.ImageSource&amp;gt;&lt;br /&gt;
      &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
  &amp;lt;/tabView:SfTabView&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Property Changes ===&lt;br /&gt;
'''Update renamed or removed properties.'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| VisibleHeaderCount&lt;br /&gt;
| [not available yet]&lt;br /&gt;
|-&lt;br /&gt;
| UBIKCenterButtonSettings&lt;br /&gt;
| CenterButtonSettings&lt;br /&gt;
|-&lt;br /&gt;
| SelectionIndicatorSettings&lt;br /&gt;
| IndicatorPlacement, IndicatorStrokeThickness, IndicatorBackground&lt;br /&gt;
|-&lt;br /&gt;
| SelectionColor&lt;br /&gt;
| Use VisualStateManager instead&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
⚠️ Refer to [https://help.syncfusion.com/maui/tabview/migration Syncfusion migration guide] for full property list.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== SfPullToRefresh ==&lt;br /&gt;
&lt;br /&gt;
'''It is recommended to get rid of all SfPullToRefresh controls due to some issues that might occur.''' For more information refer to [[Mobile_XAML#Issues_with_SfPullToRefresh_in_MAUI|this article]]. In our Maui standard client, the PullToRefresh control has already been replaced by a Refresh button in the Context Menu, so there's no need for a custom Refresh button.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt&lt;br /&gt;
            .../&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
&amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
     .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
⚠️ '''If SfPullToRefresh is still required, the following points should be considered.'''&lt;br /&gt;
&lt;br /&gt;
=== Namespace Update ===&lt;br /&gt;
'''Update Syncfusion TabView namespace.'''&lt;br /&gt;
Replace the Xamarin namespace with the MAUI equivalent.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.SfPullToRefresh.XForms;assembly=Syncfusion.SfPullToRefresh.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.PullToRefresh;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Rename SfPullToRefresh properties ===&lt;br /&gt;
'''Renamed in Maui, however, currently these properties cause an issue and should not be included in customizings.'''&lt;br /&gt;
SfPullToRefresh:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| RefreshContentHeight, RefreshContentWidth&lt;br /&gt;
| RefreshViewHeight, RefreshViewWidth&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Avoid multiple SfPullToRefresh controls ===&lt;br /&gt;
'''To prevent an issue that causes the app to freeze, avoid placing more than one SfPullToRefresh controls as siblings in a xaml hierarchy'''. If switching between contents in a SfPullToRefresh control is necessary use separate DataTemplates for the contents and use e.g. a DataTrigger to set one of them as the ControlTemplate of a ContentControl inside the SfPullToRefresh control.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pullToRefresh:SfPullToRefresh IsVisible = {Binding ShowContentB, Converter={StaticResource BoolToNotBool}}&amp;gt;&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt&lt;br /&gt;
            x:Name=&amp;quot;ContentA&amp;quot;&lt;br /&gt;
            .../&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
&amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pullToRefresh:SfPullToRefresh  IsVisible = {Binding ShowContentB}&amp;gt;&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt&lt;br /&gt;
            x:Name=&amp;quot;ContentB&amp;quot;&lt;br /&gt;
            .../&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
&amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid&amp;gt;&lt;br /&gt;
    &amp;lt;Grid.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;DataTemplate x:Key=&amp;quot;TemplateA&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;controls:SfListViewExt&lt;br /&gt;
                    x:Name=&amp;quot;ContentA&amp;quot;&lt;br /&gt;
                    .../&amp;gt;&lt;br /&gt;
            &amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
            &amp;lt;DataTemplate x:Key=&amp;quot;TemplateB&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;controls:SfListViewExt&lt;br /&gt;
                    x:Name=&amp;quot;ContentB&amp;quot;&lt;br /&gt;
                    .../&amp;gt;&lt;br /&gt;
            &amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/Grid.Resources&amp;gt;&lt;br /&gt;
   &amp;lt;pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
       &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
           &amp;lt;controls:ContentControl&amp;gt;&lt;br /&gt;
               &amp;lt;controls:ContentControl.Triggers&amp;gt;&lt;br /&gt;
                   &amp;lt;DataTrigger&lt;br /&gt;
                       Binding=&amp;quot;{Binding ShowContentB}}&amp;quot;&lt;br /&gt;
                       TargetType=&amp;quot;controls:ContentControl&amp;quot;&lt;br /&gt;
                       Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
                       &amp;lt;Setter Property=&amp;quot;ContentTemplate&amp;quot; Value=&amp;quot;{DynamicResource TemplateA}&amp;quot; /&amp;gt;&lt;br /&gt;
                   &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
                   &amp;lt;DataTrigger&lt;br /&gt;
                       Binding=&amp;quot;{Binding ShowContentB}}&amp;quot;&lt;br /&gt;
                       TargetType=&amp;quot;controls:ContentControl&amp;quot;&lt;br /&gt;
                       Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
                       &amp;lt;Setter Property=&amp;quot;ContentTemplate&amp;quot; Value=&amp;quot;{DynamicResource TemplateB}&amp;quot; /&amp;gt;&lt;br /&gt;
                   &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
               &amp;lt;/controls:ContentControl.Triggers&amp;gt;&lt;br /&gt;
           &amp;lt;/controls:ContentControl&amp;gt;&lt;br /&gt;
       &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Avoid using SyncFusion ListViews directly in SfPullToRefresh controls ===&lt;br /&gt;
'''To prevent an issue on some Android devices that can cause some items in a SfListViewExt to be rendered incorrectly or not at all after triggering a PullToRefresh, avoid placing a SfListViewExt directly in a SfPullToRefresh control'''.&lt;br /&gt;
Instead, wrap the ListView in a DataTemplate and use it in a ContentControl as a child of the SfPullToRefresh control, as shown in the Xaml example below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt&lt;br /&gt;
            .../&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
&amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid&amp;gt;&lt;br /&gt;
    &amp;lt;Grid.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;DataTemplate x:Key=&amp;quot;ListViewTemplate&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;controls:SfListViewExt&lt;br /&gt;
                    .../&amp;gt;&lt;br /&gt;
            &amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/Grid.Resources&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
       &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
           &amp;lt;controls:ContentControl ContentTemplate=&amp;quot;{DynamicResource ListViewTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
       &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=Mobile_XAML&amp;diff=29230</id>
		<title>Mobile XAML</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=Mobile_XAML&amp;diff=29230"/>
				<updated>2025-12-12T10:07:43Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* Performance */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The User Interface of the Mobile Clients (Android, iOS, Windows) can be fundamentally customized using custom XAML definitions. This customization process is heavily influenced by the [[XAML|XAML Customization Process on the WinX Client]].&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
There are predefined XAML templates available that can be customized. If no customizing is found, the default templates will be used.&lt;br /&gt;
&lt;br /&gt;
== Default XAMLs ==&lt;br /&gt;
All default XAML templates that can be customized are available through the Mobile Windows client. You need to go to the app settings and click the &amp;quot;Unpack default XAMLs&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
== Differences to WinX/UWP ==&lt;br /&gt;
* Since it's based on the Mobile XAML dialect, you CANNOT use any existing XAML customizings for the WinX/UWP app;&lt;br /&gt;
* Namespace definitions must include the corresponding assembly names;&lt;br /&gt;
* XAML template files have the extension name of '''xamlx''' instead of '''xaml''';&lt;br /&gt;
* You can deploy only those resources that you want to customize. (This is also the case for newer versions of WinX/UWP. {{Version/WinXSince|3.6}})&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Overriding default XAMLs=&lt;br /&gt;
On Windows (WinX/UWP), the &amp;lt;code&amp;gt;[App Package Folder]/LocalState/xaml/&amp;lt;/code&amp;gt; folder can be accessed by the user and the customized XAML files directly added. An alternative to this on all platforms (including Android, iOS, etc.) is to use the ''Import Customizing'' button in the app settings to import the templates, styles, images, etc. (file by file, or all files within a zip package). The changes should be reflected in the UI (except the current page) without restarting the app. After directly editing the customizings (Mobile Windows), you can also use the &amp;quot;Reload customizing&amp;quot; button without restarting the app.&lt;br /&gt;
&lt;br /&gt;
In the following, we're going to override the default light theme color of the app:&lt;br /&gt;
* Unpack the default XAMLs;&lt;br /&gt;
* Pick and deploy the default UBIKThemes.xamlx to the '''xaml''' folder inside the ''LocalState'' folder;&lt;br /&gt;
* Open it with the text editor of your choice and remove everything within the '''ResouceDictionary''' except &amp;lt;code&amp;gt;&amp;lt;Color x:Key=&amp;quot;UBIKLightThemeColor&amp;quot;&amp;gt;blue&amp;lt;/Color&amp;gt;&amp;lt;/code&amp;gt;;&lt;br /&gt;
* Save the changes and reload. You should see changes successfully implemented.&lt;br /&gt;
&lt;br /&gt;
{{Attention| For maintainability reasons, it's HIGHLY recommended to deploy only those XAML resources you want to override. For example, if you only want to customize the UBIKChildArea, don't deploy others like the UBIKMenuArea. If you only want to customize the UBIKChildItem, that's the only content you should include in the UBIKThemes.}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Custom Templates ==&lt;br /&gt;
Custom templates can be added, just like on the WinX/UWP client. Make sure to include all '''namespace definitions''' (as attributes of the '''ContentView''' tag), otherwise the custom template will not load.&lt;br /&gt;
&lt;br /&gt;
Similar to the ''UBIKThemes.xamlx'' file, custom or overridden templates start with a &amp;lt;code&amp;gt;&amp;lt;ContentView&amp;gt;&amp;lt;/code&amp;gt; tag containing all '''namespaces'''. &amp;lt;code&amp;gt;&amp;lt;ContentView.Resources&amp;gt;&amp;lt;/code&amp;gt; takes a '''ResourceDictionary''' and contains resources like references to converters. Finally, &amp;lt;code&amp;gt;&amp;lt;ContentView.Content&amp;gt;&amp;lt;/code&amp;gt; contains the actual layout content (it's best to start with a '''Grid'''). Again, don't forget to add namespaces that you need!&lt;br /&gt;
&lt;br /&gt;
Templates can also be defined in ''UBIKThemes.xamlx''. In this case, they need to be added into the &amp;lt;code&amp;gt;&amp;lt;ResourceDictionary&amp;gt;&amp;lt;/code&amp;gt; inside the &amp;lt;code&amp;gt;&amp;lt;ContentView.Resources&amp;gt;&amp;lt;/code&amp;gt; template as a &amp;lt;code&amp;gt;&amp;lt;DataTemplate&amp;gt;&amp;lt;/code&amp;gt;. Similarly, if you want to split up the templates into seperate files, you need to make sure to follow the steps mentioned above and get the content of the &amp;lt;code&amp;gt;&amp;lt;DataTemplate&amp;gt;&amp;lt;/code&amp;gt; into the &amp;lt;code&amp;gt;&amp;lt;ContentView.Content&amp;gt;&amp;lt;/code&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
{{Attention|Templates defined in separate files will override templates defined in the ''UBIKThemes.xamlx''!}}&lt;br /&gt;
&lt;br /&gt;
=== Bindings in resources ===&lt;br /&gt;
When using bindings such as [[Xamarin_XAML#Content_filtering|this]] in a resource located in a custom template, it is necessary to place the template in a UBIKContentView.&lt;br /&gt;
&lt;br /&gt;
{{Hint|Technically speaking, this is because bindable objects in the ResourceDictionary of a ContentView (the custom template) don't automatically inherit the BindingContext from the container/parent view. UBIKContentView is created to additionally do that.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- UBIKCustomView.xamlx --&amp;gt;&lt;br /&gt;
&amp;lt;ContentView...&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;controls:SfDataSourceExt... ItemsSource=&amp;quot;{Binding Children.Items}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Container where UBIKCustomView is placed, e.g. UBIKChildArea.xamlx --&amp;gt;&lt;br /&gt;
&amp;lt;ContentView...&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
    &amp;lt;controls:UBIKContentView Content=&amp;quot;{Binding [UBIKCustomView], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Adding Images ==&lt;br /&gt;
Images can't be loaded with the default '''Image''' tag, as the image is on different paths on each operating system.&lt;br /&gt;
&lt;br /&gt;
Therefore, there's a custom '''FileImage''' that internally overrides the default ''Image'' with two custom parameters:&lt;br /&gt;
* '''FolderName''' ...The name of the '''folder''' in the '''local folder'''. Only the first level inside the ''LocalState'' folder seems to work.&lt;br /&gt;
* '''FileName''' ...The name of the '''file''' in the said folder. &lt;br /&gt;
&lt;br /&gt;
Make sure to implement the proper namespace as well by adding&lt;br /&gt;
&amp;lt;code&amp;gt;xmlns:fimage=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;lt;/code&amp;gt; into the root item's attributes.&lt;br /&gt;
&lt;br /&gt;
Then, the image can be loaded using:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;fimage:FileImage FileName=&amp;quot;image.png&amp;quot; FolderName=&amp;quot;xaml&amp;quot;/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This snipped loads the image called '''image.png''' located in the '''xaml''' folder inside the ''LocalState''.&lt;br /&gt;
&lt;br /&gt;
Furthermore, the ''FileImage'' tag doesn't seem to support most attributes. Therefore place it inside a '''Grid''' to achieve a perfect layout.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Custom Icons ==&lt;br /&gt;
Moved to article [[XAML_Tips#Custom_Icons]].&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Converters==&lt;br /&gt;
:''Main Page: [[Converters_In_Mobile]]''&lt;br /&gt;
&lt;br /&gt;
They are used to convert specific data into some desired output, using custom logic. &lt;br /&gt;
&lt;br /&gt;
Consider the following example:&amp;lt;br/&amp;gt;&lt;br /&gt;
A label saying ''There are no children items available!'' should only be visible if the number of children-items is 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
&lt;br /&gt;
== Feature related ==&lt;br /&gt;
&lt;br /&gt;
=== Customizing Menu Button {{Version/XamarinSince|4.6.0}} === &lt;br /&gt;
&lt;br /&gt;
For the Mobile Client, it is possible to show/hide the '''Menu button''' of the client.&amp;lt;br&amp;gt;&lt;br /&gt;
To customize the visibility of the '''Menu button''' you have to edit the default XAML '''Themes''' file.&lt;br /&gt;
&lt;br /&gt;
* Search for &amp;quot;'''ShowMenuToolBar'''&amp;quot; in the Themes file.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
If there isn't any &amp;quot;'''ShowMenuToolBar'''&amp;quot; in your XAML Themes file, you just have to create one, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;x:Boolean x:Key=&amp;quot;ShowMenuToolBar&amp;quot;&amp;gt;true&amp;lt;/x:Boolean&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Set the value to &amp;quot;true&amp;quot; to show the '''Menu button''' (default value).&lt;br /&gt;
* Set the value to &amp;quot;false&amp;quot; to hide the '''Menu button'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=&amp;quot;300&amp;quot; heights=&amp;quot;500&amp;quot;&amp;gt;&lt;br /&gt;
File:menu_button_show.png|Menu Button shown&lt;br /&gt;
File:menu_button_hiddenV3.png|Menu Button hidden&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Content filtering ===&lt;br /&gt;
For the Mobile clients, an &amp;quot;SfDataSourceExt&amp;quot; type is available for filtering list of items using defined expressions.&amp;lt;br /&amp;gt;&lt;br /&gt;
The following example demonstrates how to filter for child items having certain property values. The filtered list and its count can be displayed in the UI.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ContentView&lt;br /&gt;
    xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&lt;br /&gt;
    ...&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;x:String x:Key=&amp;quot;Expresssion&amp;quot;&amp;gt;Item.Values[&amp;amp;quot;MP_YEAR&amp;amp;quot;].Contains(&amp;amp;quot;2019&amp;amp;quot;)&amp;lt;/x:String&amp;gt;&lt;br /&gt;
            &amp;lt;controls:SfDataSourceExt  x:Key=&amp;quot;FilteredList&amp;quot; Expression=&amp;quot;{StaticResource Expresssion}&amp;quot; ItemsSource=&amp;quot;{Binding Children.Items}&amp;quot; Unloaded=&amp;quot;{Binding SkipFiltering}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Resources&amp;gt;&lt;br /&gt;
    &amp;lt;StackLayout Orientation=&amp;quot;Vertical&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;Label Text=&amp;quot;{Binding DisplayItemsCount, Source={StaticResource FilteredList}}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt ItemsSource=&amp;quot;{Binding DisplayItems, Source={StaticResource FilteredList}}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/StackLayout&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Notes on using bindings in ResourceDictionary ====&lt;br /&gt;
In the example shown above, you can see &amp;lt;code&amp;gt;{Binding Children.Items}&amp;lt;/code&amp;gt; is used. For this to work, the SfDataSourceExt control inside the ResourceDictionary must inherit the binding data context properly.&lt;br /&gt;
* In this case, that data context comes from where this template (UBIKChildArea.xamlx) is used, namely the UBIKContentArea.xamlx;&lt;br /&gt;
* When referencing this template in a ContentView control, the binding data context is '''NOT''' automatically inherited by the controls inside the ResourceDictioinary;&lt;br /&gt;
* That's why we use a UBIKContentView control instead. You can find its example usage in the default UBIKContentArea.xamlx template.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Search ===&lt;br /&gt;
In the default UBIKMenuArea.xamlx (where the search UI is hosted), there are two commands associated with two events. See below.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;SearchBar ...&amp;gt;&lt;br /&gt;
    &amp;lt;SearchBar.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior&lt;br /&gt;
            Command=&amp;quot;{Binding FreeTextSearchCommand}&amp;quot;&lt;br /&gt;
            CommandParameter=&amp;quot;{Binding Path=Text, Source={x:Reference SearchField}}&amp;quot;&lt;br /&gt;
            EventName=&amp;quot;SearchButtonPressed&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding DelayedFreeTextSearchCommand}&amp;quot; EventName=&amp;quot;TextChanged&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/SearchBar.Behaviors&amp;gt;&lt;br /&gt;
&amp;lt;/SearchBar&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The one for &amp;lt;code&amp;gt;SearchButtonPressed&amp;lt;/code&amp;gt; is responsible for executing searches after the user confirms the input (e.g. pressing {{{keypress|Enter}}} or the search button).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The one for &amp;lt;code&amp;gt;TextChanged&amp;lt;/code&amp;gt; is responsible for the &amp;quot;search as you type&amp;quot; behavior. Namely it triggers an automatic search shortly (half second) after the user stops changing the text in the search bar. It can be turned off by simply removing that particular behavior.&lt;br /&gt;
&lt;br /&gt;
=== DisplayViewCommand ===&lt;br /&gt;
This command can be used to [[Custom_View_(Client)|display custom views]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Performance ==&lt;br /&gt;
To get a good performance in the app UI when using your Xaml customizings, it is recommended to try the following.&lt;br /&gt;
* Always keep your UI structure simple. Choose the most efficient layouts for the scenarios and avoid unnecessary UI elements. Please refer to [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/performance#choose-the-correct-layout &amp;quot;choose the correct layout&amp;quot;] and [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/performance#reduce-the-visual-tree-size &amp;quot;reduce the visual tree size&amp;quot;];&lt;br /&gt;
* Turn on [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/layouts/layout-compression layout compression] on wrapping elements that don't have any visual parameters set (reasons stated in the linked documentation).&lt;br /&gt;
{{Hint|There is a default &amp;quot;HeadlessLayout&amp;quot; style available in the app you can use on elements such as Grids, StackLayouts, ContentViews, etc. It turns on [[Xamarin_XAML#Layout_compression_examples|layout compression]] on the applied elements in Xamarin.Android (since we find it not worth the effort in Xamarin.iOS).}}&lt;br /&gt;
{{Attention|If possible, one should always favor designing the UI with less wrapping elements over turning on layout compression on unnecessary ones.}}&lt;br /&gt;
&lt;br /&gt;
=== General performance tips ===&lt;br /&gt;
* Reduce number of views per page&lt;br /&gt;
* Don’t bind things if they could be set static easily&lt;br /&gt;
* If you do not change the default, don’t set it explicit. For example, [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.StackLayout.Orientation?view=xamarin-forms Orientation of StackLayout] is “Vertical” by default. No need to set it manually if you don’t want to change it.&lt;br /&gt;
* Transparency is expensive.&lt;br /&gt;
* Use async/await to avoid blocking user interface.&lt;br /&gt;
* Do not put ListViews into ScrollViews.&lt;br /&gt;
* To stack elements, create a grid and add them to the same cell one after another. It’s cheaper than RelativeLayout.&lt;br /&gt;
* Use Margins instead of Paddings.&lt;br /&gt;
&lt;br /&gt;
=== Layouts ===&lt;br /&gt;
* Choose correct Layout, e.g. no need to add a StackLayout if it only has 1 child.&lt;br /&gt;
* [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/layouts/layout-options LayoutOptions].Fill or .FillAndExpand are best choice in most cases. And they are already default, so no need to set.&lt;br /&gt;
* Autosize of rows and columns in grids should used as few as possible.&lt;br /&gt;
* RelativeLayout is very expensive. Try to avoid.&lt;br /&gt;
* In StackLayout, make sure there is only 1 LayoutOptions Expand.&lt;br /&gt;
&lt;br /&gt;
=== Labels ===&lt;br /&gt;
* Use [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/label#formatted-text FormattedText] instead of multiple labels.&lt;br /&gt;
* Use [https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.linebreakmode?view=xamarin-forms Linebreakmode] NoWrap (which is already the default).&lt;br /&gt;
* Avoid [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.Label.VerticalTextAlignment?view=xamarin-forms VerticalTextAlignment]. Anyway, if needed, use VerticalTextAligment instead of &lt;br /&gt;
VerticalOptions.&lt;br /&gt;
* Use the &amp;quot;TextTransform&amp;quot; attribute to convert the value of the &amp;quot;Text&amp;quot; attribute to either uppercase or lowercase.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Label&lt;br /&gt;
      TextTransform=&amp;quot;Uppercase&amp;quot;&lt;br /&gt;
      Text=&amp;quot;{Binding Properties.AllItems[DESCR].DisplayValue}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Images ===&lt;br /&gt;
* Provide images in optimized width and size. Provide multiple resolutions for different usage.&lt;br /&gt;
* Set [https://docs.microsoft.com/en-us/dotnet/api/Xamarin.Forms.Image.IsOpaque?view=xamarin-forms IsOpaque] to true if image is opaque.&lt;br /&gt;
&lt;br /&gt;
=== Layout compression examples ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView ControlTemplate=&amp;quot;{DynamicResource ChangedSymbol}&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The code above removes one wrapping element added automatically by the ContentView and demonstrates a good reason to use layout compression because it can not be avoided otherwise.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid Margin=&amp;quot;2&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label Margin=&amp;quot;5&amp;quot; Text=&amp;quot;{Binding Title}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This example, on the other hand, demonstrates a bad usage of layout compression because it can be easily achieved by better designs such as using only the Label with a merged margin.&lt;br /&gt;
&lt;br /&gt;
Sometimes the content inside a compressed layout appears on a wrong z-index level. For eample:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;BoxView CornerRadius=&amp;quot;14&amp;quot; HeightRequest=&amp;quot;28&amp;quot; WidthRequest=&amp;quot;28&amp;quot; Color=&amp;quot;Red&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;ContentView ControlTemplate=&amp;quot;{DynamicResource Badge}&amp;quot; Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label Text=&amp;quot;{Binding Title}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView &amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
According to the order of the BoxView and the Label, the latter should appear on top of the former (later ones have higher z-index levels). However, this can be disturbed by layout compression, causing the exact opposite.&lt;br /&gt;
In this case, you can add a &amp;lt;code&amp;gt;xmlns:android=&amp;quot;clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core&amp;quot;&amp;lt;/code&amp;gt; namespace to your Xaml file and manually elevate the Label by specifying &amp;lt;code&amp;gt;android:VisualElement.Elevation=&amp;quot;X&amp;quot;&amp;lt;/code&amp;gt; on it accordingly (X is the delta of the z-index level you want).&lt;br /&gt;
&lt;br /&gt;
=== SfListViewExt ===&lt;br /&gt;
For performance reasons, we created an extended version of the Syncfusion SfListView control and it should be used for all lists in customizings. You need to add a namespace like &amp;lt;code&amp;gt;xmlns:controls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&amp;lt;/code&amp;gt; to your Xaml file and use it like &amp;lt;code&amp;gt;&amp;lt;controls:SfListViewExt ... /&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{{Hint|Technically speaking, SfListViewExt informs item view models when their corresponding item views appear on / disappear from the screen. This way, view models can skip a lot of unnecessary work (on the UI) when their views are not visible. '''If SfListView is used instead, the item views will not reflect content changes until the page is reloaded/refreshed.'''}}&lt;br /&gt;
&lt;br /&gt;
It is possible to configure the ListView, that the ScrollPosition is remembered when navigating away from the page, to do so, the property RembemberScrollPosition needs to be set to true. If unset, the value defaults to false and the scroll positions are not remembered.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt RememberScrollPosition=&amp;quot;True&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Delay and LazyLoading ===&lt;br /&gt;
⚠️Important Note: Although both properties can be set in XAML on the two controls, this should not be done. When both the LazyLoading and Delay properties are set, the Delay property is ignored in the code-behind, as otherwise it could lead to unexpected behavior and, in the worst case, result in performance degradation.&lt;br /&gt;
&lt;br /&gt;
==== Delay in UBIKContentView and ContentControl {{Version/MobileSince|5.1}} ====&lt;br /&gt;
More complex UIs create a delay in rendering which leads to a feeling of &amp;quot;unresponsiveness&amp;quot; when navigating through the client. This is because the app loads and displays everything at once, leading to a larger delay between triggering navigation and completion of page loading.&lt;br /&gt;
 &lt;br /&gt;
While the complexity of the UI directly affects the time taken to render it, the experience of responsiveness can be somewhat improved by actually adding a delay between the loading of the content page, and actual data content (properties, children, etc). By not loading both at once, resources are freed up in the app, leading to a quicker loading of the basic page. The content then loads in at its normal speed.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Starting from version 5.1, a small delay was introduced in the content heavy pages (child page, document page and query page). However, additional delays can also be applied to the custom UI at will, using a new property added to two existing controls used 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.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView Delay=&amp;quot;50&amp;quot; Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ContentControl Delay=&amp;quot;50&amp;quot; ContentTemplate=&amp;quot;{Binding [UBIKNavigationBar], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Delay applies ✅&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView Delay=&amp;quot;50&amp;quot; Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot; ConverterParameter=&amp;quot;UBIKChildArea&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Delay doesn't apply ❌&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView Delay=&amp;quot;50&amp;quot; Content=&amp;quot;{Binding [UBIKChildArea], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Lazy Loading in UBIKContentView and ContentControl {{Version/MobileSince|5.1}} ====&lt;br /&gt;
To further improve performance, we have added a LazyLoading property to UBIKContentView and ContentControl. When a ContentTemplate is assigned to either of these controls and the LazyLoading property is set to true, the content is only loaded when it is explicitly requested. This can be used in combination with a UBIKTabView, so that only the content of the selected tab is rendered, while the content of non-selected tabs is not. When switching tabs, the content for the newly selected tab is rendered on demand. Lazy loading requires a trigger to determine when the content should be loaded. In the case of a UBIKTabView, this occurs when switching tabs. Alternatively, it can be triggered by, for example, a button with an IsClicked behavior. However, lazy loading always requires a trigger; otherwise, the content would never be loaded.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! UBIKContentView&lt;br /&gt;
! ContentControl&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
            &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
                &amp;lt;controls:UBIKContentView&lt;br /&gt;
                    Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot;&lt;br /&gt;
                    ConverterParameter=&amp;quot;UBIKPropertyArea&amp;quot;&lt;br /&gt;
                    LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;controls:ContentControl LazyLoading=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;controls:ContentControl.ContentTemplate&amp;gt;&lt;br /&gt;
            &amp;lt;DataTemplate&amp;gt;&lt;br /&gt;
                &amp;lt;Grid RowDefinitions=&amp;quot;*,Auto&amp;quot;&amp;gt;&lt;br /&gt;
                    &amp;lt;Label Text=&amp;quot;MyLabel&amp;quot; /&amp;gt;&lt;br /&gt;
                    &amp;lt;controls:CheckBox&lt;br /&gt;
                    Grid.Row=&amp;quot;1&amp;quot;&lt;br /&gt;
                    IsChecked=&amp;quot;True&amp;quot;&lt;br /&gt;
                    IsToggleButton=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
                &amp;lt;/Grid&amp;gt;&lt;br /&gt;
            &amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
        &amp;lt;/controls:ContentControl.ContentTemplate&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:ContentControl&amp;gt;&lt;br /&gt;
&amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
⚠️Please note: Although this is possible, care must be taken not to create excessive nesting, as this can ultimately lead to performance degradation if overused. For example, a grid inside a grid, inside another grid, and so on.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Another control as a trigger for lazy loading'''&lt;br /&gt;
&lt;br /&gt;
Other controls (e.g., Button, CheckBox, etc.) can also serve as triggers for lazy loading. For instance, interacting with such a control can trigger lazy loading for a UBIKContentView or ContentControl.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;Grid RowDefinitions=&amp;quot;*,50,*&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;Button&lt;br /&gt;
            x:Name=&amp;quot;LoadDocuments&amp;quot;&lt;br /&gt;
            Grid.Row=&amp;quot;1&amp;quot;&lt;br /&gt;
            HeightRequest=&amp;quot;50&amp;quot;&lt;br /&gt;
            HorizontalOptions=&amp;quot;Center&amp;quot;&lt;br /&gt;
            Text=&amp;quot;LazyLoadDocuments&amp;quot;&lt;br /&gt;
            WidthRequest=&amp;quot;200&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Button.Behaviors&amp;gt;&lt;br /&gt;
                &amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;Clicked&amp;quot;&amp;gt;&lt;br /&gt;
                    &amp;lt;behaviors:InvokeMethodAction MethodName=&amp;quot;TriggerLazyLoad&amp;quot; TargetObject=&amp;quot;{Binding Source={x:Reference DocumentsAreaLoader}}&amp;quot; /&amp;gt;&lt;br /&gt;
                &amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&lt;br /&gt;
            &amp;lt;/Button.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;/Button&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;controls:UBIKContentView&lt;br /&gt;
            x:Name=&amp;quot;DocumentsAreaLoader&amp;quot;&lt;br /&gt;
            Grid.Row=&amp;quot;2&amp;quot;&lt;br /&gt;
            Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot;&lt;br /&gt;
            ConverterParameter=&amp;quot;UBIKDocumentArea&amp;quot;&lt;br /&gt;
            LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;br /&gt;
&lt;br /&gt;
= Known issues =&lt;br /&gt;
&lt;br /&gt;
=== Headlesslayout style in custom UBIKThemes causing problems ===&lt;br /&gt;
&lt;br /&gt;
In our default '''UBIKThemes''', we are currently using this style for a headless layout:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Mobile(Xamarin):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Style x:Key=&amp;quot;HeadlessLayout&amp;quot; TargetType=&amp;quot;Layout&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Setter Property=&amp;quot;CompressedLayout.IsHeadless&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;Setter.Value&amp;gt;&lt;br /&gt;
            &amp;lt;OnPlatform&lt;br /&gt;
                x:TypeArguments=&amp;quot;x:Boolean&amp;quot;&lt;br /&gt;
                Android=&amp;quot;True&amp;quot;&lt;br /&gt;
                WinPhone=&amp;quot;False&amp;quot;&lt;br /&gt;
                iOS=&amp;quot;False&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/Setter.Value&amp;gt;&lt;br /&gt;
    &amp;lt;/Setter&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
This style is used for better UI performance on Android.&lt;br /&gt;
Using this style in a '''custom UBIKThemes''' could cause an exception &amp;amp; an app crash, or some objects to disappear.&lt;br /&gt;
The best case would be to '''not''' include it in the custom themes file, as it's unnecessary if you don't want to make any changes here.&lt;br /&gt;
&lt;br /&gt;
'''This issue is only known on Android tablet devices.'''&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;br /&gt;
&lt;br /&gt;
=== DataTrigger Issues ===&lt;br /&gt;
==== Conflicting Triggers ====&lt;br /&gt;
DataTriggers in Mobile function better than the equivalent DataTriggerBehavior in UWP as they automatically handle the opposite case when a Boolean attribute value is set. This means that if a boolean DataTrigger is set, such as IsVisible=True, the False visibility will automatically be set if the Binding/Value condition is not met.&lt;br /&gt;
&lt;br /&gt;
However, this means that stacking multiple DataTriggers on the same attribute can lead to unexpected results. For this reason, it is recommended to use as few DataTriggers as possible. &lt;br /&gt;
* Avoid setting the same attribute more than once; do not set the same value as a default attribute and in the DataTrigger (ControlTemplate in the below example).&lt;br /&gt;
* Ideally, use only DataTriggers without a default ControlTemplate. This ensures that content is created only after the trigger evaluation is complete. If a default ControlTemplate is set, it is always loaded immediately, even if another template is applied right after.&lt;br /&gt;
* It is acceptable, but not recommended, to combine a single DataTrigger with an opposite default value, but only if the default value is different from all values set in triggers.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Don't Do&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot; ControlTemplate=&amp;quot;{StaticResource SelListTemplate}&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource SelListTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Instead Do&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource SelListTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Acceptable, but not recommended&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;editorValueContainer&amp;quot; ControlTemplate=&amp;quot;{StaticResource SelListTemplate}&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
    &amp;lt;DataTrigger Binding=&amp;quot;{Binding Source={x:Reference editorValueContainer}, Path=BindingContext.PropertyViewModel.ShowComboBox}&amp;quot; TargetType=&amp;quot;ContentView&amp;quot; Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource TextTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
  &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== DataTrigger to set Footer Properties in a ListView ====&lt;br /&gt;
&lt;br /&gt;
When using a DataTrigger to set the properties of a footer for a ListView, the sequence of the properties inside the DataTrigger might matter in some cases.&lt;br /&gt;
It seems to occur since Version 4.4 due to a Syncfusion update and could lead to the page not being rendered properly and appearing empty.&lt;br /&gt;
&lt;br /&gt;
If you encounter such an issue, please workaround by adding the IsStickyFooter Property Setter on top inside the DataTrigger.&lt;br /&gt;
Also, new customizings should consider this workaround as a preventive action.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS DOESN'T WORK IN CERTAIN CASES --&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt ...&amp;gt;&lt;br /&gt;
	&amp;lt;controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
		&amp;lt;DataTrigger TargetType=&amp;quot;controls:SfListViewExt&amp;quot; Binding=&amp;quot;{Binding Title}&amp;quot; Value=&amp;quot;Administration&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterTemplate&amp;quot; Value=&amp;quot;{DynamicResource AddLoginFooter}&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterSize&amp;quot; Value=&amp;quot;64&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;IsStickyFooter&amp;quot; Value=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
	&amp;lt;/controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt ...&amp;gt;&lt;br /&gt;
	&amp;lt;controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
		&amp;lt;DataTrigger TargetType=&amp;quot;controls:SfListViewExt&amp;quot; Binding=&amp;quot;{Binding Title}&amp;quot; Value=&amp;quot;Administration&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;IsStickyFooter&amp;quot; Value=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterTemplate&amp;quot; Value=&amp;quot;{DynamicResource AddLoginFooter}&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Setter Property=&amp;quot;FooterSize&amp;quot; Value=&amp;quot;64&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
	&amp;lt;/controls:SfListViewExt.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Incorrect glyphs may be shown on buttons ===&lt;br /&gt;
&lt;br /&gt;
When using glyphs on buttons in Mobile, sometimes a different glyph than the expected one will show up when viewing the app on Android.&lt;br /&gt;
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.)&lt;br /&gt;
&lt;br /&gt;
If you encounter this issue please workaround by supplying the icon through the FontImageSource property of the button.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Button Command=&amp;quot;{Binding BulkOperation.InvokeOnItemsCommand}&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;Button.ImageSource&amp;gt;&lt;br /&gt;
          &amp;lt;FontImageSource &lt;br /&gt;
               FontFamily=&amp;quot;{DynamicResource UBIKSymbols}&amp;quot;&lt;br /&gt;
               Glyph=&amp;quot;{x:Static resources:UBIKIcons.MobileDelete}&amp;quot;&lt;br /&gt;
               Color=&amp;quot;{DynamicResource UBIKDarkThemeColor}&amp;quot;&lt;br /&gt;
               Size=&amp;quot;22&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;/Button.ImageSource&amp;gt;&lt;br /&gt;
     &amp;lt;Button.CommandParameter&amp;gt;&lt;br /&gt;
          &amp;lt;classes:KeyValueList&amp;gt;&lt;br /&gt;
                    &amp;lt;classes:KeyValueParameter Key=&amp;quot;Command&amp;quot; Value=&amp;quot;DiscardContentCommand&amp;quot; /&amp;gt;&lt;br /&gt;
          &amp;lt;/classes:KeyValueList&amp;gt;&lt;br /&gt;
     &amp;lt;/Button.CommandParameter&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Buttons and gesture recognizers ===&lt;br /&gt;
In Mobile XAML, you can use gesture recognizers on many UI elements such as a Grid to enable the latter to interact with user inputs.&lt;br /&gt;
&lt;br /&gt;
However, we've already made quite a lot of experience that gesture recognizers do not always work on Android and iOS when used on a Button control.&lt;br /&gt;
For example, the following Button won't properly invoke the command on said platforms.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS DOESN'T WORK!!! --&amp;gt;&lt;br /&gt;
&amp;lt;Button ...&amp;gt;&lt;br /&gt;
    &amp;lt;Button.GestureRecognizers&amp;gt;&lt;br /&gt;
        &amp;lt;TapGestureRecognizer Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Button.GestureRecognizers&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Therefore, you should always seek alternatives for Buttons.&lt;br /&gt;
'''If only one command is needed''', use the standard Command property on the Button, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;Button Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Or if multiple commands are needed, use Behaviors '''instead''', e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- THIS ALSO WORKS --&amp;gt;&lt;br /&gt;
&amp;lt;Button xmlns:behaviors=&amp;quot;clr-namespace:UBIK.CPL.Behaviors;assembly=UBIK.CPL&amp;quot; ...&amp;gt;&lt;br /&gt;
    &amp;lt;Button.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding ReplicateAsDataCommand}&amp;quot; EventName=&amp;quot;Clicked&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventToCommandBehavior Command=&amp;quot;{Binding NavigateBackCommand}&amp;quot; EventName=&amp;quot;Clicked&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Button.Behaviors&amp;gt;&lt;br /&gt;
&amp;lt;/Button&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== No dynamic reloading of Document Viewer ===&lt;br /&gt;
[[File:PDFViewerFixWiki.JPG]]&lt;br /&gt;
&lt;br /&gt;
In a customizing that combines a single-selection list of documents with some kind of viewer (especially UBIKDocumentContentArea), it is generally the case that switching the document causes the document viewer to then appear blank. The technical reason is that the PDFViewer used in the UBIKDocumentContentArea is not reloaded once the document content is reloaded. &lt;br /&gt;
&lt;br /&gt;
An easy fix is to apply a DataTrigger that unloads the ContentView when the document content is null, as the ContentView is forced to rerender itself when the trigger condition is no longer met.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- Document Viewer --&amp;gt;&lt;br /&gt;
&amp;lt;controls:UBIKContentView &lt;br /&gt;
    x:Name=&amp;quot;DoucmentViewer&amp;quot; &lt;br /&gt;
    BindingContext=&amp;quot;{Binding SelectedItem, Source={x:Reference DocumentList}}&amp;quot;&lt;br /&gt;
    Content=&amp;quot;{Binding [UBIKDocumentContentArea], Source={x:Static services:TemplateService.Instance}}&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;controls:UBIKContentView.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger TargetType=&amp;quot;controls:UBIKContentView&amp;quot; Binding=&amp;quot;{Binding SelectedItem.DocumentViewModel.DocumentContent, Source={x:Reference DocumentList}, Converter={StaticResource NullToBool}}&amp;quot; Value=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;Content&amp;quot; Value=&amp;quot;{x:Null}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:UBIKContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:UBIKContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Issues with SfPullToRefresh in Mobile client {{Version/MobileSince|5.0}} ===&lt;br /&gt;
Due to a third-party issue, problems may occur on Mobile Android when using the SfPullToRefresh control in combination with the SfListViewExt. This can result in e.g. navigation or task interaction sometimes requiring multiple clicks.&lt;br /&gt;
In general, and due to more issues, it's not recommended to use the SfPullToRefresh control.&lt;br /&gt;
In our Mobile standard client, the PullToRefresh control has been replaced by a Refresh button in the Context Menu.&lt;br /&gt;
If you still decide to use SfPullToRefresh, there are a few points to consider:&lt;br /&gt;
&lt;br /&gt;
==== Avoid multiple SfPullToRefresh controls ====&lt;br /&gt;
To prevent an issue that causes the app to freeze, avoid placing more than one SfPullToRefresh controls as siblings in a xaml hierarchy. If switching between contents in a SfPullToRefresh control is necessary use separate DataTemplates for the contents and use e.g. a DataTrigger to set one of them as the ControlTemplate of a ContentControl inside the SfPullToRefresh control. For an example, refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui#Avoid_multiple_SfPullToRefresh_controls|this link]].&lt;br /&gt;
&lt;br /&gt;
==== Avoid using SyncFusion ListViews directly in SfPullToRefresh controls ====&lt;br /&gt;
To prevent an issue on some Android devices that can cause some items in a SfListViewExt to be rendered incorrectly or not at all after triggering a PullToRefresh, avoid placing a SfListViewExt directly in a SfPullToRefresh control. Instead, wrap the ListView in a DataTemplate and use it in a ContentControl as a child of the SfPullToRefresh control. For an example, refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui#Avoid_using_SyncFusion_ListViews_directly_in_SfPullToRefresh_controls|this link]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Client|Xamarin XAML]]&lt;br /&gt;
[[Category:Mobile|Mobile XAML]]&lt;br /&gt;
[[Category:Pages with broken file links|Xamarin XAML]]&lt;br /&gt;
[[Category:Styling|Xamarin XAML]]&lt;br /&gt;
[[Category:XAML|Xamarin XAML]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=HowTo:Convert_Xamarin_XAMLs_to_Maui&amp;diff=29229</id>
		<title>HowTo:Convert Xamarin XAMLs to Maui</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=HowTo:Convert_Xamarin_XAMLs_to_Maui&amp;diff=29229"/>
				<updated>2025-12-12T09:39:18Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* UBIKTabView */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Information ==&lt;br /&gt;
=== Frame to Border ===  &lt;br /&gt;
'''Use [https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/border?view=net-maui-9.0 Border] instead of Frame.'''  &lt;br /&gt;
Frame is deprecated in MAUI. Attributes;&lt;br /&gt;
* Stroke (previously BorderColor)&lt;br /&gt;
* Use StrokeShape (previously CornerRadius) to define the corners. Eg. &amp;lt;nowiki&amp;gt;StrokeShape=&amp;quot;RoundRectangle 8,8,8,8&amp;quot;&amp;lt;/nowiki&amp;gt; where the corner curve can be written as 1 value (all the same), 2 values (horizontal and vertical), or 4 values (each corner defined seperately). The default StrokeShape is 'Rectangle', which effectively equals a CornerRadius of 0.&lt;br /&gt;
* StrokeThickness can be used to define the thickness of the border.&lt;br /&gt;
* Other properties documented in the link above can be used to define the look of the border. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;Frame ... /&amp;gt;&lt;br /&gt;
| &amp;lt;Border ... /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
&lt;br /&gt;
=== LayoutOptions with &amp;quot;...AndExpand&amp;quot; ===  &lt;br /&gt;
'''Replace &amp;quot;...AndExpand&amp;quot; with Grid layout.'''  &lt;br /&gt;
Horizontal/VerticalOptions ending in &amp;quot;...AndExpand&amp;quot; are deprecated. Use Grid with `ColumnDefinition Width=&amp;quot;*&amp;quot;` for expansion.&lt;br /&gt;
&lt;br /&gt;
=== GlyphLabel and Styles ===  &lt;br /&gt;
'''Use Label with new styles.'''  &lt;br /&gt;
Custom controls like `GlyphLabel` are no longer needed. Use `Label` with styles like `UBIKSymbolText`.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| controls:GlyphLabel&lt;br /&gt;
| Label with UBIKSymbolText style&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== SfTabView Virtualization ===  &lt;br /&gt;
'''Enable virtualization.'''  &lt;br /&gt;
Add `EnableVirtualization=&amp;quot;True&amp;quot;` to all SfTabView instances or styles.&lt;br /&gt;
&lt;br /&gt;
=== Swipe Menu Icons on Android ===  &lt;br /&gt;
'''Refactor swipe templates and label styles.'''  &lt;br /&gt;
Icons in swipe menus were truncated on Android. Fixed via refactoring.&lt;br /&gt;
&lt;br /&gt;
=== Color Style Changes ===  &lt;br /&gt;
'''Dark theme adjustments.'''  &lt;br /&gt;
Changes to color styles may affect appearance. Review usage of `UBIKDarkThemeColor`, `UBIKDarkTextColor`, etc.&lt;br /&gt;
&lt;br /&gt;
=== Strikethrough Converter ===  &lt;br /&gt;
'''Use `TextDecorations=&amp;quot;Strikethrough&amp;quot;` instead of converter.'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| Text=&amp;quot;{Binding ..., Converter={StaticResource StrikethroughConverter}}&amp;quot;&lt;br /&gt;
| Text=&amp;quot;{Binding ...}&amp;quot; TextDecorations=&amp;quot;Strikethrough&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Button Disabled Trigger ===  &lt;br /&gt;
'''Add trigger for disabled buttons.'''  &lt;br /&gt;
Maui buttons don’t visually change when disabled. Add trigger to style.&lt;br /&gt;
&lt;br /&gt;
=== TapGestureRecognizer Replacement ===  &lt;br /&gt;
'''Use TappedBehavior instead.'''  &lt;br /&gt;
TapGestureRecognizer now intercepts taps. Use `TappedBehavior` to avoid conflicts.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;... .GestureRecognizers&amp;gt;&amp;lt;TapGestureRecognizer Command=&amp;quot;{Binding ...}&amp;quot; /&amp;gt;&amp;lt;/... .GestureRecognizers&amp;gt;&lt;br /&gt;
| &amp;lt;... .Behaviors&amp;gt;&amp;lt;behaviors:TappedBehavior&amp;gt;&amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding ...}&amp;quot; /&amp;gt;&amp;lt;/behaviors:TappedBehavior&amp;gt;&amp;lt;/... .Behaviors&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TapGestureRecognizer and Swipe Conflict ===  &lt;br /&gt;
'''Remove TapGestureRecognizer from root Grid.'''  &lt;br /&gt;
TapGestureRecognizer blocks swipe behavior. Remove it and adapt parent list to trigger navigation. An example of such behaviors can be seen in UBIKChildArea.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Navigation in UBIKChildItem ===  &lt;br /&gt;
'''Use EventHandlerBehavior for navigation.'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| [none]&lt;br /&gt;
| &amp;lt;controls:SfListViewExt.Behaviors&amp;gt;&amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;ItemTapped&amp;quot;&amp;gt;&amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding AppStatus.RootList.Items[0].NavigateToChildrenCommand}&amp;quot; /&amp;gt;&amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&amp;lt;/controls:SfListViewExt.Behaviors&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
== Recommended ==&lt;br /&gt;
=== Extract DataTemplates from UBIKThemes ===&lt;br /&gt;
'''Create separate .xamlx files for the following DataTemplates.'''&lt;br /&gt;
It's not so easy about the namespaces:&lt;br /&gt;
* In our default templates, it's enough to add the following ones to every new separate .xamlx files at the beginning;&lt;br /&gt;
    * xmlns:ctrls=&amp;quot;clr-namespace:UBIK.MAUI.Controls;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
    * xmlns:platform=&amp;quot;clr-namespace:UBIK.MAUI.Platform.Renderers;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
    * xmlns:resources=&amp;quot;clr-namespace:UBIK.MAUI.Resources;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
    * xmlns:services=&amp;quot;clr-namespace:UBIK.MAUI.Services;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
    * xmlns:uiservices=&amp;quot;clr-namespace:UBIK.UI.Services;assembly=UBIK.UI&amp;quot;.&lt;br /&gt;
* But we don't know if other namespaces might be used in the custom templates. So it might be necessary to really analyze the namespaces used and find/copy them from the UBIKThemes file.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! &amp;amp;nbsp; !! Templates !! &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| UBIKMainItem || UBIKChildItem || UBIKTaskItem&lt;br /&gt;
|-&lt;br /&gt;
| UBIKTaskProperty || UBIKTaskPropertyString || UBIKTaskPropertyDouble&lt;br /&gt;
|-&lt;br /&gt;
| UBIKTaskPropertyInt || UBIKTaskPropertyNumeric || UBIKTaskPropertyDateTime&lt;br /&gt;
|-&lt;br /&gt;
| UBIKTaskPropertyGeoData || UBIKTaskPropertyBool || UBIKTaskPropertyPopup&lt;br /&gt;
|-&lt;br /&gt;
| UBIKTaskPropertyList || UBIKTaskPropertyGuid || UBIKPropertyItem&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyTextLengthHint || UBIKPropertyDirectEditButtons || UBIKTaskPropertyEditButtons&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyDirectItemString || UBIKPropertyDirectItemDouble || UBIKPropertyDirectItemInt&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyDirectItemMinMax || UBIKPropertyDirectItemNumeric || UBIKPropertyDirectItemDateTime&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyDirectItemGeoData || UBIKPropertyDirectItemBool || UBIKPropertyDirectItemPopup&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyDirectItemList || UBIKPropertyDirectItemGuid || UBIKDocumentItem&lt;br /&gt;
|-&lt;br /&gt;
| UBIKSearchResultItem || UBIKDefaultHotSpot || UBIKAngularLinkHotSpot&lt;br /&gt;
|-&lt;br /&gt;
| UBIKRoundLinkHotSpot || UBIKInputHotSpot || UBIKSignatureHotSpot&lt;br /&gt;
|-&lt;br /&gt;
| UBIKObjectHotSpot || UBIKMediaHotSpot || &lt;br /&gt;
|}&lt;br /&gt;
=== VideoPlayer Adjustments ===&lt;br /&gt;
'''This property is repsonsible for the video player regarding how or if it should get scaled up depending on the value of the&lt;br /&gt;
Aspect property'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;VideoPlayer...&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;VideoPlayer Aspect=&amp;quot;AspectFit&amp;quot;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''The UriToVideoSourceConverter is no longer needed because the conversion of the &lt;br /&gt;
VideoSource gets done by the MediaElement itself. It is marked as obsolete and should therefore no longer be used.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:VideoPlayer... Source=&amp;quot;{Binding DocumentViewModel.LocalURI, Converter={StaticResource UriToVideoSource}}&amp;quot;/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:VideoPlayer... Source=&amp;quot;{Binding DocumentViewModel.LocalURI}&amp;quot;/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''The StopTimer property is obsolete and no longer needed because the MediaElement behind does the Stop of the VideoPlayer&lt;br /&gt;
by itself.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:VideoPlayer... StopTimer=&amp;quot;{Binding Unloaded}&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:VideoPlayer... /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
=== SearchBar Style Fix on iOS ===&lt;br /&gt;
'''On iOS, defining a transparent background for the SearchBar control results in a black text on black background appearance.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;[issue on iOS only] UBIKThemes: SearchBar style: &amp;lt;Setter Property=&amp;quot;BackgroundColor&amp;quot; Value=&amp;quot;Transparent&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;Delete this setter&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Remove TapGestureRecognizer from Main Item ===&lt;br /&gt;
'''Swiping on the Main items was broken by Maui (Documented in Information). The workaround is to remove the TapGestureRecognizer from UBIKMainItem, and add ListView-based navigation similar to that found in UBIKChildArea (with an extended binding path for technical reasons).'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;(In UBIKMainItem)&lt;br /&gt;
&amp;lt;Grid.GestureRecognizers&amp;gt;&lt;br /&gt;
	&amp;lt;TapGestureRecognizer Command=&amp;quot;{Binding NavigateToChildrenCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Grid.GestureRecognizers&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;[nothing]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
=== Add Navigation Behavior in Child Area ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;(In UBIKChildArea)&lt;br /&gt;
[nothing]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:SfListViewExt.Behaviors&amp;gt;&lt;br /&gt;
	&amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;ItemTapped&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding AppStatus.RootList.Items[0].NavigateToChildrenCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
	&amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt.Behaviors&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
== Highly Recommended ==&lt;br /&gt;
=== CircularImage to AvatarView ===  &lt;br /&gt;
'''Use AvatarView instead of CircularImage.'''  &lt;br /&gt;
CircularImage and its wrapping Frame are no longer needed. Use AvatarView from the MAUI Community Toolkit. Add the namespace:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
xmlns:toolkit=&amp;quot;http://schemas.microsoft.com/dotnet/2022/maui/toolkit&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;Frame&amp;gt;&amp;lt;CircularImage Source=&amp;quot;...&amp;quot; /&amp;gt;&amp;lt;/Frame&amp;gt;&lt;br /&gt;
| &amp;lt;toolkit:AvatarView ImageSource=&amp;quot;...&amp;quot; BorderWidth=&amp;quot;...&amp;quot; BackgroundColor=&amp;quot;...&amp;quot; /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== GlyphSize to FontSize and Alignment ===  &lt;br /&gt;
'''Use FontSize and alignment properties instead of GlyphSize.'''  &lt;br /&gt;
The GlyphSize property is obsolete. Use FontSize and add alignment properties for better layout.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;Setter Property=&amp;quot;GlyphSize&amp;quot; Value=&amp;quot;13.0&amp;quot; /&amp;gt;&lt;br /&gt;
| &amp;lt;Setter Property=&amp;quot;FontSize&amp;quot; Value=&amp;quot;16&amp;quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;Setter Property=&amp;quot;VerticalOptions&amp;quot; Value=&amp;quot;Center&amp;quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;Setter Property=&amp;quot;HorizontalOptions&amp;quot; Value=&amp;quot;Center&amp;quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;Setter Property=&amp;quot;VerticalTextAlignment&amp;quot; Value=&amp;quot;Center&amp;quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;Setter Property=&amp;quot;HorizontalTextAlignment&amp;quot; Value=&amp;quot;Center&amp;quot; /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== StaticResource to DynamicResource ===  &lt;br /&gt;
'''Use DynamicResource and BaseResourceKey.'''  &lt;br /&gt;
For dynamic theming, use DynamicResource instead of StaticResource. When inheriting styles, use BaseResourceKey.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| BasedOn=&amp;quot;{StaticResource SomeStyle}&amp;quot;&lt;br /&gt;
| BaseResourceKey=&amp;quot;SomeStyle&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Style=&amp;quot;{StaticResource SomeStyle}&amp;quot;&lt;br /&gt;
| Style=&amp;quot;{DynamicResource SomeStyle}&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UBIKPropertyDirectEditListPopup and Guid link direct editing ===&lt;br /&gt;
We have changed the way the content item template is defined and used in UBIKPropertyDirectEditListPopup, which is used in the direct editing of Guid link properties. This change aims to simplify the template and is also due to the fact that the old approach has a poor performance in the new MAUI app.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;DataTemplate x:Key=&amp;quot;PopupFilterQueryItemTemplate&amp;quot;&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
|| &lt;br /&gt;
The DataTemplate &amp;quot;PopupFilterQueryItemTemplate&amp;quot; is no longer needed and should be removed.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;FilterQueryResultList&amp;quot;&lt;br /&gt;
    ...&lt;br /&gt;
    ItemTemplate=&amp;quot;{StaticResource PopupFilterQueryItemTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;FilterQueryResultList&amp;quot;&lt;br /&gt;
    ...&lt;br /&gt;
    ItemTemplate=&amp;quot;{Binding [UBIKChildItem], Source={x:Static services:TemplateService.Instance}}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;controls:SfListViewExt.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;ItemTapped&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding SetPropertyValueCommand}&amp;quot; Converter=&amp;quot;{StaticResource ItemTappedEventArgsToViewModelConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding ConfirmEditCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:SfListViewExt.Behaviors&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
In comparison, the old solution defines a &amp;quot;PopupFilterQueryItemTemplate&amp;quot; DataTemplate which simply wraps the needed selection related behaviors to the existing &amp;quot;UBIKChildItem&amp;quot; template. The new solution reuses the &amp;quot;UBIKChildItem&amp;quot; template directly and add the same but adapted behaviors to the list view instead.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UBIKTabView ===&lt;br /&gt;
We have adapted our UBIKTabView for MAUI so that, when used in combination with a UBIKContentView or ContentControl, it now supports lazy loading. This results in a performance boost because the contents of non-selected tabs are no longer rendered in the UI automatically unless the tab is explicitly selected by the user. Therefore, the LazyLoading property should be set to true for tabs that are not the “default” tabs—i.e., tabs that are not initially selected when a page is opened (Property or Document tabs).&lt;br /&gt;
&lt;br /&gt;
Add the following namespace to use the UBIKTabView:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
xmlns:controls=&amp;quot;clr-namespace:UBIK.MAUI.Controls;assembly=UBIK.MAUI&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''From a performance perspective, our UBIKTabView should be used instead of the SfTabView going forward, as it supports lazy loading..'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabView&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
        &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
            &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
        &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
            &amp;lt;ContentView Content=&amp;quot;{Binding [UBIKPropertyArea], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
        &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
            &amp;lt;ContentView Content=&amp;quot;{Binding [UBIKDocumentArea], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&amp;lt;/tabView:SfTabView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt; &lt;br /&gt;
&amp;lt;controls:UBIKTabView&lt;br /&gt;
    x:Name=&amp;quot;ContentTabs&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource TabViewBaseStyle}&amp;quot;&lt;br /&gt;
    TabHeaderPadding=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;controls:UBIKTabView.Items&amp;gt;&lt;br /&gt;
        &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
            &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
                &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; &lt;br /&gt;
                Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
            &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
                &amp;lt;controls:UBIKContentView&lt;br /&gt;
                    Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot;&lt;br /&gt;
                    ConverterParameter=&amp;quot;UBIKPropertyArea&amp;quot;&lt;br /&gt;
                    LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
            &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
                &amp;lt;controls:UBIKContentView&lt;br /&gt;
                    Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot;&lt;br /&gt;
                    ConverterParameter=&amp;quot;UBIKDocumentArea&amp;quot;&lt;br /&gt;
                    LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:UBIKTabView.Items&amp;gt;&lt;br /&gt;
&amp;lt;/controls:UBIKTabView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
&lt;br /&gt;
== Mandatory ==&lt;br /&gt;
&lt;br /&gt;
=== Namespace conversion ===  &lt;br /&gt;
'''Update all namespaces to MAUI equivalents.'''  &lt;br /&gt;
All `xmlns` and `clr-namespace` declarations must be updated to their MAUI counterparts.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| xmlns=&amp;quot;http://xamarin.com/schemas/2014/forms&amp;quot;&lt;br /&gt;
| xmlns=&amp;quot;http://schemas.microsoft.com/dotnet/2021/maui&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core&lt;br /&gt;
| clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific;assembly=Microsoft.Maui.Controls&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Behaviors;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Behaviors;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Classes;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Classes;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Controls;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Converters;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Converters;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Platform.Renderers;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Platform.Controls;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Services;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Services;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Resources;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Resources;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.Scanning.Forms;assembly=UBIK.Scanning.Forms&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Controls.ZXingScanner;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.SfPullToRefresh.XForms;assembly=Syncfusion.SfPullToRefresh.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.PullToRefresh;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.XForms.TabView;assembly=Syncfusion.SfTabView.Xforms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.TabView;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.ListView;assembly=Syncfusion.Maui.ListView&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.XForms.TreeView;assembly=Syncfusion.SfTreeView.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.TreeView;assembly=Syncfusion.Maui.TreeView&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.XForms.TextInputLayout;assembly=Syncfusion.Core.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.SfChart.XForms;assembly=Syncfusion.SfChart.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.Charts;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For classes referenced in the XAML code, please don't forget to also replace &amp;quot;CPL&amp;quot; with &amp;quot;MAUI&amp;quot; in the class namespace.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Syncfusion control updates ===&lt;br /&gt;
'''There are some other properties that have changed their names on SfListView/SfListViewExt. We don't use them in our standard XAMLs. But if you use them in customizings, please refer to https://help.syncfusion.com/maui/listview/migration for the complete list.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
SfListViewExt:&lt;br /&gt;
    * ItemHolding&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| ItemLongPress&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Syncfusion control updates ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| * LeftSwipeTemplate, RightSwipeTemplate&lt;br /&gt;
| StartSwipeTemplate, EndSwipeTemplate&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Layout name change ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
* &amp;lt;sync:SfListView.LayoutManager&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sync:SfListView.ItemsLayout&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TemplateService binding for extracted templates ===&lt;br /&gt;
'''1. We need to add the following namespace where the changes are applied:&lt;br /&gt;
xmlns:services=&amp;quot;clr-namespace:UBIK.MAUI.Services;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
2. We need to search for both &amp;quot;StaticResource&amp;quot; and &amp;quot;DynamicResource&amp;quot;;&lt;br /&gt;
3. We only listed some examples here. But the same rule applies to all those templates exacted from UBIKThemes (see the first &amp;quot;Recommended&amp;quot; point).'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| {StaticResource UBIKChildItem}&lt;br /&gt;
| {Binding [UBIKChildItem], Source={x:Static services:TemplateService.Instance}}&lt;br /&gt;
|-&lt;br /&gt;
| {StaticResource UBIKDocumentItem}&lt;br /&gt;
| {Binding [UBIKDocumentItem], Source={x:Static services:TemplateService.Instance}}&lt;br /&gt;
|-&lt;br /&gt;
| {StaticResource UBIKMainItem}&lt;br /&gt;
| {Binding [UBIKMainItem], Source={x:Static services:TemplateService.Instance}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== OnPlatform and OnIdiom syntax changes ===&lt;br /&gt;
'''All code containing the OnPlatform and OnIdiom functionalities needs to be refactored as the syntax has changed.'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
! style=&amp;quot;width:7%&amp;quot; | Notes&lt;br /&gt;
|-&lt;br /&gt;
| OnPlatform&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;TheControl&lt;br /&gt;
        ...&lt;br /&gt;
        TheProperty=&amp;quot;{OnPlatform Android=False, iOS=True}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;TheControl&lt;br /&gt;
     ...&lt;br /&gt;
     TheProperty=&amp;quot;{OnPlatform Android={Binding ...}, iOS={Binding ...}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | It is recommended to use the inline syntax as a default wherever possible, but there are also other approaches.&lt;br /&gt;
When using Bindings, Resources, or other complex values in OnIdiom or OnPlatform values, it should '''only''' be used with the inline syntax.&lt;br /&gt;
|-&lt;br /&gt;
| OnIdiom&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;TheControl&lt;br /&gt;
        ...&lt;br /&gt;
        TheProperty=&amp;quot;{OnIdiom Phone=False, Desktop=True}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;TheControl&lt;br /&gt;
     ...&lt;br /&gt;
     TheProperty=&amp;quot;{OnIdiom Desktop={Binding ...}, Phone={Binding ...}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
e.g.&lt;br /&gt;
&amp;lt;ColumnDefinition.Width&amp;gt;&lt;br /&gt;
   &amp;lt;OnIdiom&lt;br /&gt;
        ...&lt;br /&gt;
        Desktop=&amp;quot;Auto&amp;quot;&lt;br /&gt;
        Phone=&amp;quot;*&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/ColumnDefinition.Width&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;RowDefinition.Height&amp;gt;&lt;br /&gt;
   &amp;lt;OnPlatform&lt;br /&gt;
        ...&lt;br /&gt;
        Android=&amp;quot;Auto&amp;quot;&lt;br /&gt;
        iOS=&amp;quot;*&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/RowDefinition.Height&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ColumnDefinition Width=&amp;quot;{OnIdiom Desktop='Auto', Phone='*'}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;RowDefinition Height=&amp;quot;{OnPlatform Android='Auto', iOS='*'}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| When using GridLength as a type (e.g,. in ColumnDefinition.Width or RowDefinition.Height) in OnIdiom or OnPlatform, it should '''only''' be used with the inline syntax.&lt;br /&gt;
|-&lt;br /&gt;
| WinPhone&lt;br /&gt;
| WinUI&lt;br /&gt;
| In the scope of any OnPlatform/On Platform, WinPhone needs to be replaced with WinUI.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
⚠️ Please refer to the wiki for more details and possibilities (e.g., if the value contains multiple elements): [https://wiki.augmensys.com/index.php?title=XAML_Tips#Platform_and_Device-specific_UI_with_OnPlatform_and_OnIdiom Platform and Device-specific UI with OnPlatform and OnIdiom].&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
&lt;br /&gt;
=== Remove default ControlTemplate ===&lt;br /&gt;
'''The default ControlTemplate should be removed from the ContentView if the ControlTemplate property of that ContentView is determined by DataTriggers. The same applies to ContentControls. The default ContentTemplate should be removed from the controls:ContentControl if the ContentTemplate property of that ContentControl is determined by DataTriggers.'''&lt;br /&gt;
Using only DataTriggers without a default ControlTemplate ensures that content is created only after the trigger evaluation is complete. If a default ControlTemplate is set, it is always loaded immediately, even if another template is applied right after.&lt;br /&gt;
For more details refer to [[Xamarin_XAML#Conflicting_Triggers|Conflicting Triggers]].&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;containerName&amp;quot; ControlTemplate=&amp;quot;{StaticResource YourTemplate}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger&lt;br /&gt;
            Binding=&amp;quot;{Binding Source={x:Reference containerName}, Path=...}&amp;quot;&lt;br /&gt;
            TargetType=&amp;quot;ContentView&amp;quot;&lt;br /&gt;
            Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot;&lt;br /&gt;
                    Value=&amp;quot;{StaticResource YourTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
        ...&lt;br /&gt;
    &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;containerName&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger&lt;br /&gt;
            Binding=&amp;quot;{Binding Source={x:Reference containerName}, Path=...}&amp;quot;&lt;br /&gt;
            TargetType=&amp;quot;ContentView&amp;quot;&lt;br /&gt;
            Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot;&lt;br /&gt;
                    Value=&amp;quot;{StaticResource YourTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
        ...&lt;br /&gt;
    &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Remove HeadlessLayout style ===&lt;br /&gt;
'''This Style has no longer any effect in MAUI and even degrades app performance. We are keeping it in our standard UBIKThemes under the Obsolete section to maintain backward compatibility.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Style x:Key=&amp;quot;HeadlessLayout&amp;quot; TargetType=&amp;quot;Layout&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;CompressedLayout.IsHeadless&amp;quot; Value=&amp;quot;{OnPlatform False, Android=True}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| Delete it from your custom UBIKThemes file&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Additional mandatory rule ===&lt;br /&gt;
'''In the customizings, however, it can and should be removed entirely, as it negatively affects performance, as mentioned before. To remove the style, you can simply use VS Code or any other editor with a search function and look through all custom .xaml files for usages of {StaticResource HeadlessLayout} or {DynamicResource HeadlessLayout}. These references should be removed from the respective elements or controls.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView&lt;br /&gt;
    Grid.Column=&amp;quot;2&amp;quot;&lt;br /&gt;
    ControlTemplate=&amp;quot;{DynamicResource ChildCountBadge}&amp;quot;&lt;br /&gt;
    HorizontalOptions=&amp;quot;Start&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot;&lt;br /&gt;
    VerticalOptions=&amp;quot;Start&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView&lt;br /&gt;
    Grid.Column=&amp;quot;2&amp;quot;&lt;br /&gt;
    ControlTemplate=&amp;quot;{DynamicResource ChildCountBadge}&amp;quot;&lt;br /&gt;
    HorizontalOptions=&amp;quot;Start&amp;quot;&lt;br /&gt;
    VerticalOptions=&amp;quot;Start&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Rename progress colors ===&lt;br /&gt;
'''Renamed in Maui.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| ProgressBackgroundColor, ProgressStrokeColor&lt;br /&gt;
| ProgressBackground, ProgressColor&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Rename Default Font Name  ===&lt;br /&gt;
'''The name of the default font was slightly renamed in the UBIKThemes file in MAUI — the first letter now needs to be capitalized. Otherwise, on iOS, bold or italic styles are not applied correctly, and changing a property in Direct Editing, for example, would result in no visible change.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;x:String x:Key=&amp;quot;TextFontFamily&amp;quot;&amp;gt;inter&amp;lt;/x:String&amp;gt;&lt;br /&gt;
| &amp;lt;x:String x:Key=&amp;quot;TextFontFamily&amp;quot;&amp;gt;Inter&amp;lt;/x:String&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Chart control updates ===&lt;br /&gt;
'''The Title, Legend, and Zoom &amp;amp; Pan behavior syntax of the Chart control have changed. Further, some SyncFusion Chart components &amp;amp; Properties have changed.'''&lt;br /&gt;
&amp;lt;br&amp;gt;⚠️ For more information and examples about changed SyncFusion Chart components &amp;amp; Properties, please refer to the [https://help.syncfusion.com/maui/cartesian-charts/overview Syncfusion Maui Charts documentation]. For more info on how to customize a chart, refer to [[Charts#Mobile_Chart_Customizing|Mobile Chart Customizing]].&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;chart:SfChart.Title&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartTitle Text=&amp;quot;{Binding Header}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/chart:SfChart.Title&amp;gt;&lt;br /&gt;
&amp;lt;chart:SfChart.Legend&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartLegend /&amp;gt;&lt;br /&gt;
&amp;lt;/chart:SfChart.Legend&amp;gt;&lt;br /&gt;
&amp;lt;chart:SfChart.ChartBehaviors&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartZoomPanBehavior /&amp;gt;&lt;br /&gt;
&amp;lt;/chart:SfChart.ChartBehaviors&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;chart:NumericalStripLine&lt;br /&gt;
    Width=&amp;quot;2&amp;quot;&lt;br /&gt;
    StrokeColor=&amp;quot;{Binding Color, Converter={StaticResource IntToColor}}&amp;quot;&lt;br /&gt;
    IsPixelWidth=&amp;quot;True&amp;quot;&lt;br /&gt;
    StrokeWidth=&amp;quot;5&amp;quot;&lt;br /&gt;
    Start=&amp;quot;{Binding Value}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;chart:FastLineSeries                    &lt;br /&gt;
    ItemsSource=&amp;quot;{Binding Items}&amp;quot;&lt;br /&gt;
    Label=&amp;quot;{Binding Name}&amp;quot;&lt;br /&gt;
    Color=&amp;quot;{Binding Color, Converter={StaticResource IntToColor}}&amp;quot;&lt;br /&gt;
    XBindingPath=&amp;quot;XValue&amp;quot;&lt;br /&gt;
    YBindingPath=&amp;quot;YValue&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfChartExt.Title&amp;gt;&lt;br /&gt;
    &amp;lt;Label Text=&amp;quot;{Binding Header}&amp;quot; HorizontalOptions=&amp;quot;Center&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfChartExt.Title&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfChartExt.Legend&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartLegend /&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfChartExt.Legend&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfChartExt.ZoomPanBehavior&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartZoomPanBehavior /&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfChartExt.ZoomPanBehavior&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;chart:NumericalPlotBand&lt;br /&gt;
    StrokeWidth=&amp;quot;2&amp;quot;&lt;br /&gt;
    Stroke=&amp;quot;{Binding Color, Converter={StaticResource IntToColor}}&amp;quot;&lt;br /&gt;
    Start=&amp;quot;{Binding Value}&amp;quot;&lt;br /&gt;
    End=&amp;quot;{Binding Value}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;chart:FastLineSeries                    &lt;br /&gt;
    ItemsSource=&amp;quot;{Binding Items}&amp;quot;&lt;br /&gt;
    Label=&amp;quot;{Binding Name}&amp;quot;&lt;br /&gt;
    Fill=&amp;quot;{Binding Color, Converter={StaticResource IntToColor}}&amp;quot;&lt;br /&gt;
    XBindingPath=&amp;quot;XValue&amp;quot;&lt;br /&gt;
    YBindingPath=&amp;quot;YValue&amp;quot;&lt;br /&gt;
    StrokeWidth=&amp;quot;2&amp;quot;&lt;br /&gt;
    EnableAntiAliasing=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
&lt;br /&gt;
== SfTabView ==&lt;br /&gt;
&lt;br /&gt;
=== Namespace Update ===&lt;br /&gt;
'''Update Syncfusion TabView namespace.'''&lt;br /&gt;
Replace the Xamarin namespace with the MAUI equivalent.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.XForms.TabView;assembly=Syncfusion.SfTabView.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.TabView;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Remove Obsolete Converters ===&lt;br /&gt;
'''Remove ItemCountToBoolConverter from Resources.'''&lt;br /&gt;
This converter is no longer usable in TabView headers.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;converters:ItemCountToBoolConverter x:Key=&amp;quot;ItemCountToBool&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| [remove]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Add StringFormatConverter ===&lt;br /&gt;
'''Use StringFormatConverter for combined header strings.'''&lt;br /&gt;
Syncfusion MAUI TabView uses a single `Header` property instead of templates.&lt;br /&gt;
For all tab headers, formatters should be specified to assemble the text. As a best practice, even for simple header strings.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| [template-based header]&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;converters:StringFormatConverter x:Key=&amp;quot;ChildrenTabFormatter&amp;quot; Parameter1=&amp;quot;{resources:Translate ChildrenTitle}&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In the above example, a previously defined formatter (that must be also added to the resource dictionary) is used to fill in the header attribute value.&lt;br /&gt;
⚠️ Avoid using bindings in `Parameter1` and `Parameter2` — use static strings only. For complex cases, use `EvalExpression`.&lt;br /&gt;
&lt;br /&gt;
=== FontImageSource Styling ===&lt;br /&gt;
'''Add local style for FontImageSource.'''&lt;br /&gt;
Global styles are not supported.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| [global FontImageSource style]&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Style TargetType=&amp;quot;FontImageSource&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;Setter Property=&amp;quot;FontFamily&amp;quot; Value=&amp;quot;{DynamicResource UBIKSymbols}&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;Setter Property=&amp;quot;Color&amp;quot; Value=&amp;quot;{DynamicResource UBIKLightThemeColor}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TabView Structure ===&lt;br /&gt;
'''Use Grid to wrap TabView.'''&lt;br /&gt;
MAUI TabView requires a different structure and property set.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabView VisibleHeaderCount=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
  ...&lt;br /&gt;
&amp;lt;/tabView:SfTabView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid&amp;gt;&lt;br /&gt;
  &amp;lt;tabView:SfTabView&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem Header=&amp;quot;string example header&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;tabView:SfTabItem.ImageSource&amp;gt;&lt;br /&gt;
        &amp;lt;FontImageSource Glyph=&amp;quot;{x:Static resources:UBIKIcons.XXX}&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/tabView:SfTabItem.ImageSource&amp;gt;&lt;br /&gt;
      &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
  &amp;lt;/tabView:SfTabView&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Property Changes ===&lt;br /&gt;
'''Update renamed or removed properties.'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| VisibleHeaderCount&lt;br /&gt;
| [not available yet]&lt;br /&gt;
|-&lt;br /&gt;
| UBIKCenterButtonSettings&lt;br /&gt;
| CenterButtonSettings&lt;br /&gt;
|-&lt;br /&gt;
| SelectionIndicatorSettings&lt;br /&gt;
| IndicatorPlacement, IndicatorStrokeThickness, IndicatorBackground&lt;br /&gt;
|-&lt;br /&gt;
| SelectionColor&lt;br /&gt;
| Use VisualStateManager instead&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
⚠️ Refer to [https://help.syncfusion.com/maui/tabview/migration Syncfusion migration guide] for full property list.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== SfPullToRefresh ==&lt;br /&gt;
&lt;br /&gt;
'''It is recommended to get rid of all SfPullToRefresh controls due to some issues that might occur.''' For more information refer to [[Mobile_XAML#Issues_with_SfPullToRefresh_in_MAUI|this article]]. In our Maui standard client, the PullToRefresh control has already been replaced by a Refresh button in the Context Menu, so there's no need for a custom Refresh button.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt&lt;br /&gt;
            .../&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
&amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
     .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
⚠️ '''If SfPullToRefresh is still required, the following points should be considered.'''&lt;br /&gt;
&lt;br /&gt;
=== Namespace Update ===&lt;br /&gt;
'''Update Syncfusion TabView namespace.'''&lt;br /&gt;
Replace the Xamarin namespace with the MAUI equivalent.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.SfPullToRefresh.XForms;assembly=Syncfusion.SfPullToRefresh.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.PullToRefresh;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Rename SfPullToRefresh properties ===&lt;br /&gt;
'''Renamed in Maui, however, currently these properties cause an issue and should not be included in customizings.'''&lt;br /&gt;
SfPullToRefresh:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| RefreshContentHeight, RefreshContentWidth&lt;br /&gt;
| RefreshViewHeight, RefreshViewWidth&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Avoid multiple SfPullToRefresh controls ===&lt;br /&gt;
'''To prevent an issue that causes the app to freeze, avoid placing more than one SfPullToRefresh controls as siblings in a xaml hierarchy'''. If switching between contents in a SfPullToRefresh control is necessary use separate DataTemplates for the contents and use e.g. a DataTrigger to set one of them as the ControlTemplate of a ContentControl inside the SfPullToRefresh control.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pullToRefresh:SfPullToRefresh IsVisible = {Binding ShowContentB, Converter={StaticResource BoolToNotBool}}&amp;gt;&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt&lt;br /&gt;
            x:Name=&amp;quot;ContentA&amp;quot;&lt;br /&gt;
            .../&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
&amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pullToRefresh:SfPullToRefresh  IsVisible = {Binding ShowContentB}&amp;gt;&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt&lt;br /&gt;
            x:Name=&amp;quot;ContentB&amp;quot;&lt;br /&gt;
            .../&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
&amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid&amp;gt;&lt;br /&gt;
    &amp;lt;Grid.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;DataTemplate x:Key=&amp;quot;TemplateA&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;controls:SfListViewExt&lt;br /&gt;
                    x:Name=&amp;quot;ContentA&amp;quot;&lt;br /&gt;
                    .../&amp;gt;&lt;br /&gt;
            &amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
            &amp;lt;DataTemplate x:Key=&amp;quot;TemplateB&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;controls:SfListViewExt&lt;br /&gt;
                    x:Name=&amp;quot;ContentB&amp;quot;&lt;br /&gt;
                    .../&amp;gt;&lt;br /&gt;
            &amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/Grid.Resources&amp;gt;&lt;br /&gt;
   &amp;lt;pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
       &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
           &amp;lt;controls:ContentControl&amp;gt;&lt;br /&gt;
               &amp;lt;controls:ContentControl.Triggers&amp;gt;&lt;br /&gt;
                   &amp;lt;DataTrigger&lt;br /&gt;
                       Binding=&amp;quot;{Binding ShowContentB}}&amp;quot;&lt;br /&gt;
                       TargetType=&amp;quot;controls:ContentControl&amp;quot;&lt;br /&gt;
                       Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
                       &amp;lt;Setter Property=&amp;quot;ContentTemplate&amp;quot; Value=&amp;quot;{DynamicResource TemplateA}&amp;quot; /&amp;gt;&lt;br /&gt;
                   &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
                   &amp;lt;DataTrigger&lt;br /&gt;
                       Binding=&amp;quot;{Binding ShowContentB}}&amp;quot;&lt;br /&gt;
                       TargetType=&amp;quot;controls:ContentControl&amp;quot;&lt;br /&gt;
                       Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
                       &amp;lt;Setter Property=&amp;quot;ContentTemplate&amp;quot; Value=&amp;quot;{DynamicResource TemplateB}&amp;quot; /&amp;gt;&lt;br /&gt;
                   &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
               &amp;lt;/controls:ContentControl.Triggers&amp;gt;&lt;br /&gt;
           &amp;lt;/controls:ContentControl&amp;gt;&lt;br /&gt;
       &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Avoid using SyncFusion ListViews directly in SfPullToRefresh controls ===&lt;br /&gt;
'''To prevent an issue on some Android devices that can cause some items in a SfListViewExt to be rendered incorrectly or not at all after triggering a PullToRefresh, avoid placing a SfListViewExt directly in a SfPullToRefresh control'''.&lt;br /&gt;
Instead, wrap the ListView in a DataTemplate and use it in a ContentControl as a child of the SfPullToRefresh control, as shown in the Xaml example below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt&lt;br /&gt;
            .../&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
&amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid&amp;gt;&lt;br /&gt;
    &amp;lt;Grid.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;DataTemplate x:Key=&amp;quot;ListViewTemplate&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;controls:SfListViewExt&lt;br /&gt;
                    .../&amp;gt;&lt;br /&gt;
            &amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/Grid.Resources&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
       &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
           &amp;lt;controls:ContentControl ContentTemplate=&amp;quot;{DynamicResource ListViewTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
       &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=HowTo:Convert_Xamarin_XAMLs_to_Maui&amp;diff=29228</id>
		<title>HowTo:Convert Xamarin XAMLs to Maui</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=HowTo:Convert_Xamarin_XAMLs_to_Maui&amp;diff=29228"/>
				<updated>2025-12-12T07:05:06Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* Highly Recommended */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Information ==&lt;br /&gt;
=== Frame to Border ===  &lt;br /&gt;
'''Use [https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/border?view=net-maui-9.0 Border] instead of Frame.'''  &lt;br /&gt;
Frame is deprecated in MAUI. Attributes;&lt;br /&gt;
* Stroke (previously BorderColor)&lt;br /&gt;
* Use StrokeShape (previously CornerRadius) to define the corners. Eg. &amp;lt;nowiki&amp;gt;StrokeShape=&amp;quot;RoundRectangle 8,8,8,8&amp;quot;&amp;lt;/nowiki&amp;gt; where the corner curve can be written as 1 value (all the same), 2 values (horizontal and vertical), or 4 values (each corner defined seperately). The default StrokeShape is 'Rectangle', which effectively equals a CornerRadius of 0.&lt;br /&gt;
* StrokeThickness can be used to define the thickness of the border.&lt;br /&gt;
* Other properties documented in the link above can be used to define the look of the border. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;Frame ... /&amp;gt;&lt;br /&gt;
| &amp;lt;Border ... /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
&lt;br /&gt;
=== LayoutOptions with &amp;quot;...AndExpand&amp;quot; ===  &lt;br /&gt;
'''Replace &amp;quot;...AndExpand&amp;quot; with Grid layout.'''  &lt;br /&gt;
Horizontal/VerticalOptions ending in &amp;quot;...AndExpand&amp;quot; are deprecated. Use Grid with `ColumnDefinition Width=&amp;quot;*&amp;quot;` for expansion.&lt;br /&gt;
&lt;br /&gt;
=== GlyphLabel and Styles ===  &lt;br /&gt;
'''Use Label with new styles.'''  &lt;br /&gt;
Custom controls like `GlyphLabel` are no longer needed. Use `Label` with styles like `UBIKSymbolText`.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| controls:GlyphLabel&lt;br /&gt;
| Label with UBIKSymbolText style&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== SfTabView Virtualization ===  &lt;br /&gt;
'''Enable virtualization.'''  &lt;br /&gt;
Add `EnableVirtualization=&amp;quot;True&amp;quot;` to all SfTabView instances or styles.&lt;br /&gt;
&lt;br /&gt;
=== Swipe Menu Icons on Android ===  &lt;br /&gt;
'''Refactor swipe templates and label styles.'''  &lt;br /&gt;
Icons in swipe menus were truncated on Android. Fixed via refactoring.&lt;br /&gt;
&lt;br /&gt;
=== Color Style Changes ===  &lt;br /&gt;
'''Dark theme adjustments.'''  &lt;br /&gt;
Changes to color styles may affect appearance. Review usage of `UBIKDarkThemeColor`, `UBIKDarkTextColor`, etc.&lt;br /&gt;
&lt;br /&gt;
=== Strikethrough Converter ===  &lt;br /&gt;
'''Use `TextDecorations=&amp;quot;Strikethrough&amp;quot;` instead of converter.'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| Text=&amp;quot;{Binding ..., Converter={StaticResource StrikethroughConverter}}&amp;quot;&lt;br /&gt;
| Text=&amp;quot;{Binding ...}&amp;quot; TextDecorations=&amp;quot;Strikethrough&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Button Disabled Trigger ===  &lt;br /&gt;
'''Add trigger for disabled buttons.'''  &lt;br /&gt;
Maui buttons don’t visually change when disabled. Add trigger to style.&lt;br /&gt;
&lt;br /&gt;
=== TapGestureRecognizer Replacement ===  &lt;br /&gt;
'''Use TappedBehavior instead.'''  &lt;br /&gt;
TapGestureRecognizer now intercepts taps. Use `TappedBehavior` to avoid conflicts.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;... .GestureRecognizers&amp;gt;&amp;lt;TapGestureRecognizer Command=&amp;quot;{Binding ...}&amp;quot; /&amp;gt;&amp;lt;/... .GestureRecognizers&amp;gt;&lt;br /&gt;
| &amp;lt;... .Behaviors&amp;gt;&amp;lt;behaviors:TappedBehavior&amp;gt;&amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding ...}&amp;quot; /&amp;gt;&amp;lt;/behaviors:TappedBehavior&amp;gt;&amp;lt;/... .Behaviors&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TapGestureRecognizer and Swipe Conflict ===  &lt;br /&gt;
'''Remove TapGestureRecognizer from root Grid.'''  &lt;br /&gt;
TapGestureRecognizer blocks swipe behavior. Remove it and adapt parent list to trigger navigation. An example of such behaviors can be seen in UBIKChildArea.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Navigation in UBIKChildItem ===  &lt;br /&gt;
'''Use EventHandlerBehavior for navigation.'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| [none]&lt;br /&gt;
| &amp;lt;controls:SfListViewExt.Behaviors&amp;gt;&amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;ItemTapped&amp;quot;&amp;gt;&amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding AppStatus.RootList.Items[0].NavigateToChildrenCommand}&amp;quot; /&amp;gt;&amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&amp;lt;/controls:SfListViewExt.Behaviors&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
== Recommended ==&lt;br /&gt;
=== Extract DataTemplates from UBIKThemes ===&lt;br /&gt;
'''Create separate .xamlx files for the following DataTemplates.'''&lt;br /&gt;
It's not so easy about the namespaces:&lt;br /&gt;
* In our default templates, it's enough to add the following ones to every new separate .xamlx files at the beginning;&lt;br /&gt;
    * xmlns:ctrls=&amp;quot;clr-namespace:UBIK.MAUI.Controls;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
    * xmlns:platform=&amp;quot;clr-namespace:UBIK.MAUI.Platform.Renderers;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
    * xmlns:resources=&amp;quot;clr-namespace:UBIK.MAUI.Resources;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
    * xmlns:services=&amp;quot;clr-namespace:UBIK.MAUI.Services;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
    * xmlns:uiservices=&amp;quot;clr-namespace:UBIK.UI.Services;assembly=UBIK.UI&amp;quot;.&lt;br /&gt;
* But we don't know if other namespaces might be used in the custom templates. So it might be necessary to really analyze the namespaces used and find/copy them from the UBIKThemes file.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! &amp;amp;nbsp; !! Templates !! &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| UBIKMainItem || UBIKChildItem || UBIKTaskItem&lt;br /&gt;
|-&lt;br /&gt;
| UBIKTaskProperty || UBIKTaskPropertyString || UBIKTaskPropertyDouble&lt;br /&gt;
|-&lt;br /&gt;
| UBIKTaskPropertyInt || UBIKTaskPropertyNumeric || UBIKTaskPropertyDateTime&lt;br /&gt;
|-&lt;br /&gt;
| UBIKTaskPropertyGeoData || UBIKTaskPropertyBool || UBIKTaskPropertyPopup&lt;br /&gt;
|-&lt;br /&gt;
| UBIKTaskPropertyList || UBIKTaskPropertyGuid || UBIKPropertyItem&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyTextLengthHint || UBIKPropertyDirectEditButtons || UBIKTaskPropertyEditButtons&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyDirectItemString || UBIKPropertyDirectItemDouble || UBIKPropertyDirectItemInt&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyDirectItemMinMax || UBIKPropertyDirectItemNumeric || UBIKPropertyDirectItemDateTime&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyDirectItemGeoData || UBIKPropertyDirectItemBool || UBIKPropertyDirectItemPopup&lt;br /&gt;
|-&lt;br /&gt;
| UBIKPropertyDirectItemList || UBIKPropertyDirectItemGuid || UBIKDocumentItem&lt;br /&gt;
|-&lt;br /&gt;
| UBIKSearchResultItem || UBIKDefaultHotSpot || UBIKAngularLinkHotSpot&lt;br /&gt;
|-&lt;br /&gt;
| UBIKRoundLinkHotSpot || UBIKInputHotSpot || UBIKSignatureHotSpot&lt;br /&gt;
|-&lt;br /&gt;
| UBIKObjectHotSpot || UBIKMediaHotSpot || &lt;br /&gt;
|}&lt;br /&gt;
=== VideoPlayer Adjustments ===&lt;br /&gt;
'''This property is repsonsible for the video player regarding how or if it should get scaled up depending on the value of the&lt;br /&gt;
Aspect property'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;VideoPlayer...&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;VideoPlayer Aspect=&amp;quot;AspectFit&amp;quot;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''The UriToVideoSourceConverter is no longer needed because the conversion of the &lt;br /&gt;
VideoSource gets done by the MediaElement itself. It is marked as obsolete and should therefore no longer be used.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:VideoPlayer... Source=&amp;quot;{Binding DocumentViewModel.LocalURI, Converter={StaticResource UriToVideoSource}}&amp;quot;/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:VideoPlayer... Source=&amp;quot;{Binding DocumentViewModel.LocalURI}&amp;quot;/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''The StopTimer property is obsolete and no longer needed because the MediaElement behind does the Stop of the VideoPlayer&lt;br /&gt;
by itself.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:VideoPlayer... StopTimer=&amp;quot;{Binding Unloaded}&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:VideoPlayer... /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
=== SearchBar Style Fix on iOS ===&lt;br /&gt;
'''On iOS, defining a transparent background for the SearchBar control results in a black text on black background appearance.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;[issue on iOS only] UBIKThemes: SearchBar style: &amp;lt;Setter Property=&amp;quot;BackgroundColor&amp;quot; Value=&amp;quot;Transparent&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;Delete this setter&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Remove TapGestureRecognizer from Main Item ===&lt;br /&gt;
'''Swiping on the Main items was broken by Maui (Documented in Information). The workaround is to remove the TapGestureRecognizer from UBIKMainItem, and add ListView-based navigation similar to that found in UBIKChildArea (with an extended binding path for technical reasons).'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;(In UBIKMainItem)&lt;br /&gt;
&amp;lt;Grid.GestureRecognizers&amp;gt;&lt;br /&gt;
	&amp;lt;TapGestureRecognizer Command=&amp;quot;{Binding NavigateToChildrenCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Grid.GestureRecognizers&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;[nothing]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
=== Add Navigation Behavior in Child Area ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;(In UBIKChildArea)&lt;br /&gt;
[nothing]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;controls:SfListViewExt.Behaviors&amp;gt;&lt;br /&gt;
	&amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;ItemTapped&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding AppStatus.RootList.Items[0].NavigateToChildrenCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
	&amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt.Behaviors&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
== Highly Recommended ==&lt;br /&gt;
=== CircularImage to AvatarView ===  &lt;br /&gt;
'''Use AvatarView instead of CircularImage.'''  &lt;br /&gt;
CircularImage and its wrapping Frame are no longer needed. Use AvatarView from the MAUI Community Toolkit. Add the namespace:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
xmlns:toolkit=&amp;quot;http://schemas.microsoft.com/dotnet/2022/maui/toolkit&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;Frame&amp;gt;&amp;lt;CircularImage Source=&amp;quot;...&amp;quot; /&amp;gt;&amp;lt;/Frame&amp;gt;&lt;br /&gt;
| &amp;lt;toolkit:AvatarView ImageSource=&amp;quot;...&amp;quot; BorderWidth=&amp;quot;...&amp;quot; BackgroundColor=&amp;quot;...&amp;quot; /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== GlyphSize to FontSize and Alignment ===  &lt;br /&gt;
'''Use FontSize and alignment properties instead of GlyphSize.'''  &lt;br /&gt;
The GlyphSize property is obsolete. Use FontSize and add alignment properties for better layout.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;Setter Property=&amp;quot;GlyphSize&amp;quot; Value=&amp;quot;13.0&amp;quot; /&amp;gt;&lt;br /&gt;
| &amp;lt;Setter Property=&amp;quot;FontSize&amp;quot; Value=&amp;quot;16&amp;quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;Setter Property=&amp;quot;VerticalOptions&amp;quot; Value=&amp;quot;Center&amp;quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;Setter Property=&amp;quot;HorizontalOptions&amp;quot; Value=&amp;quot;Center&amp;quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;Setter Property=&amp;quot;VerticalTextAlignment&amp;quot; Value=&amp;quot;Center&amp;quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;Setter Property=&amp;quot;HorizontalTextAlignment&amp;quot; Value=&amp;quot;Center&amp;quot; /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== StaticResource to DynamicResource ===  &lt;br /&gt;
'''Use DynamicResource and BaseResourceKey.'''  &lt;br /&gt;
For dynamic theming, use DynamicResource instead of StaticResource. When inheriting styles, use BaseResourceKey.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| BasedOn=&amp;quot;{StaticResource SomeStyle}&amp;quot;&lt;br /&gt;
| BaseResourceKey=&amp;quot;SomeStyle&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Style=&amp;quot;{StaticResource SomeStyle}&amp;quot;&lt;br /&gt;
| Style=&amp;quot;{DynamicResource SomeStyle}&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UBIKPropertyDirectEditListPopup and Guid link direct editing ===&lt;br /&gt;
We have changed the way the content item template is defined and used in UBIKPropertyDirectEditListPopup, which is used in the direct editing of Guid link properties. This change aims to simplify the template and is also due to the fact that the old approach has a poor performance in the new MAUI app.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;DataTemplate x:Key=&amp;quot;PopupFilterQueryItemTemplate&amp;quot;&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
|| &lt;br /&gt;
The DataTemplate &amp;quot;PopupFilterQueryItemTemplate&amp;quot; is no longer needed and should be removed.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;FilterQueryResultList&amp;quot;&lt;br /&gt;
    ...&lt;br /&gt;
    ItemTemplate=&amp;quot;{StaticResource PopupFilterQueryItemTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
    x:Name=&amp;quot;FilterQueryResultList&amp;quot;&lt;br /&gt;
    ...&lt;br /&gt;
    ItemTemplate=&amp;quot;{Binding [UBIKChildItem], Source={x:Static services:TemplateService.Instance}}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;controls:SfListViewExt.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:EventHandlerBehavior EventName=&amp;quot;ItemTapped&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding SetPropertyValueCommand}&amp;quot; Converter=&amp;quot;{StaticResource ItemTappedEventArgsToViewModelConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;behaviors:InvokeCommandAction Command=&amp;quot;{Binding ConfirmEditCommand}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/behaviors:EventHandlerBehavior&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:SfListViewExt.Behaviors&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfListViewExt&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
In comparison, the old solution defines a &amp;quot;PopupFilterQueryItemTemplate&amp;quot; DataTemplate which simply wraps the needed selection related behaviors to the existing &amp;quot;UBIKChildItem&amp;quot; template. The new solution reuses the &amp;quot;UBIKChildItem&amp;quot; template directly and add the same but adapted behaviors to the list view instead.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UBIKTabView ===&lt;br /&gt;
We have adapted our UBIKTabView for MAUI so that, when used in combination with a UBIKContentView or ContentControl, it now supports lazy loading. This results in a performance boost because the contents of non-selected tabs are no longer rendered in the UI automatically unless the tab is explicitly selected by the user. Therefore, the LazyLoading property should be set to true for tabs that are not the “default” tabs—i.e., tabs that are not initially selected when a page is opened (Property or Document tabs).&lt;br /&gt;
&lt;br /&gt;
Add the following namespace to use the UBIKTabView:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
xmlns:controls=&amp;quot;clr-namespace:UBIK.MAUI.Controls;assembly=UBIK.MAUI&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabView&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
        &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
            &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
        &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
            &amp;lt;ContentView Content=&amp;quot;{Binding [UBIKPropertyArea], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
        &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
            &amp;lt;ContentView Content=&amp;quot;{Binding [UBIKDocumentArea], Source={x:Static services:TemplateService.Instance}}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&amp;lt;/tabView:SfTabView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt; &lt;br /&gt;
&amp;lt;controls:UBIKTabView&lt;br /&gt;
    x:Name=&amp;quot;ContentTabs&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource TabViewBaseStyle}&amp;quot;&lt;br /&gt;
    TabHeaderPadding=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;controls:UBIKTabView.Items&amp;gt;&lt;br /&gt;
        &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
            &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
                &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; &lt;br /&gt;
                Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
            &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
                &amp;lt;controls:UBIKContentView&lt;br /&gt;
                    Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot;&lt;br /&gt;
                    ConverterParameter=&amp;quot;UBIKPropertyArea&amp;quot;&lt;br /&gt;
                    LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;tabView:SfTabItem&amp;gt;&lt;br /&gt;
            &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
                &amp;lt;controls:UBIKContentView&lt;br /&gt;
                    Converter=&amp;quot;{StaticResource TemplateConverter}&amp;quot;&lt;br /&gt;
                    ConverterParameter=&amp;quot;UBIKDocumentArea&amp;quot;&lt;br /&gt;
                    LazyLoading=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:UBIKTabView.Items&amp;gt;&lt;br /&gt;
&amp;lt;/controls:UBIKTabView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
&lt;br /&gt;
== Mandatory ==&lt;br /&gt;
&lt;br /&gt;
=== Namespace conversion ===  &lt;br /&gt;
'''Update all namespaces to MAUI equivalents.'''  &lt;br /&gt;
All `xmlns` and `clr-namespace` declarations must be updated to their MAUI counterparts.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| xmlns=&amp;quot;http://xamarin.com/schemas/2014/forms&amp;quot;&lt;br /&gt;
| xmlns=&amp;quot;http://schemas.microsoft.com/dotnet/2021/maui&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core&lt;br /&gt;
| clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific;assembly=Microsoft.Maui.Controls&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Behaviors;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Behaviors;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Classes;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Classes;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Controls;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Converters;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Converters;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Platform.Renderers;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Platform.Controls;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Services;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Services;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.CPL.Resources;assembly=UBIK.CPL&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Resources;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:UBIK.Scanning.Forms;assembly=UBIK.Scanning.Forms&lt;br /&gt;
| clr-namespace:UBIK.MAUI.Controls.ZXingScanner;assembly=UBIK.MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.SfPullToRefresh.XForms;assembly=Syncfusion.SfPullToRefresh.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.PullToRefresh;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.XForms.TabView;assembly=Syncfusion.SfTabView.Xforms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.TabView;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.ListView;assembly=Syncfusion.Maui.ListView&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.XForms.TreeView;assembly=Syncfusion.SfTreeView.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.TreeView;assembly=Syncfusion.Maui.TreeView&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.XForms.TextInputLayout;assembly=Syncfusion.Core.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.SfChart.XForms;assembly=Syncfusion.SfChart.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.Charts;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For classes referenced in the XAML code, please don't forget to also replace &amp;quot;CPL&amp;quot; with &amp;quot;MAUI&amp;quot; in the class namespace.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Syncfusion control updates ===&lt;br /&gt;
'''There are some other properties that have changed their names on SfListView/SfListViewExt. We don't use them in our standard XAMLs. But if you use them in customizings, please refer to https://help.syncfusion.com/maui/listview/migration for the complete list.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
SfListViewExt:&lt;br /&gt;
    * ItemHolding&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| ItemLongPress&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Syncfusion control updates ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| * LeftSwipeTemplate, RightSwipeTemplate&lt;br /&gt;
| StartSwipeTemplate, EndSwipeTemplate&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Layout name change ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
* &amp;lt;sync:SfListView.LayoutManager&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sync:SfListView.ItemsLayout&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TemplateService binding for extracted templates ===&lt;br /&gt;
'''1. We need to add the following namespace where the changes are applied:&lt;br /&gt;
xmlns:services=&amp;quot;clr-namespace:UBIK.MAUI.Services;assembly=UBIK.MAUI&amp;quot;;&lt;br /&gt;
2. We need to search for both &amp;quot;StaticResource&amp;quot; and &amp;quot;DynamicResource&amp;quot;;&lt;br /&gt;
3. We only listed some examples here. But the same rule applies to all those templates exacted from UBIKThemes (see the first &amp;quot;Recommended&amp;quot; point).'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| {StaticResource UBIKChildItem}&lt;br /&gt;
| {Binding [UBIKChildItem], Source={x:Static services:TemplateService.Instance}}&lt;br /&gt;
|-&lt;br /&gt;
| {StaticResource UBIKDocumentItem}&lt;br /&gt;
| {Binding [UBIKDocumentItem], Source={x:Static services:TemplateService.Instance}}&lt;br /&gt;
|-&lt;br /&gt;
| {StaticResource UBIKMainItem}&lt;br /&gt;
| {Binding [UBIKMainItem], Source={x:Static services:TemplateService.Instance}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== OnPlatform and OnIdiom syntax changes ===&lt;br /&gt;
'''All code containing the OnPlatform and OnIdiom functionalities needs to be refactored as the syntax has changed.'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
! style=&amp;quot;width:7%&amp;quot; | Notes&lt;br /&gt;
|-&lt;br /&gt;
| OnPlatform&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;TheControl&lt;br /&gt;
        ...&lt;br /&gt;
        TheProperty=&amp;quot;{OnPlatform Android=False, iOS=True}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;TheControl&lt;br /&gt;
     ...&lt;br /&gt;
     TheProperty=&amp;quot;{OnPlatform Android={Binding ...}, iOS={Binding ...}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | It is recommended to use the inline syntax as a default wherever possible, but there are also other approaches.&lt;br /&gt;
When using Bindings, Resources, or other complex values in OnIdiom or OnPlatform values, it should '''only''' be used with the inline syntax.&lt;br /&gt;
|-&lt;br /&gt;
| OnIdiom&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;TheControl&lt;br /&gt;
        ...&lt;br /&gt;
        TheProperty=&amp;quot;{OnIdiom Phone=False, Desktop=True}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;TheControl&lt;br /&gt;
     ...&lt;br /&gt;
     TheProperty=&amp;quot;{OnIdiom Desktop={Binding ...}, Phone={Binding ...}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
e.g.&lt;br /&gt;
&amp;lt;ColumnDefinition.Width&amp;gt;&lt;br /&gt;
   &amp;lt;OnIdiom&lt;br /&gt;
        ...&lt;br /&gt;
        Desktop=&amp;quot;Auto&amp;quot;&lt;br /&gt;
        Phone=&amp;quot;*&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/ColumnDefinition.Width&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;RowDefinition.Height&amp;gt;&lt;br /&gt;
   &amp;lt;OnPlatform&lt;br /&gt;
        ...&lt;br /&gt;
        Android=&amp;quot;Auto&amp;quot;&lt;br /&gt;
        iOS=&amp;quot;*&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/RowDefinition.Height&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ColumnDefinition Width=&amp;quot;{OnIdiom Desktop='Auto', Phone='*'}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;RowDefinition Height=&amp;quot;{OnPlatform Android='Auto', iOS='*'}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| When using GridLength as a type (e.g,. in ColumnDefinition.Width or RowDefinition.Height) in OnIdiom or OnPlatform, it should '''only''' be used with the inline syntax.&lt;br /&gt;
|-&lt;br /&gt;
| WinPhone&lt;br /&gt;
| WinUI&lt;br /&gt;
| In the scope of any OnPlatform/On Platform, WinPhone needs to be replaced with WinUI.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
⚠️ Please refer to the wiki for more details and possibilities (e.g., if the value contains multiple elements): [https://wiki.augmensys.com/index.php?title=XAML_Tips#Platform_and_Device-specific_UI_with_OnPlatform_and_OnIdiom Platform and Device-specific UI with OnPlatform and OnIdiom].&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
&lt;br /&gt;
=== Remove default ControlTemplate ===&lt;br /&gt;
'''The default ControlTemplate should be removed from the ContentView if the ControlTemplate property of that ContentView is determined by DataTriggers. The same applies to ContentControls. The default ContentTemplate should be removed from the controls:ContentControl if the ContentTemplate property of that ContentControl is determined by DataTriggers.'''&lt;br /&gt;
Using only DataTriggers without a default ControlTemplate ensures that content is created only after the trigger evaluation is complete. If a default ControlTemplate is set, it is always loaded immediately, even if another template is applied right after.&lt;br /&gt;
For more details refer to [[Xamarin_XAML#Conflicting_Triggers|Conflicting Triggers]].&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;containerName&amp;quot; ControlTemplate=&amp;quot;{StaticResource YourTemplate}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger&lt;br /&gt;
            Binding=&amp;quot;{Binding Source={x:Reference containerName}, Path=...}&amp;quot;&lt;br /&gt;
            TargetType=&amp;quot;ContentView&amp;quot;&lt;br /&gt;
            Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot;&lt;br /&gt;
                    Value=&amp;quot;{StaticResource YourTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
        ...&lt;br /&gt;
    &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView x:Name=&amp;quot;containerName&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger&lt;br /&gt;
            Binding=&amp;quot;{Binding Source={x:Reference containerName}, Path=...}&amp;quot;&lt;br /&gt;
            TargetType=&amp;quot;ContentView&amp;quot;&lt;br /&gt;
            Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot;&lt;br /&gt;
                    Value=&amp;quot;{StaticResource YourTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
        ...&lt;br /&gt;
    &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Remove HeadlessLayout style ===&lt;br /&gt;
'''This Style has no longer any effect in MAUI and even degrades app performance. We are keeping it in our standard UBIKThemes under the Obsolete section to maintain backward compatibility.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Style x:Key=&amp;quot;HeadlessLayout&amp;quot; TargetType=&amp;quot;Layout&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;CompressedLayout.IsHeadless&amp;quot; Value=&amp;quot;{OnPlatform False, Android=True}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| Delete it from your custom UBIKThemes file&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Additional mandatory rule ===&lt;br /&gt;
'''In the customizings, however, it can and should be removed entirely, as it negatively affects performance, as mentioned before. To remove the style, you can simply use VS Code or any other editor with a search function and look through all custom .xaml files for usages of {StaticResource HeadlessLayout} or {DynamicResource HeadlessLayout}. These references should be removed from the respective elements or controls.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView&lt;br /&gt;
    Grid.Column=&amp;quot;2&amp;quot;&lt;br /&gt;
    ControlTemplate=&amp;quot;{DynamicResource ChildCountBadge}&amp;quot;&lt;br /&gt;
    HorizontalOptions=&amp;quot;Start&amp;quot;&lt;br /&gt;
    Style=&amp;quot;{DynamicResource HeadlessLayout}&amp;quot;&lt;br /&gt;
    VerticalOptions=&amp;quot;Start&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView&lt;br /&gt;
    Grid.Column=&amp;quot;2&amp;quot;&lt;br /&gt;
    ControlTemplate=&amp;quot;{DynamicResource ChildCountBadge}&amp;quot;&lt;br /&gt;
    HorizontalOptions=&amp;quot;Start&amp;quot;&lt;br /&gt;
    VerticalOptions=&amp;quot;Start&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Rename progress colors ===&lt;br /&gt;
'''Renamed in Maui.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| ProgressBackgroundColor, ProgressStrokeColor&lt;br /&gt;
| ProgressBackground, ProgressColor&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Rename Default Font Name  ===&lt;br /&gt;
'''The name of the default font was slightly renamed in the UBIKThemes file in MAUI — the first letter now needs to be capitalized. Otherwise, on iOS, bold or italic styles are not applied correctly, and changing a property in Direct Editing, for example, would result in no visible change.'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;x:String x:Key=&amp;quot;TextFontFamily&amp;quot;&amp;gt;inter&amp;lt;/x:String&amp;gt;&lt;br /&gt;
| &amp;lt;x:String x:Key=&amp;quot;TextFontFamily&amp;quot;&amp;gt;Inter&amp;lt;/x:String&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Chart control updates ===&lt;br /&gt;
'''The Title, Legend, and Zoom &amp;amp; Pan behavior syntax of the Chart control have changed. Further, some SyncFusion Chart components &amp;amp; Properties have changed.'''&lt;br /&gt;
&amp;lt;br&amp;gt;⚠️ For more information and examples about changed SyncFusion Chart components &amp;amp; Properties, please refer to the [https://help.syncfusion.com/maui/cartesian-charts/overview Syncfusion Maui Charts documentation]. For more info on how to customize a chart, refer to [[Charts#Mobile_Chart_Customizing|Mobile Chart Customizing]].&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;chart:SfChart.Title&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartTitle Text=&amp;quot;{Binding Header}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/chart:SfChart.Title&amp;gt;&lt;br /&gt;
&amp;lt;chart:SfChart.Legend&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartLegend /&amp;gt;&lt;br /&gt;
&amp;lt;/chart:SfChart.Legend&amp;gt;&lt;br /&gt;
&amp;lt;chart:SfChart.ChartBehaviors&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartZoomPanBehavior /&amp;gt;&lt;br /&gt;
&amp;lt;/chart:SfChart.ChartBehaviors&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;chart:NumericalStripLine&lt;br /&gt;
    Width=&amp;quot;2&amp;quot;&lt;br /&gt;
    StrokeColor=&amp;quot;{Binding Color, Converter={StaticResource IntToColor}}&amp;quot;&lt;br /&gt;
    IsPixelWidth=&amp;quot;True&amp;quot;&lt;br /&gt;
    StrokeWidth=&amp;quot;5&amp;quot;&lt;br /&gt;
    Start=&amp;quot;{Binding Value}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;chart:FastLineSeries                    &lt;br /&gt;
    ItemsSource=&amp;quot;{Binding Items}&amp;quot;&lt;br /&gt;
    Label=&amp;quot;{Binding Name}&amp;quot;&lt;br /&gt;
    Color=&amp;quot;{Binding Color, Converter={StaticResource IntToColor}}&amp;quot;&lt;br /&gt;
    XBindingPath=&amp;quot;XValue&amp;quot;&lt;br /&gt;
    YBindingPath=&amp;quot;YValue&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfChartExt.Title&amp;gt;&lt;br /&gt;
    &amp;lt;Label Text=&amp;quot;{Binding Header}&amp;quot; HorizontalOptions=&amp;quot;Center&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfChartExt.Title&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfChartExt.Legend&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartLegend /&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfChartExt.Legend&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfChartExt.ZoomPanBehavior&amp;gt;&lt;br /&gt;
    &amp;lt;chart:ChartZoomPanBehavior /&amp;gt;&lt;br /&gt;
&amp;lt;/controls:SfChartExt.ZoomPanBehavior&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;chart:NumericalPlotBand&lt;br /&gt;
    StrokeWidth=&amp;quot;2&amp;quot;&lt;br /&gt;
    Stroke=&amp;quot;{Binding Color, Converter={StaticResource IntToColor}}&amp;quot;&lt;br /&gt;
    Start=&amp;quot;{Binding Value}&amp;quot;&lt;br /&gt;
    End=&amp;quot;{Binding Value}&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;chart:FastLineSeries                    &lt;br /&gt;
    ItemsSource=&amp;quot;{Binding Items}&amp;quot;&lt;br /&gt;
    Label=&amp;quot;{Binding Name}&amp;quot;&lt;br /&gt;
    Fill=&amp;quot;{Binding Color, Converter={StaticResource IntToColor}}&amp;quot;&lt;br /&gt;
    XBindingPath=&amp;quot;XValue&amp;quot;&lt;br /&gt;
    YBindingPath=&amp;quot;YValue&amp;quot;&lt;br /&gt;
    StrokeWidth=&amp;quot;2&amp;quot;&lt;br /&gt;
    EnableAntiAliasing=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
&lt;br /&gt;
== SfTabView ==&lt;br /&gt;
&lt;br /&gt;
=== Namespace Update ===&lt;br /&gt;
'''Update Syncfusion TabView namespace.'''&lt;br /&gt;
Replace the Xamarin namespace with the MAUI equivalent.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.XForms.TabView;assembly=Syncfusion.SfTabView.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.TabView;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Remove Obsolete Converters ===&lt;br /&gt;
'''Remove ItemCountToBoolConverter from Resources.'''&lt;br /&gt;
This converter is no longer usable in TabView headers.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;converters:ItemCountToBoolConverter x:Key=&amp;quot;ItemCountToBool&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| [remove]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Add StringFormatConverter ===&lt;br /&gt;
'''Use StringFormatConverter for combined header strings.'''&lt;br /&gt;
Syncfusion MAUI TabView uses a single `Header` property instead of templates.&lt;br /&gt;
For all tab headers, formatters should be specified to assemble the text. As a best practice, even for simple header strings.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| [template-based header]&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;converters:StringFormatConverter x:Key=&amp;quot;ChildrenTabFormatter&amp;quot; Parameter1=&amp;quot;{resources:Translate ChildrenTitle}&amp;quot; /&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In the above example, a previously defined formatter (that must be also added to the resource dictionary) is used to fill in the header attribute value.&lt;br /&gt;
⚠️ Avoid using bindings in `Parameter1` and `Parameter2` — use static strings only. For complex cases, use `EvalExpression`.&lt;br /&gt;
&lt;br /&gt;
=== FontImageSource Styling ===&lt;br /&gt;
'''Add local style for FontImageSource.'''&lt;br /&gt;
Global styles are not supported.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| [global FontImageSource style]&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Style TargetType=&amp;quot;FontImageSource&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;Setter Property=&amp;quot;FontFamily&amp;quot; Value=&amp;quot;{DynamicResource UBIKSymbols}&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;Setter Property=&amp;quot;Color&amp;quot; Value=&amp;quot;{DynamicResource UBIKLightThemeColor}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Style&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TabView Structure ===&lt;br /&gt;
'''Use Grid to wrap TabView.'''&lt;br /&gt;
MAUI TabView requires a different structure and property set.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tabView:SfTabView VisibleHeaderCount=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
  ...&lt;br /&gt;
&amp;lt;/tabView:SfTabView&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid&amp;gt;&lt;br /&gt;
  &amp;lt;tabView:SfTabView&amp;gt;&lt;br /&gt;
    &amp;lt;tabView:SfTabItem Header=&amp;quot;string example header&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;tabView:SfTabItem.ImageSource&amp;gt;&lt;br /&gt;
        &amp;lt;FontImageSource Glyph=&amp;quot;{x:Static resources:UBIKIcons.XXX}&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/tabView:SfTabItem.ImageSource&amp;gt;&lt;br /&gt;
      &amp;lt;tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
        &amp;lt;controls:UBIKContentView x:Name=&amp;quot;ChildContainer&amp;quot; Converter=&amp;quot;{StaticResource ChildAreaTemplateConverter}&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/tabView:SfTabItem.Content&amp;gt;&lt;br /&gt;
    &amp;lt;/tabView:SfTabItem&amp;gt;&lt;br /&gt;
  &amp;lt;/tabView:SfTabView&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Property Changes ===&lt;br /&gt;
'''Update renamed or removed properties.'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| VisibleHeaderCount&lt;br /&gt;
| [not available yet]&lt;br /&gt;
|-&lt;br /&gt;
| UBIKCenterButtonSettings&lt;br /&gt;
| CenterButtonSettings&lt;br /&gt;
|-&lt;br /&gt;
| SelectionIndicatorSettings&lt;br /&gt;
| IndicatorPlacement, IndicatorStrokeThickness, IndicatorBackground&lt;br /&gt;
|-&lt;br /&gt;
| SelectionColor&lt;br /&gt;
| Use VisualStateManager instead&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
⚠️ Refer to [https://help.syncfusion.com/maui/tabview/migration Syncfusion migration guide] for full property list.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== SfPullToRefresh ==&lt;br /&gt;
&lt;br /&gt;
'''It is recommended to get rid of all SfPullToRefresh controls due to some issues that might occur.''' For more information refer to [[Mobile_XAML#Issues_with_SfPullToRefresh_in_MAUI|this article]]. In our Maui standard client, the PullToRefresh control has already been replaced by a Refresh button in the Context Menu, so there's no need for a custom Refresh button.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt&lt;br /&gt;
            .../&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
&amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:SfListViewExt&lt;br /&gt;
     .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
⚠️ '''If SfPullToRefresh is still required, the following points should be considered.'''&lt;br /&gt;
&lt;br /&gt;
=== Namespace Update ===&lt;br /&gt;
'''Update Syncfusion TabView namespace.'''&lt;br /&gt;
Replace the Xamarin namespace with the MAUI equivalent.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| clr-namespace:Syncfusion.SfPullToRefresh.XForms;assembly=Syncfusion.SfPullToRefresh.XForms&lt;br /&gt;
| clr-namespace:Syncfusion.Maui.Toolkit.PullToRefresh;assembly=Syncfusion.Maui.Toolkit&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Rename SfPullToRefresh properties ===&lt;br /&gt;
'''Renamed in Maui, however, currently these properties cause an issue and should not be included in customizings.'''&lt;br /&gt;
SfPullToRefresh:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| RefreshContentHeight, RefreshContentWidth&lt;br /&gt;
| RefreshViewHeight, RefreshViewWidth&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Avoid multiple SfPullToRefresh controls ===&lt;br /&gt;
'''To prevent an issue that causes the app to freeze, avoid placing more than one SfPullToRefresh controls as siblings in a xaml hierarchy'''. If switching between contents in a SfPullToRefresh control is necessary use separate DataTemplates for the contents and use e.g. a DataTrigger to set one of them as the ControlTemplate of a ContentControl inside the SfPullToRefresh control.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pullToRefresh:SfPullToRefresh IsVisible = {Binding ShowContentB, Converter={StaticResource BoolToNotBool}}&amp;gt;&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt&lt;br /&gt;
            x:Name=&amp;quot;ContentA&amp;quot;&lt;br /&gt;
            .../&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
&amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pullToRefresh:SfPullToRefresh  IsVisible = {Binding ShowContentB}&amp;gt;&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt&lt;br /&gt;
            x:Name=&amp;quot;ContentB&amp;quot;&lt;br /&gt;
            .../&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
&amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid&amp;gt;&lt;br /&gt;
    &amp;lt;Grid.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;DataTemplate x:Key=&amp;quot;TemplateA&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;controls:SfListViewExt&lt;br /&gt;
                    x:Name=&amp;quot;ContentA&amp;quot;&lt;br /&gt;
                    .../&amp;gt;&lt;br /&gt;
            &amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
            &amp;lt;DataTemplate x:Key=&amp;quot;TemplateB&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;controls:SfListViewExt&lt;br /&gt;
                    x:Name=&amp;quot;ContentB&amp;quot;&lt;br /&gt;
                    .../&amp;gt;&lt;br /&gt;
            &amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/Grid.Resources&amp;gt;&lt;br /&gt;
   &amp;lt;pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
       &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
           &amp;lt;controls:ContentControl&amp;gt;&lt;br /&gt;
               &amp;lt;controls:ContentControl.Triggers&amp;gt;&lt;br /&gt;
                   &amp;lt;DataTrigger&lt;br /&gt;
                       Binding=&amp;quot;{Binding ShowContentB}}&amp;quot;&lt;br /&gt;
                       TargetType=&amp;quot;controls:ContentControl&amp;quot;&lt;br /&gt;
                       Value=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
                       &amp;lt;Setter Property=&amp;quot;ContentTemplate&amp;quot; Value=&amp;quot;{DynamicResource TemplateA}&amp;quot; /&amp;gt;&lt;br /&gt;
                   &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
                   &amp;lt;DataTrigger&lt;br /&gt;
                       Binding=&amp;quot;{Binding ShowContentB}}&amp;quot;&lt;br /&gt;
                       TargetType=&amp;quot;controls:ContentControl&amp;quot;&lt;br /&gt;
                       Value=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
                       &amp;lt;Setter Property=&amp;quot;ContentTemplate&amp;quot; Value=&amp;quot;{DynamicResource TemplateB}&amp;quot; /&amp;gt;&lt;br /&gt;
                   &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
               &amp;lt;/controls:ContentControl.Triggers&amp;gt;&lt;br /&gt;
           &amp;lt;/controls:ContentControl&amp;gt;&lt;br /&gt;
       &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Avoid using SyncFusion ListViews directly in SfPullToRefresh controls ===&lt;br /&gt;
'''To prevent an issue on some Android devices that can cause some items in a SfListViewExt to be rendered incorrectly or not at all after triggering a PullToRefresh, avoid placing a SfListViewExt directly in a SfPullToRefresh control'''.&lt;br /&gt;
Instead, wrap the ListView in a DataTemplate and use it in a ContentControl as a child of the SfPullToRefresh control, as shown in the Xaml example below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Xamarin&lt;br /&gt;
! MAUI&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
        &amp;lt;controls:SfListViewExt&lt;br /&gt;
            .../&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
&amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid&amp;gt;&lt;br /&gt;
    &amp;lt;Grid.Resources&amp;gt;&lt;br /&gt;
        &amp;lt;ResourceDictionary&amp;gt;&lt;br /&gt;
            &amp;lt;DataTemplate x:Key=&amp;quot;ListViewTemplate&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;controls:SfListViewExt&lt;br /&gt;
                    .../&amp;gt;&lt;br /&gt;
            &amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
        &amp;lt;/ResourceDictionary&amp;gt;&lt;br /&gt;
    &amp;lt;/Grid.Resources&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
       &amp;lt;pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
           &amp;lt;controls:ContentControl ContentTemplate=&amp;quot;{DynamicResource ListViewTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
       &amp;lt;/pullToRefresh:SfPullToRefresh.PullableContent&amp;gt;&lt;br /&gt;
    &amp;lt;/pullToRefresh:SfPullToRefresh&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-To|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]&lt;br /&gt;
[[Category:XAML|Convert Xamarin XAMLs to Maui]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=XAML_Best_practices&amp;diff=29224</id>
		<title>XAML Best practices</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=XAML_Best_practices&amp;diff=29224"/>
				<updated>2025-12-04T10:36:43Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article recommends approaches to customizing and troubleshooting your UBIK custom UIs. &lt;br /&gt;
To learn about the fundamentals of XAML, check out our article [[XAML_Basics]].&lt;br /&gt;
&lt;br /&gt;
The most important specific Best Practices are marked with a 🏆&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== Conventions ==&lt;br /&gt;
Conventions are ‘rules’ that make our xamls collectively readable and shareable. By aiming to construct our xaml files in a similar style, we reduce the effort required by others to read and understand our work. This section includes guidelines on how to name controls, and how to internally organize your xaml files.&lt;br /&gt;
&lt;br /&gt;
=== Naming Conventions ===&lt;br /&gt;
 &amp;lt;Button x:Name=&amp;quot;SubmitFormButton&amp;quot; ... /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The x:Name is used to give a unique name for an object within a xaml file. It’s not valid in a ResourceDirectory (such as a style, template, etc, either defined within a xaml file, or in UBIKThemes), which requires using x:Key instead.&lt;br /&gt;
** Likewise there is a difference when referencing x:Name and x:Key elements.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;x:Name - UWP: ElementName=SubmitFormButton | Mobile(Xamarin): Source={x:Reference  SubmitFormButton}&lt;br /&gt;
 x:Key - Both: {StaticResource SubmitFormButtonStyle} or {DynamicResource SubmitFormButtonStyle}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* Use explicit language when giving a name or key, for example: “PropStkpnl” is not easily readable, but “PropertiesStackPanel” is. &lt;br /&gt;
* Furthermore, “FailureCodeExpression” does not describe the purpose of the expression, whereas “FailureCode_HasUnfilledFields” does. &lt;br /&gt;
** Naming it according to its purpose also makes it easier to use in xaml, such as when combining the result with a converter for an intended outcome (eg. An warning symbol visible when FailureCode_HasUnfilledFields is true). &lt;br /&gt;
* You '''do not''' have to name every object in your code, only if it is referred to by another element. However, sometimes adding names to controls helps a reader understand their intended function.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Formatting ===&lt;br /&gt;
&lt;br /&gt;
Formatting xamls properly is critical to others being able to quickly read and understand a customizing. &lt;br /&gt;
{{Hint|If you struggle to maintain nice formatting while writing your xaml code, you can find formatters that automatically such as Notepad++’s “Pretty Print” or VS Code’s “XAML Styler” plugins.}}&lt;br /&gt;
&lt;br /&gt;
==== Best Practices ====&lt;br /&gt;
&lt;br /&gt;
* x: Name or x: Key should come first.&lt;br /&gt;
* A control with up to 2 Attributes can be added in one line. If it has more than 2, they should be stacked over another for readability. &lt;br /&gt;
** Avoid using a formatter where the indentation matches the name of the control&lt;br /&gt;
[[File:Formatting_Indentation.jpg]]&lt;br /&gt;
&lt;br /&gt;
* Add controls in a Top-to-Bottom order in the xaml file. Additionally, try to add them in a Left-to-Right order.&lt;br /&gt;
** Controls in Grid.Row/Column 0 should be higher up in your xaml file than controls placed in other rows and columns.&lt;br /&gt;
&lt;br /&gt;
* Respect indentation of nested controls.&lt;br /&gt;
** Opening and closing tags should always begin in the same column. &lt;br /&gt;
** Controls nested inside them should begin exactly one column to the right. &lt;br /&gt;
** When pasting code snippets into your work, be sure to correct the differences in indentations.&lt;br /&gt;
&lt;br /&gt;
* Use Linebreaks mindfully.&lt;br /&gt;
** It is difficult to describe rules for how linebreaks should be used, but the general idea is to use them to group elements in your xaml file, and to show which controls are nested (no linebreaks) and which controls are 'siblings' (divided by linebreaks).&lt;br /&gt;
** ✔️Put linebreaks in between large sections of a UI definition (eg. between Grids or major elements of the page, or between content set on different Rows/Columns).&lt;br /&gt;
** ❌ Avoid linebreaks in the middle of smaller elements (eg. a stackpanel with 2 texts inside).&lt;br /&gt;
&lt;br /&gt;
* 🏆 '''Add comments.'''&lt;br /&gt;
** This is one of the most critical features of clear code, saving the reader from wasting time struggling to read the code, or even having to search and ask around. &lt;br /&gt;
** Use comments to describe the position, purpose, and function of every control.&lt;br /&gt;
** When maintain xamls according to a ticket, put the ticket number in a comment so a reader has access to background information on the change.&lt;br /&gt;
[[File:Formatting_Comments.jpg]].&lt;br /&gt;
&lt;br /&gt;
* Remove unnecessary code. Ensure everything included in your xaml has a purpose. This includes large sections of commented out code.&lt;br /&gt;
** This both makes the xaml clearer, but also improves performance by avoiding unnecessary loading and rendering effort.&lt;br /&gt;
** This is especially true when copying from other’s work. &lt;br /&gt;
** If you’re not sure if something is necessary, comment it out and see if your xaml still fulfils its function. If it works, remove it.&lt;br /&gt;
** [[XAML_Best_practices#Performance | Read more in the next section on Performance]].&lt;br /&gt;
&lt;br /&gt;
* 🏆 '''Empty out your UBIKThemes''' for every new customizing.&lt;br /&gt;
** When working in Mobile clients, it is recommended to empty out your UBIKThemes file (ie. delete everything between the &amp;lt;ResourceDictionary&amp;gt; tags) and only add what you intend to customize. &lt;br /&gt;
** Unfortunately, this approach is currently not 100% possible in UWP xamls, as we noticed that custom styles are not utilized on controls unless the controls are also in UBIKThemes, shown instead using the standard grey/orange. However, diligent customizers can find out how to do so below:  &amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Read More&amp;quot; data-collapsetext=&amp;quot;Close&amp;quot;&amp;gt; An issue with dynamically refreshing style resources causes emptying of UBIKThemes to be much more complicated on UWP than in Mobile.&amp;lt;br&amp;gt;This is because StaticResources are only updated once they are overwritten again in Themes. The most common symptom of this issue is that for example, if UBIKAccentColor is changed to blue, this customization will not be reflected by styles for any control defined in UBIKThemes, unless the styles are 'written' again in UBIKThemes. So in this example, the regular button hover state will remain orange, unless UBIKButtonStyle is included in the UBIKThemes of that project.&amp;lt;br&amp;gt;Therefore, the only approach we can recommend is to remove everything from UBIKThemes, and add styles back once they fail to reflect the customized color resources. Since this approach is impractical, we do not encourage emptying UBIKThemes for UPW as strongly as we do for Mobile.  &lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Organize UBIKThemes in sections. &lt;br /&gt;
** For example, standard UBIKThemes defines resources grouped into; Color resource / Size resources / Text styles / Button styles / etc&lt;br /&gt;
** In Mobile, keep Item Templates at the end of UBIKThemes.&lt;br /&gt;
** Either way, it is recommended to keep your UBIKThemes file as lean as possible (read the next point), as well as maintaining a grouping strategy. Use the tags &amp;lt;nowiki&amp;gt;&amp;lt;!--#region Example--&amp;gt;&amp;lt;/nowiki&amp;gt; and &amp;lt;nowiki&amp;gt;&amp;lt;!--#endregion--&amp;gt;&amp;lt;/nowiki&amp;gt; to define groups of content, for example &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!--#region Text Styles--&amp;gt;, &amp;lt;!--#region DataTemplates--&amp;gt;, or &amp;lt;!--#region Item Templates--&amp;gt;&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Performance ==&lt;br /&gt;
A basic rule is that '''more code = more to compile''', and this can decrease the performance of your whole application. To counter that, always attempt to reduce the amount of xaml customizing, especially if you find yourself repeating specific controls and attributes.&lt;br /&gt;
&lt;br /&gt;
=== Understanding Templating in UBIK ===&lt;br /&gt;
The most critical thing to understand about customizing your UI is that '''templates for the entire default UI are already present in the client’s core'''. Customizing templates allow us to modify of specific areas of the UI by overwriting the parts of the default UI with the same name. Therefore, only the specific xamls that need to be customized should be added. This is recommended for many reasons;&lt;br /&gt;
&lt;br /&gt;
* Custom xamls will ‘undo’ improvements to the UI coming from newer versions of the client, when they are based on xaml files from an older version of UBIK. For custom UIs there is no way around it, but this is why '''uncustomized copies of xamls should never be added to the project folder'''. To remove a customizing, simply delete that file. There is no need to replace it with an uncustomized version from the default folder.&lt;br /&gt;
* Less xaml files to parse means better performance.&lt;br /&gt;
* More xamls also makes it more difficult for others to read and understand the customizing. This also makes it much more difficult to find and diagnose errors when requesting support. It also generally increases the effort required to maintain the xamls.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check out the next section for a more in-depth look into [[XAML_Best_practices#Templating|Content Templating]].&lt;br /&gt;
&lt;br /&gt;
==== Best Practices ====&lt;br /&gt;
* 🏆 '''Deploy a new Default folder''' every time you update your client version, to ensure that the latest UI version is the foundation for your customizing.&lt;br /&gt;
* 🏆 '''Only include xamls that are needed for your customizing.'''&lt;br /&gt;
** Remove files for child Areas and Items that are not included in the project this customizing will be used for. This is especially relevant when copying customizings from other projects.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How to select the right Control ===&lt;br /&gt;
Controls often have similar functionality, making the question of which control to use highly ambiguous. &lt;br /&gt;
For clarity, a 'Control' refers to a single xaml object that can be added to your visual tree. These range in scope and purpose, from layouting (such as a Grid or StackPanel), to interactivity (such as a Button or TextBox), and everything in between (such as a ListView).&lt;br /&gt;
&lt;br /&gt;
So, how to choose the best control to meet your requirements?&lt;br /&gt;
&lt;br /&gt;
==== Best Practices ====&lt;br /&gt;
* 🏆 A good rule of thumb is to '''always use the least complex control possible'''. &lt;br /&gt;
** For example, there is no need to use a Filter + ListView to show a single UBIK object or property. Instead, you can bind the specific context of that object or property to a xaml control, and everything nested inside will inherit that binding context. This will be explained more in the section on [[XAML_Best_practices#Reusable_Templates|Reusable Templates]].&lt;br /&gt;
** Similarly, simple EvalExpressions can in many cases be replaced with [[XAML_Best_practices#Converters|Converters]].&lt;br /&gt;
** The Visibility attribute can be added to any control. '''There is no need to wrap any control in a Grid simply to apply a Visibility.''' The same goes for layouting attributes such as Grid.Row/Column.&lt;br /&gt;
* 🏆 When you need to show a collection of items such as ListView, '''always use our custom versions'''. These are UBIK-optimized for speed and performance.&lt;br /&gt;
** These are [[XAML_Tips#Version_3.7_.26_later|SelectionBoundListView]] on UWP and [[Xamarin_XAML#SfListViewExt|SfListViewExt]] on Mobile clients.&lt;br /&gt;
** Avoid using other item controls, or BindableLayouts, unless you are sure the performance impact will be negligible.&lt;br /&gt;
* Layouts:&lt;br /&gt;
** If you want to define a specific layout for a page, use a Grid with rows and columns.&lt;br /&gt;
** If things need to be positioned relative to each other, use a StackPanel/StackLayout.&lt;br /&gt;
** When defining Rows/Columns for a Grid, assign as few Auto size as possible, and avoid putting controls of unlimited size in an Auto Row.&lt;br /&gt;
** 🏆 '''Never nest controls of unrestricted size within controls of unlimited size.'''&lt;br /&gt;
*** To clarify: Some controls resize themselves based on their content and can be of unlimited size. One example is a StackPanel/StackLayout, when compared to a Grid, which is limited to the screen's size. On the other hand, some controls have an unrestricted size, such as ListView, ScrollView, etc.&lt;br /&gt;
*** Furthermore: ListViews require a fixed size in order to preserve [[XAML_Best_practices#Virtualization|virtualization]].&lt;br /&gt;
* Do not nest ScrollViews within other ScrollViews. &lt;br /&gt;
** Note that this includes '''any''' control with scrolling behavior, as these include a hidden built-in ScrollView. For example, never place a ListView or TreeView within a ScrollView.&lt;br /&gt;
* Nested ListViews involves using a ListView on the item template of an object already presented in a collection. For example, showing the children of a child object.&lt;br /&gt;
**  This is especially an issue in Mobile, both for performance, but also because sfListViewExt tends to cause layouting issues by taking up more space than needed, unlike in UWP where a ListViewExt is capable of calculating its size based on the size of its items. Therefore, when using nested ListViews in Mobile, constrain the size of the inner ListView with a fixed HeightRequest attribute (or WidthRequest in the case of a horizontal list).&lt;br /&gt;
** 🏆 '''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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using Styles and Templates ===&lt;br /&gt;
Attributes are the properties used to customize the controls in a UI. The number of attributes on each control can also contribute to having 'too much' code. Reducing the number of attributes will improve the overall performance of a customizing, especially on elements that appear multiple times in the UI,s such as items in a list. &lt;br /&gt;
&lt;br /&gt;
[[XAML_Best_practices#Templating|Custom templates]] can be used with the additional benefits of defining a uniform look for all similar elements, and reducing customizing effort by creating a central point where a reusable template can be maintained.&lt;br /&gt;
&lt;br /&gt;
==== Best Practices ====&lt;br /&gt;
* Do not re-define default attributes.&lt;br /&gt;
** All attributes have a default value. For example, Grid.Row=&amp;quot;0&amp;quot; is always true, unless specified. Use the Microsoft documentation to familiarize yourself with the default value for every property, and avoid rewriting them. &lt;br /&gt;
** If your control inherits an attribute from its style, do not rewrite the same attribute again.&lt;br /&gt;
*** If you find yourself adding the same attributes to a control with a style, consider moving the attribute to the style definition, or creating a substyle.&lt;br /&gt;
* Avoid repeatedly applying Margins to individual controls.&lt;br /&gt;
** The main layouting should not be done through Margins. Instead, try to use a combination of Grid.Row/Column definitions and Horizontal/Vertical alignments to create your layout, instead of applying many or very large Margins. &lt;br /&gt;
** For example, if you want to move every control within your Grid away from the edge, use a Padding on the Grid instead of Margins on each of the elements.&lt;br /&gt;
** If you want to move controls away from each other within the same container, use RowSpacing or ColumnSpacing on the Grid, or Spacing on the Stackpanel.&lt;br /&gt;
* 🏆 If you repeatedly define the same attributes on a control, '''create a style'''.&lt;br /&gt;
** If the repeated customizing is used in only one xaml, create a ResourceDictionary on the parent container and defining your style there. &lt;br /&gt;
** Otherwise, place your style in UBIKThemes so it can be accessed across the entire project.&lt;br /&gt;
** '''For more information, read the section on [[XAML_Best_practices#Implicit_and_Explicit_Styling|Implicit and Explicit Styling]] below.'''&lt;br /&gt;
* 🏆 If you repeatedly define the same combinations of controls, '''use Control/DataTemplates'''.&lt;br /&gt;
** DataTemplates and ControlTemplates are reusable XAML elements that can be defined once and applied several times throughout the customizing.&lt;br /&gt;
** You may have noticed that a DataTemplate is the basis for an item template in UBIKThemes. However, these can be applied anywhere in the xaml, and do not require a ListView to be rendered.&lt;br /&gt;
** '''For more information, read the section on [[XAML_Best_practices#Templating|Content Templating]] below.'''&lt;br /&gt;
* 🏆 '''Reduce the number of elements, especially containers''', wherever possible.&lt;br /&gt;
** Layouts are often defined in multiple nested containers, usually Grids and StackPanels. This has an impact on performance if it leads to a very deep hierarchy of rendered elements. On mobile devices with less computational power, the difference can be felt. &lt;br /&gt;
** Creative use of basic controls can sometimes eliminate the need for additional visual elements.&lt;br /&gt;
** Frequent use of Grids or Stackpanels can sometimes be replaced with clever use of Grid.Row/Column definitions.&lt;br /&gt;
* Layout Compression:&lt;br /&gt;
** Sometimes it’s unavoidable that multiple containers are needed. In Mobile(Xamarin), applying the [[Xamarin_XAML#Layout_compression_examples|HeadlessLayout]] style can reduce their impact on the visual tree. &lt;br /&gt;
** Some ideas for reducing the number of nested controls can be seen [[XAML_Best_practices#Alternatives_to_using_Multiple_Controls|later in this article]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Implicit and Explicit Styling ====&lt;br /&gt;
A Style is a collection of preset attributes that can be assigned to a XAML control of the same type. &lt;br /&gt;
When this is done directly, by adding the Style attribute to a control, it is called Explicit Styling.&lt;br /&gt;
However, styles can also be made Implicit, by not assigning an x:Key, making it a default style. Whether it is the default style for a localized section of a XAML, or the entire project, depends on where the Implicit style is defined.&lt;br /&gt;
&lt;br /&gt;
The following code snippet makes use of several features of XAML Styling:&lt;br /&gt;
[[File:Performance_ImplicitStyling.jpg]]&lt;br /&gt;
&lt;br /&gt;
* The above is an example of a localized ResourceDictionary used to avoid repeatedly customizing similar controls. &lt;br /&gt;
* By not assigning an x:Key to the style in the Grid.Resources, it will be used as the Implicit style for all Labels within that StackPanel unless a Style is assigned to them.&lt;br /&gt;
** All Labels within the StackPanel will inherit the defined style, except for &amp;quot;The result is:&amp;quot;, which is given an explicit style, overriding the inherited implicit one.&lt;br /&gt;
** If no Explicit style is assigned, the Implicit style will be assigned first, and will be overwritten by any defined attributes, like TextColor in the above example.&lt;br /&gt;
* The localized Style definitions in this StackPanel will be passed down to all controls contained within it, no matter how deep the nesting goes.&lt;br /&gt;
* The BasedOn attribute can be used to create a sub-style based on another existing style. However, the TargetType must always match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Simplifying Layouts ===&lt;br /&gt;
In UWP / on desktop UBIK, the processor is generally powerful enough to handle more complex UIs. However, mobile devices running Mobile versions of UBIK will noticeably struggle to render sophisticated UIs made of deeply nested levels of containers. There are two ways this situation can be improved; the first is to reduce the number of containers used, and the second is to apply [[Xamarin_XAML#Layout_compression_examples|Layout Compression]] wherever possible. Finally, some ideas will be presented for other ways to reduce the number of controls needed to render the same UI.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Reducing Containers ====&lt;br /&gt;
Containers refers to controls whose purpose is to display other controls. The most basic examples are the Grid and StackLayout. These containers are frequently nested in order to finetune a UI, however, the downside is that each one adds a new branch in what is called a &amp;quot;visual tree', even if the control itself is not visible. When using many containers, it is useful to ask yourself if each container is really necessary, or if the visual tree can be simplified. &lt;br /&gt;
&lt;br /&gt;
The examples below show three different ways for showing the same content, each utilizing less controls, leading to a simpler visual tree. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;2 StackLayouts, 3 Labels&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;StackLayout&amp;gt;												&lt;br /&gt;
    &amp;lt;StackLayout Orientation=&amp;quot;Horizontal&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;Label Text=&amp;quot;{x:Static resources:UBIKIcons.IconName}&amp;quot; FontFamily=&amp;quot;{StaticResource UBIKSymbols}&amp;quot;/&amp;gt;						&lt;br /&gt;
        &amp;lt;Label Text=&amp;quot;Name&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/StackLayout&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;Label Text=&amp;quot;Description&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/StackLayout&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;1 Grid, 3 Labels&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Grid Grid.ColumnDefinitions=&amp;quot;24,*&amp;quot; Grid.RowDefinitions=&amp;quot;Auto,Auto&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label Text=&amp;quot;{x:Static resources:UBIKIcons.IconName}&amp;quot; FontFamily=&amp;quot;{StaticResource UBIKSymbols}&amp;quot;/&amp;gt;						&lt;br /&gt;
    &amp;lt;Label Grid.Column=&amp;quot;1&amp;quot; Text=&amp;quot;Name&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;Label &lt;br /&gt;
        Grid.Row=&amp;quot;1&amp;quot; &lt;br /&gt;
        Grid.ColumnSpan=&amp;quot;2&amp;quot; &lt;br /&gt;
        Text=&amp;quot;Description lorem ipsum...&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;1 Label&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Label&amp;gt;&lt;br /&gt;
    &amp;lt;Label.FormattedString&amp;gt;&lt;br /&gt;
        &amp;lt;FormattedText&amp;gt;&lt;br /&gt;
            &amp;lt;Span FontFamily=&amp;quot;{StaticResource UBIKSymbols}&amp;quot; Text=&amp;quot;{x:Static resources:UBIKIcons.IconName}&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;Span Text=&amp;quot;Name &amp;amp; #10;&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;Span Text=&amp;quot;Description lorem ipsum...&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/FormattedText&amp;gt;&lt;br /&gt;
    &amp;lt;/Label.FormattedString&amp;gt;&lt;br /&gt;
&amp;lt;/Label&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: &amp;amp; #10; (without the blank space) is the Mobile glyph code for a newline. The equivalent in UWP is &amp;amp; #x0a;.&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now imagine the UI element should have a colored background. You may be tempted to wrap everything in a Frame, however, you can just as easily assign color using the Background attribute on the StackLayout, Grid, or even the Label itself.&lt;br /&gt;
&lt;br /&gt;
Granted, this example is very simple, however, the point illustrated here is that you should fid creative ways to reduce the number of controls nested in your UI.&lt;br /&gt;
&lt;br /&gt;
Another thing to consider is how many times this particular UI definition will be rendered on screen. You have more freedom to be uneconomical in your use of controls when when designing items that will appear once on a page, such as the page header, rather than with item templates or control templates that are rendered several, or even dozens, of times in one view. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Layout Compression ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Alternatives to using Multiple Controls ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Performance analysis (Mobile only) {{Version/MobileSince|5.0}} ===&lt;br /&gt;
In the Mobile app, {{UBIK}} provides customizers a possibility to analyze the performance of specific UI elements by measuring the time it takes to render them. This can help customizers find performance weak spots in the entire UI and also serve as a benchmarking tool to verify the result of any improvement attempts.&lt;br /&gt;
The measurement is achieved through the use of the MeasurePerformanceBehavior. The concept of it is very similar to other behaviors, namely you attach it to any UI element in the XAML code (as long as it's a derivate of the [https://learn.microsoft.com/en-us/dotnet/api/microsoft.maui.controls.visualelement?view=net-maui-9.0 VisualElement], which should cover the vast majority of all UI element types).&lt;br /&gt;
* The behavior measures the time to render the UI element (which it attaches to).&lt;br /&gt;
** Note: The time measured for e.g UBIKChildArea doesn't include the render time for all UBIKChildItem's.&lt;br /&gt;
* You can attach multiple behaviors to multiple UI elements at the same time, one to each, in order to get the measurements of the different elements.&lt;br /&gt;
* The measurements are logged in the UBIKUIRenderingPerformance.log file under the app's Logs folder.&lt;br /&gt;
* You can and should assign a unique name to the Label property of the behavior, so that it's easy to identify the render time of the target element.&lt;br /&gt;
&lt;br /&gt;
The following is an example of attaching the behavior to the root Grid inside the UBIKChildItem template. It should effectively measure the time to render the UI for a child item.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Mobile&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Namespace referenced in the code: &amp;lt;code&amp;gt;xmlns:behaviors=&amp;quot;clr-namespace:UBIK.MAUI.Behaviors;assembly=UBIK.MAUI&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid&amp;gt;&lt;br /&gt;
    &amp;lt;Grid.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:MeasurePerformanceBehavior Label=&amp;quot;UBIKChildItemRootGrid&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Grid.Behaviors&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, you should see log entries such as the following, one for every child item that you see when opening a content page.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;2025.12.03 13:39:35:4747 | Grid 'UBIKChildITEM_RootGrid' rendered in 28.3865 ms&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Templating ==&lt;br /&gt;
Similar to styling single controls, presets featuring groups of controls can also be defined in UBIKThemes and used anywhere in the client. The benefit of this&lt;br /&gt;
&lt;br /&gt;
One simple example of this is an ItemTemplate. Project customizers should be familiar with ItemTemplates, which are defined in UBIKThemes and then applied to every item in a List, for example. However, such templates are not inherently connected to listviews, and can be used on any items control, or can even on their own, if the situation calls for it. The important thing to understand is that a content template is a standalone unit, defined in xaml to display particular data bindings, and perhaps react to various states.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Hint|Look at other interesting templates in UBIKThemes, such as &amp;quot;Badge&amp;quot; / &amp;quot;ChildCountBadge&amp;quot; in Mobile, or &amp;quot;UBIKObjectIndicators&amp;quot; in UWP to see more ideas for how templates can be utilized.}}&lt;br /&gt;
&lt;br /&gt;
=== Template Selectors ===&lt;br /&gt;
Various parts of the UBIK UI are dynamically swapped in based on specific conditions. One example is the UBIKPropertyDirectItemContainer.xaml, which serves as the base for an item in the property list, and which renders a different type-appropriate editing UI for each kind of property input (such as TextBox for manual input String, Double, or Integer; selection for link properties, or list-based String, Double, or Integer; clock and calendar pickers for DateTime; Lat., Lon., and Alt. input for geo coordinates, etc).&lt;br /&gt;
&lt;br /&gt;
The logical tree used by these selectors to render different UIs is documented in our article [[UBIK_Templates]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== DataTemplate vs. ControlTemplate in Mobile clients ===&lt;br /&gt;
There are two main types of templates that can be used in UBIK to define reusable clusters of controls. Ignoring the technical differences, the functional differences boil down to;&lt;br /&gt;
==== DataTemplate ====&lt;br /&gt;
DataTemplate is used for showing / interacting with various aspects of a data binding. &lt;br /&gt;
* Example 1: Consider a Child ItemTemplate, which is capable of displaying metadata like Title or SubTitle, MetaProperty collections, Classifications, Children and Documents. In this case, the '''context''' for the item template is one object, and we can bind to any of its data. &lt;br /&gt;
* Example 2: Consider a Property ItemTemplate, where we can view or edit a metaproperty. In this case, the '''context''' of the ItemTemplate would be a single property, and the bindings available would reflect that; we can bind to its Description, Value, DisplayString, Unit, or even its SortedValueRecords, if property change history is activated.&lt;br /&gt;
* Use a '''ContentControl''' or our custom '''controls:ContentControl''' (with the attribute ContentTemplate=&amp;quot;{DynamicResource ...}&amp;quot; and TemplateContext=&amp;quot;{Binding ...}&amp;quot;)  to display it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ControlTemplate ====&lt;br /&gt;
ControlTemplate is technically used for showing how a specific control can be used; for example, if you want to customize a new template for how a Button should appear. However, it can be used similar to the DataTemplate, with one added bonus; its ContentPresenter sub-control allows for dynamically adding content at every instance, as opposed to a single universal layout that is shared by all.&lt;br /&gt;
* For example: The screenshot below shows three areas navigated to by clicking on root objects. Each has a potentially large collection of their own metaclass of children, meaning that each page benefits from filters, but they do not filter the same properties. However, some details are common, such as the item and filter count texts, and the button to remove all filters. &lt;br /&gt;
[[File:Templating_ControlTemplate.jpg]] &lt;br /&gt;
* The general layout could be created with two columns, one for the counts and button, with the rest of the space dedicated to the individual filters. The template would then be applied one in each of the child areas, with their specific filters nested inside the ContentView used to display the filter. &lt;br /&gt;
* During runtime, the &amp;lt;ContentPresenter /&amp;gt; defined in the ControlTemplate will be replaced with whatever content is nested in the ContentView.&lt;br /&gt;
* Note that implicit styles can also be added to the ControlTemplate, and will be inherited by any content nested in the ContentView.&lt;br /&gt;
* Use a '''ContentView''' (with the attribute ControlTemplate=&amp;quot;{DynamicResource ...}&amp;quot;) to display it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|Since the ControlTemplate is not technically designed to work directly with data bindings, it does inherit the context from its ContentView by default. However this can be easily fixed by adding the &amp;lt;nowiki&amp;gt;BindingContext=&amp;quot;{TemplateBinding BindingContext}&amp;quot;&amp;lt;/nowiki&amp;gt; attribute to the root grid of the template.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Hint|An understanding of '''Contexts''' is fundamental to using templates, as this informs what data bindings are directly available. Some more information can be found at this article on [[Object_hierarchy_in_XAML:_NextLevel,_ParentLevel,_LinkedLevel#The_ContentViewModel.28s.29|the ContentViewModel]] }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ControlTemplate in UWP ===&lt;br /&gt;
The situation is much simpler in UWP, which only makes use of the ControlTemplate to define custom templates. The ControlTemplate in UWP inherits the context from its content control, so no equivalent to Mobile clients &amp;lt;nowiki&amp;gt;BindingContext=&amp;quot;{TemplateBinding BindingContext}&amp;quot;&amp;lt;/nowiki&amp;gt; is required.&lt;br /&gt;
 &lt;br /&gt;
The ContentControl is used to render an instance of a template.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Contexts and Context Switching ===&lt;br /&gt;
In xaml, every element in the UI is informed by a '''context'''. This is the data that is delivered by UBIK immediately when binding. Knowing the context that will be used by a content control is vital when using templates, as this directly affects what bindings you can prepare in your template. Furthermore, all content views that use the same template must have similar contexts, to a degree.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
Two of the more frequently customized elements are Objects and their Metaproperties. A template used for a UBIK object will have bindings such as Title, Values[PROPERTY], etc, whereas one designed for a Metaproperty will have DisplayValue, Description, Unit, and so on. Using a template designed for a UBIK object will have no benefit if the context applied to it is that of a property, and vice versa.&lt;br /&gt;
&lt;br /&gt;
==== Where does the context come from? ====&lt;br /&gt;
Context is inherited. When you begin customizing a xaml template, it generally has a known use, such as a child area, document viewer, or item in a property list, to name just a few of many. In these cases, the context is quite clear. However, when you begin creating general templates that can be used anywhere in the client, there will likely be the need to specify what context should be applied each time the template is used. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:XBP_ContentTemplates.png]]&lt;br /&gt;
&lt;br /&gt;
In the above example, we see a variety of property editing fields. To cut down on repetitive XAMLing, a template is created for inputting a single property, consisting in this case of Description, DisplayValue, a placeholder label, and some indicators such as whether the property is required or filled. In each case, the context needs to be set to a specific metaproperty defined on the 'controls:ContentControl' that hosts each instance of the template, through the TemplateContext attribute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ContentControl&lt;br /&gt;
    ContentTemplate=&amp;quot;{DynamicResource PropertyField_Required}&amp;quot;&lt;br /&gt;
    TemplateContext=&amp;quot;{Binding Properties.VisibleItems[MP_DETECTION]}&amp;quot; &amp;gt;&lt;br /&gt;
    &amp;lt;controls:ContentControl.GestureRecognizers&amp;gt;&lt;br /&gt;
        &amp;lt;TapGestureRecognizer Command=&amp;quot;{Binding Properties.VisibleItems[MP_DETECTION].PropertyClickedCommand}&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:ContentControl.GestureRecognizers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:ContentControl&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Hint|Adding the behavior to the ContentControl, rather than defining it in the template itself, allows flexibility in the customizing as different property-editing commands can be paired with the same UI based on the required functionality.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Context Switching ====&lt;br /&gt;
To repeat, context is almost always inherited. If you forget to assign a specific context to a content control (as in the above example), the context of the XAML element that hosts that content control will be used. When you think about it, any number of nested Grids still inherit the context of the area or item template they are hosted in. &lt;br /&gt;
&lt;br /&gt;
Context-switching is simply the name given to the act of assigning a different context to a particular control, when needed. It is also usually very simple to do:&lt;br /&gt;
&lt;br /&gt;
'''UWP'''&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
DataContext=&amp;quot;{Binding ...}&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Mobile(Xamarin)'''&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
BindingContext=&amp;quot;{Binding ...}&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The above attributes can be added to any control to change it's binding context.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Try this experiment:&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;TextBlock &lt;br /&gt;
    DataContext=&amp;quot;{Binding ParentLevel}&amp;quot;&lt;br /&gt;
    Text=&amp;quot;{Binding Title}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By using this code snippet, we expect to see the Title or the current object. However, because we have a context switch applied, we would instead see the Title of the parent object. For Mobile use '''Label''' instead of TextBlock and '''BindingContext''' instead of DataContext.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|Using this technique to switch the context of a control does it for ''all bindings on that control''. Since the entire control is now 'focused' directly on a different context, existing bindings will need to be adapted. An easy example is the Visibility of the TextBlock, which we might still want to bind to certain conditions on the child object, while displaying the data of the parent. &lt;br /&gt;
&lt;br /&gt;
One exception is the controls:ContentControl, which through its TemplateContext attribute accepts the possibility to have a different context for its content, therefore decoupling the context of the template from the actual control, [[XAML_Best_practices#Context_Switching_And_Templates|as described below]].}}&lt;br /&gt;
&lt;br /&gt;
Furthermore, since context continues to be inherited, any controls contained within the context-switched one (imagine it's a Grid containing more elements, rather than a simple TextBlock) will all also have the context of ParentLevel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Context Switching And Templates ====&lt;br /&gt;
&lt;br /&gt;
===== '''DataTemplate''' =====&lt;br /&gt;
As described in the previous section, DataTemplates are designed to be used as templates for data contexts, therefore the content control used to render them, controls:ContentControl, has the TemplateContext property which allows you to set the binding context '''for the template'''. The important difference to note is that the controls:ContentControl itself will not use the TemplateContext, but rather the inherited context from its hosting xaml. &lt;br /&gt;
&lt;br /&gt;
Because they are independent of each other, it allows more sophisticated usage of binding contexts, for example, when ''Object A'' has ''Status B'', show ''Property C''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;UWP&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentControl (displayed on child area of Object A)&lt;br /&gt;
    Visibility=&amp;quot;{Binding Values[STATUS], Converter={StaticResource EqualToVisConverter}, ConverterParameter=B}&amp;quot;&lt;br /&gt;
    Content=&amp;quot;{Binding PropertyItems[PROPERTYC]}&amp;quot;&lt;br /&gt;
    ContentTemplate=&amp;quot;{StaticResource MyPropertyTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Mobile(Xamarin)&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ContentControl (displayed on child area of Object A)&lt;br /&gt;
    IsVisible=&amp;quot;{Binding Values[STATUS], Converter={StaticResource EqualityToBool}, ConverterParameter=B}&amp;quot;&lt;br /&gt;
    TemplateContext=&amp;quot;{Binding PropertyItems[PROPERTYC]}&amp;quot;&lt;br /&gt;
    ContentTemplate=&amp;quot;{StaticResource MyPropertyTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== '''ControlTemplate''' =====&lt;br /&gt;
On the other hand, since the ControlTemplate is not designed to be used this way, it has no inherent binding context attribute that can be assigned to it's content only. The only benefit of using a ControlTemplate over a DataTemplate is the possibility to nest dynamic content (that has not been defined in the original ControlTemplate) within in, by use of the &amp;lt;nowiki&amp;gt;&amp;lt;ContentPresenter... /&amp;gt;&amp;lt;/nowiki&amp;gt; attribute.&lt;br /&gt;
&lt;br /&gt;
To use it this way would therefore require a context switch on the ContentView used to render it, with the related adjustments required to bindings placed on the ContentView itself;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;UWP&amp;quot;&amp;gt;&lt;br /&gt;
No example yet.&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Mobile(Xamarin)&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView (displayed on child area of Object A)&lt;br /&gt;
    BindingContext=&amp;quot;{Binding PropertyItems[PROPERTYC]}&amp;quot;&lt;br /&gt;
    IsVisible=&amp;quot;{Binding CallingViewModel.Values[STATUS], Converter={StaticResource EqualityToBool}, ConverterParameter=B}&amp;quot;&lt;br /&gt;
    ControlTemplate=&amp;quot;{StaticResource MyOtherPropertyTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Hint|CallingViewModel (as used on the IsVisible attribute) can be added to a metaproperty's binding path to bind to its context object.}}&lt;br /&gt;
&lt;br /&gt;
{{Attention|Remember that Styling in Xaml is type-based, so you cannot use the same template with controls:ContentControl (ContentTemplate attribute) and ContentView (ControlTemplate attribute), as DataTemplate and ControlTemplate are technically different types.}}&lt;br /&gt;
&lt;br /&gt;
== Performance ==&lt;br /&gt;
Diminishing the performance should not be the first priority but it also shouldn’t be the last. You should always think about retaining readability and consistency in your code by adding comments and using clear and significant code. But you also have to keep in mind that more code and lines mean more compiling, this can decrease the performance of your whole application. Just try to keep a good balance between these two factors in order to ease the life of customizers. They’ll surely stumble across your code in a few months and will maybe have a hard time to finalize a ten-minute task because they have to find out what every piece of code exactly does. Here are some examples which support the increase of performance.&amp;lt;br&amp;gt;&lt;br /&gt;
For example:&amp;lt;br&amp;gt;&lt;br /&gt;
* If you use the same resource on more than one XAML file, consider defining it in UBIKThemes (Resources Folder -&amp;gt; LocalState/XAML) rather than on each page. &amp;lt;br&amp;gt;&lt;br /&gt;
* Don't define UI elements you don't need for composition and use the default control templates whenever possible (these templates have already been tested and verified for load performance). &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Useful links for inefficient XAML code: &amp;lt;br&amp;gt;&lt;br /&gt;
* https://www.codemag.com/Article/1509091/XAML-Anti-Patterns-Layout-SNAFUs &amp;lt;br&amp;gt;&lt;br /&gt;
* https://docs.microsoft.com/en-us/windows/uwp/debug-test-perf/optimize-xaml-loading&lt;br /&gt;
&lt;br /&gt;
=== Using 'NextLevel' bindings ===&lt;br /&gt;
Performance can be impacted by attempting to show multiple levels of data (ie. child data, from the parent object) outside what is delivered by UBIK by default.&lt;br /&gt;
&lt;br /&gt;
For an in-depth explanation, and guidance on how to implement such functionality safely, please refer to this page [[Object_hierarchy_in_XAML:_NextLevel,_ParentLevel,_LinkedLevel]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing of UI ==&lt;br /&gt;
XAML can be sometimes very weird, there are dependencies or default values that you don’t see immediately. So, a good way to prevent millions of fixes for the customer, because the environment, different device or even a different windows version destroys your UI, is to write a test plan where you test your implementation. It’s important to see exactly your controls in action on their own and acting with each other, so you can prevent doing lots of ‘easy’ fixes.&lt;br /&gt;
&lt;br /&gt;
== Improving performance on complex List item templates ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
Performance issues in XAML-based UI development often stem from unnecessary UI rendering and binding errors. Hidden elements remain in the UI tree, impacting performance, while premature bindings cause background errors. To optimize complex list item templates, UI content can be loaded only when needed, and binding errors can be reduced by applying view models at the control level. These improvements enhance efficiency, reduce log clutter, and improve maintainability.&lt;br /&gt;
&lt;br /&gt;
=== Technique 1: Loading UI content on demand ===&lt;br /&gt;
It was discovered that UI controls hidden with '''IsVisible=False''' remain in the UI tree. To improve performance on highly complex item templates, like UBIKTaskItem, rendered repeatedly such as in ListViews, a workaround can be applied to only load the UI content when the '''visibility''' binding condition is met. &lt;br /&gt;
&lt;br /&gt;
==== Previous Approach ====&lt;br /&gt;
Previously, we used '''IsVisible''' directly with a binding condition. The approach looked like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Label IsVisible=&amp;quot;{Binding MROViewModel.PreviousValue, Converter={StaticResource NullToNotBool}}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label.FormattedText&amp;gt;&lt;br /&gt;
        &amp;lt;FormattedString&amp;gt;&lt;br /&gt;
            &amp;lt;Span Text=&amp;quot;{Binding MROViewModel.PreviousValue}&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;Span Text=&amp;quot; &amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;Span Text=&amp;quot;{Binding MROViewModel.Unit}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/FormattedString&amp;gt;&lt;br /&gt;
    &amp;lt;/Label.FormattedText&amp;gt;&lt;br /&gt;
&amp;lt;/Label&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Improved Approach ====&lt;br /&gt;
To prevent unnecessary loading of UI elements when their '''visibility''' is False, it is possible to replace the UI content with a content hosting control, such as a '''ContentView''' or '''ContentControl'''. The original content should instead be defined as a template in '''UBIKThemes''', as shown below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger Binding=&amp;quot;{Binding MROViewModel.PreviousValue, Converter={StaticResource NullToNotBool}, TargetNullValue=false, FallbackValue=false}&amp;quot;&lt;br /&gt;
            Value=&amp;quot;True&amp;quot; TargetType=&amp;quot;ContentView&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource PreviousValueTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The important part of the snippet above is the '''DataTrigger'''. Through this technique, the '''ControlTemplate''' of the content hosting control is only set once the visibility condition is met, preventing the UI content from being loaded until it is explicitly required.&lt;br /&gt;
And the associated '''ControlTemplate''', located in UBIKThemes:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ControlTemplate x:Key=&amp;quot;PreviousValueTemplate&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label&amp;gt;&lt;br /&gt;
        &amp;lt;Label.FormattedText&amp;gt;&lt;br /&gt;
            &amp;lt;FormattedString&amp;gt;&lt;br /&gt;
                &amp;lt;Span Text=&amp;quot;{TemplateBinding BindingContext.MROViewModel.PreviousValue}&amp;quot; /&amp;gt;&lt;br /&gt;
                &amp;lt;Span Text=&amp;quot; &amp;quot; /&amp;gt;&lt;br /&gt;
                &amp;lt;Span Text=&amp;quot;{TemplateBinding BindingContext.MROViewModel.Unit}&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/FormattedString&amp;gt;&lt;br /&gt;
        &amp;lt;/Label.FormattedText&amp;gt;&lt;br /&gt;
    &amp;lt;/Label&amp;gt;&lt;br /&gt;
&amp;lt;/ControlTemplate&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Why This Change?'''&lt;br /&gt;
* '''More Modular''': The separation into discrete templates makes individual UI elements reusable and maintainable.&lt;br /&gt;
* '''Better Performance''': Eliminates unnecessary loading of UI elements in the background, that are not visible to the user.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Technique 2: Reducing background Binding errors ===&lt;br /&gt;
&lt;br /&gt;
Complex item templates such as UBIKTaskItem were found to produce large numbers of '''errors''' while rendering, likely as bindings are being resolved before the relevant '''viewmodels''' can be loaded by the client. While these '''errors''' are temporary and not visible to the user, the cumulative effect of numerous binding errors raised while rendering items can be felt when navigating to pages with large numbers of items.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Attention|Unfortunately, these bindings errors are not normally logged in the UBIKDebug.log. Therefore, the recommendation is to use the following technique whenever using a ContentControl or controls:ContentControl.}}&lt;br /&gt;
&lt;br /&gt;
==== Previous Approach ====&lt;br /&gt;
Initially, we used a '''ContentControl''' with a direct '''ContentTemplate''' and '''TemplateContext''', as shown below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Mobile(Xamarin)&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
xmlns:ctrls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Mobile(Maui)&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
xmlns:ctrls=&amp;quot;clr-namespace:UBIK.MAUI.Controls;assembly=UBIK.MAUI&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ctrls:ContentControl&lt;br /&gt;
    ContentTemplate=&amp;quot;{StaticResource TaskPropertyTemplateSelector}&amp;quot;&lt;br /&gt;
    TemplateContext=&amp;quot;{Binding MROViewModel}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Binding_logs.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Improved Approach ====&lt;br /&gt;
One workaround that reduced the number of '''binding errors''' encountered was to refer to '''viewmodels''' indirectly in the bindings.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ctrls:ContentControl x:Name=&amp;quot;TaskPropertyTempSelCtrl&amp;quot;&lt;br /&gt;
    BindingContext=&amp;quot;{Binding MROViewModel}&amp;quot;&lt;br /&gt;
    TemplateContext=&amp;quot;{Binding BindingContext, Source={x:Reference TaskPropertyTempSelCtrl}}&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/ctrls:ContentControl&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The previous example used an '''MROViewModel''' binding directly in the '''TemplateContext''' property of the '''&amp;lt;ctrls:ContentControl&amp;gt;.''' &lt;br /&gt;
However, a workaround that seems to avoid triggering background binding errors is to apply the '''MROViewModel''' to the '''&amp;lt;ctrls:ContentControl&amp;gt;''' itself via the '''BindingContext''' property, and then request that '''BindingContext''' using the x:Reference syntax seen in the '''TemplateContext''' property. &lt;br /&gt;
&lt;br /&gt;
'''Why This Change?'''&lt;br /&gt;
* '''Avoids Additional Binding Errors''': Using this workaround seems to prevent binding errors.&lt;br /&gt;
&lt;br /&gt;
[[Category:Mobile|XAML Best practices]]&lt;br /&gt;
[[Category:Pages with broken file links|XAML Best practices]]&lt;br /&gt;
[[Category:XAML|XAML Best practices]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	<entry>
		<id>https://wikitest.augmensys.com/index.php?title=XAML_Best_practices&amp;diff=29221</id>
		<title>XAML Best practices</title>
		<link rel="alternate" type="text/html" href="https://wikitest.augmensys.com/index.php?title=XAML_Best_practices&amp;diff=29221"/>
				<updated>2025-12-03T13:06:59Z</updated>
		
		<summary type="html">&lt;p&gt;ARU: /* Performance analysis (Mobile only) {{Version/MobileSince|5.0}} */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UnderConstructionStart}}&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
This article recommends approaches to customizing and troubleshooting your UBIK custom UIs. &lt;br /&gt;
To learn about the fundamentals of XAML, check out our article [[XAML_Basics]].&lt;br /&gt;
&lt;br /&gt;
The most important specific Best Practices are marked with a 🏆&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== Conventions ==&lt;br /&gt;
Conventions are ‘rules’ that make our xamls collectively readable and shareable. By aiming to construct our xaml files in a similar style, we reduce the effort required by others to read and understand our work. This section includes guidelines on how to name controls, and how to internally organize your xaml files.&lt;br /&gt;
&lt;br /&gt;
=== Naming Conventions ===&lt;br /&gt;
 &amp;lt;Button x:Name=&amp;quot;SubmitFormButton&amp;quot; ... /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The x:Name is used to give a unique name for an object within a xaml file. It’s not valid in a ResourceDirectory (such as a style, template, etc, either defined within a xaml file, or in UBIKThemes), which requires using x:Key instead.&lt;br /&gt;
** Likewise there is a difference when referencing x:Name and x:Key elements.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;x:Name - UWP: ElementName=SubmitFormButton | Mobile(Xamarin): Source={x:Reference  SubmitFormButton}&lt;br /&gt;
 x:Key - Both: {StaticResource SubmitFormButtonStyle} or {DynamicResource SubmitFormButtonStyle}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* Use explicit language when giving a name or key, for example: “PropStkpnl” is not easily readable, but “PropertiesStackPanel” is. &lt;br /&gt;
* Furthermore, “FailureCodeExpression” does not describe the purpose of the expression, whereas “FailureCode_HasUnfilledFields” does. &lt;br /&gt;
** Naming it according to its purpose also makes it easier to use in xaml, such as when combining the result with a converter for an intended outcome (eg. An warning symbol visible when FailureCode_HasUnfilledFields is true). &lt;br /&gt;
* You '''do not''' have to name every object in your code, only if it is referred to by another element. However, sometimes adding names to controls helps a reader understand their intended function.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Formatting ===&lt;br /&gt;
&lt;br /&gt;
Formatting xamls properly is critical to others being able to quickly read and understand a customizing. &lt;br /&gt;
{{Hint|If you struggle to maintain nice formatting while writing your xaml code, you can find formatters that automatically such as Notepad++’s “Pretty Print” or VS Code’s “XAML Styler” plugins.}}&lt;br /&gt;
&lt;br /&gt;
==== Best Practices ====&lt;br /&gt;
&lt;br /&gt;
* x: Name or x: Key should come first.&lt;br /&gt;
* A control with up to 2 Attributes can be added in one line. If it has more than 2, they should be stacked over another for readability. &lt;br /&gt;
** Avoid using a formatter where the indentation matches the name of the control&lt;br /&gt;
[[File:Formatting_Indentation.jpg]]&lt;br /&gt;
&lt;br /&gt;
* Add controls in a Top-to-Bottom order in the xaml file. Additionally, try to add them in a Left-to-Right order.&lt;br /&gt;
** Controls in Grid.Row/Column 0 should be higher up in your xaml file than controls placed in other rows and columns.&lt;br /&gt;
&lt;br /&gt;
* Respect indentation of nested controls.&lt;br /&gt;
** Opening and closing tags should always begin in the same column. &lt;br /&gt;
** Controls nested inside them should begin exactly one column to the right. &lt;br /&gt;
** When pasting code snippets into your work, be sure to correct the differences in indentations.&lt;br /&gt;
&lt;br /&gt;
* Use Linebreaks mindfully.&lt;br /&gt;
** It is difficult to describe rules for how linebreaks should be used, but the general idea is to use them to group elements in your xaml file, and to show which controls are nested (no linebreaks) and which controls are 'siblings' (divided by linebreaks).&lt;br /&gt;
** ✔️Put linebreaks in between large sections of a UI definition (eg. between Grids or major elements of the page, or between content set on different Rows/Columns).&lt;br /&gt;
** ❌ Avoid linebreaks in the middle of smaller elements (eg. a stackpanel with 2 texts inside).&lt;br /&gt;
&lt;br /&gt;
* 🏆 '''Add comments.'''&lt;br /&gt;
** This is one of the most critical features of clear code, saving the reader from wasting time struggling to read the code, or even having to search and ask around. &lt;br /&gt;
** Use comments to describe the position, purpose, and function of every control.&lt;br /&gt;
** When maintain xamls according to a ticket, put the ticket number in a comment so a reader has access to background information on the change.&lt;br /&gt;
[[File:Formatting_Comments.jpg]].&lt;br /&gt;
&lt;br /&gt;
* Remove unnecessary code. Ensure everything included in your xaml has a purpose. This includes large sections of commented out code.&lt;br /&gt;
** This both makes the xaml clearer, but also improves performance by avoiding unnecessary loading and rendering effort.&lt;br /&gt;
** This is especially true when copying from other’s work. &lt;br /&gt;
** If you’re not sure if something is necessary, comment it out and see if your xaml still fulfils its function. If it works, remove it.&lt;br /&gt;
** [[XAML_Best_practices#Performance | Read more in the next section on Performance]].&lt;br /&gt;
&lt;br /&gt;
* 🏆 '''Empty out your UBIKThemes''' for every new customizing.&lt;br /&gt;
** When working in Mobile clients, it is recommended to empty out your UBIKThemes file (ie. delete everything between the &amp;lt;ResourceDictionary&amp;gt; tags) and only add what you intend to customize. &lt;br /&gt;
** Unfortunately, this approach is currently not 100% possible in UWP xamls, as we noticed that custom styles are not utilized on controls unless the controls are also in UBIKThemes, shown instead using the standard grey/orange. However, diligent customizers can find out how to do so below:  &amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Read More&amp;quot; data-collapsetext=&amp;quot;Close&amp;quot;&amp;gt; An issue with dynamically refreshing style resources causes emptying of UBIKThemes to be much more complicated on UWP than in Mobile.&amp;lt;br&amp;gt;This is because StaticResources are only updated once they are overwritten again in Themes. The most common symptom of this issue is that for example, if UBIKAccentColor is changed to blue, this customization will not be reflected by styles for any control defined in UBIKThemes, unless the styles are 'written' again in UBIKThemes. So in this example, the regular button hover state will remain orange, unless UBIKButtonStyle is included in the UBIKThemes of that project.&amp;lt;br&amp;gt;Therefore, the only approach we can recommend is to remove everything from UBIKThemes, and add styles back once they fail to reflect the customized color resources. Since this approach is impractical, we do not encourage emptying UBIKThemes for UPW as strongly as we do for Mobile.  &lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Organize UBIKThemes in sections. &lt;br /&gt;
** For example, standard UBIKThemes defines resources grouped into; Color resource / Size resources / Text styles / Button styles / etc&lt;br /&gt;
** In Mobile, keep Item Templates at the end of UBIKThemes.&lt;br /&gt;
** Either way, it is recommended to keep your UBIKThemes file as lean as possible (read the next point), as well as maintaining a grouping strategy. Use the tags &amp;lt;nowiki&amp;gt;&amp;lt;!--#region Example--&amp;gt;&amp;lt;/nowiki&amp;gt; and &amp;lt;nowiki&amp;gt;&amp;lt;!--#endregion--&amp;gt;&amp;lt;/nowiki&amp;gt; to define groups of content, for example &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!--#region Text Styles--&amp;gt;, &amp;lt;!--#region DataTemplates--&amp;gt;, or &amp;lt;!--#region Item Templates--&amp;gt;&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Performance ==&lt;br /&gt;
A basic rule is that '''more code = more to compile''', and this can decrease the performance of your whole application. To counter that, always attempt to reduce the amount of xaml customizing, especially if you find yourself repeating specific controls and attributes.&lt;br /&gt;
&lt;br /&gt;
=== Understanding Templating in UBIK ===&lt;br /&gt;
The most critical thing to understand about customizing your UI is that '''templates for the entire default UI are already present in the client’s core'''. Customizing templates allow us to modify of specific areas of the UI by overwriting the parts of the default UI with the same name. Therefore, only the specific xamls that need to be customized should be added. This is recommended for many reasons;&lt;br /&gt;
&lt;br /&gt;
* Custom xamls will ‘undo’ improvements to the UI coming from newer versions of the client, when they are based on xaml files from an older version of UBIK. For custom UIs there is no way around it, but this is why '''uncustomized copies of xamls should never be added to the project folder'''. To remove a customizing, simply delete that file. There is no need to replace it with an uncustomized version from the default folder.&lt;br /&gt;
* Less xaml files to parse means better performance.&lt;br /&gt;
* More xamls also makes it more difficult for others to read and understand the customizing. This also makes it much more difficult to find and diagnose errors when requesting support. It also generally increases the effort required to maintain the xamls.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check out the next section for a more in-depth look into [[XAML_Best_practices#Templating|Content Templating]].&lt;br /&gt;
&lt;br /&gt;
==== Best Practices ====&lt;br /&gt;
* 🏆 '''Deploy a new Default folder''' every time you update your client version, to ensure that the latest UI version is the foundation for your customizing.&lt;br /&gt;
* 🏆 '''Only include xamls that are needed for your customizing.'''&lt;br /&gt;
** Remove files for child Areas and Items that are not included in the project this customizing will be used for. This is especially relevant when copying customizings from other projects.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How to select the right Control ===&lt;br /&gt;
Controls often have similar functionality, making the question of which control to use highly ambiguous. &lt;br /&gt;
For clarity, a 'Control' refers to a single xaml object that can be added to your visual tree. These range in scope and purpose, from layouting (such as a Grid or StackPanel), to interactivity (such as a Button or TextBox), and everything in between (such as a ListView).&lt;br /&gt;
&lt;br /&gt;
So, how to choose the best control to meet your requirements?&lt;br /&gt;
&lt;br /&gt;
==== Best Practices ====&lt;br /&gt;
* 🏆 A good rule of thumb is to '''always use the least complex control possible'''. &lt;br /&gt;
** For example, there is no need to use a Filter + ListView to show a single UBIK object or property. Instead, you can bind the specific context of that object or property to a xaml control, and everything nested inside will inherit that binding context. This will be explained more in the section on [[XAML_Best_practices#Reusable_Templates|Reusable Templates]].&lt;br /&gt;
** Similarly, simple EvalExpressions can in many cases be replaced with [[XAML_Best_practices#Converters|Converters]].&lt;br /&gt;
** The Visibility attribute can be added to any control. '''There is no need to wrap any control in a Grid simply to apply a Visibility.''' The same goes for layouting attributes such as Grid.Row/Column.&lt;br /&gt;
* 🏆 When you need to show a collection of items such as ListView, '''always use our custom versions'''. These are UBIK-optimized for speed and performance.&lt;br /&gt;
** These are [[XAML_Tips#Version_3.7_.26_later|SelectionBoundListView]] on UWP and [[Xamarin_XAML#SfListViewExt|SfListViewExt]] on Mobile clients.&lt;br /&gt;
** Avoid using other item controls, or BindableLayouts, unless you are sure the performance impact will be negligible.&lt;br /&gt;
* Layouts:&lt;br /&gt;
** If you want to define a specific layout for a page, use a Grid with rows and columns.&lt;br /&gt;
** If things need to be positioned relative to each other, use a StackPanel/StackLayout.&lt;br /&gt;
** When defining Rows/Columns for a Grid, assign as few Auto size as possible, and avoid putting controls of unlimited size in an Auto Row.&lt;br /&gt;
** 🏆 '''Never nest controls of unrestricted size within controls of unlimited size.'''&lt;br /&gt;
*** To clarify: Some controls resize themselves based on their content and can be of unlimited size. One example is a StackPanel/StackLayout, when compared to a Grid, which is limited to the screen's size. On the other hand, some controls have an unrestricted size, such as ListView, ScrollView, etc.&lt;br /&gt;
*** Furthermore: ListViews require a fixed size in order to preserve [[XAML_Best_practices#Virtualization|virtualization]].&lt;br /&gt;
* Do not nest ScrollViews within other ScrollViews. &lt;br /&gt;
** Note that this includes '''any''' control with scrolling behavior, as these include a hidden built-in ScrollView. For example, never place a ListView or TreeView within a ScrollView.&lt;br /&gt;
* Nested ListViews involves using a ListView on the item template of an object already presented in a collection. For example, showing the children of a child object.&lt;br /&gt;
**  This is especially an issue in Mobile, both for performance, but also because sfListViewExt tends to cause layouting issues by taking up more space than needed, unlike in UWP where a ListViewExt is capable of calculating its size based on the size of its items. Therefore, when using nested ListViews in Mobile, constrain the size of the inner ListView with a fixed HeightRequest attribute (or WidthRequest in the case of a horizontal list).&lt;br /&gt;
** 🏆 '''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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using Styles and Templates ===&lt;br /&gt;
Attributes are the properties used to customize the controls in a UI. The number of attributes on each control can also contribute to having 'too much' code. Reducing the number of attributes will improve the overall performance of a customizing, especially on elements that appear multiple times in the UI,s such as items in a list. &lt;br /&gt;
&lt;br /&gt;
[[XAML_Best_practices#Templating|Custom templates]] can be used with the additional benefits of defining a uniform look for all similar elements, and reducing customizing effort by creating a central point where a reusable template can be maintained.&lt;br /&gt;
&lt;br /&gt;
==== Best Practices ====&lt;br /&gt;
* Do not re-define default attributes.&lt;br /&gt;
** All attributes have a default value. For example, Grid.Row=&amp;quot;0&amp;quot; is always true, unless specified. Use the Microsoft documentation to familiarize yourself with the default value for every property, and avoid rewriting them. &lt;br /&gt;
** If your control inherits an attribute from its style, do not rewrite the same attribute again.&lt;br /&gt;
*** If you find yourself adding the same attributes to a control with a style, consider moving the attribute to the style definition, or creating a substyle.&lt;br /&gt;
* Avoid repeatedly applying Margins to individual controls.&lt;br /&gt;
** The main layouting should not be done through Margins. Instead, try to use a combination of Grid.Row/Column definitions and Horizontal/Vertical alignments to create your layout, instead of applying many or very large Margins. &lt;br /&gt;
** For example, if you want to move every control within your Grid away from the edge, use a Padding on the Grid instead of Margins on each of the elements.&lt;br /&gt;
** If you want to move controls away from each other within the same container, use RowSpacing or ColumnSpacing on the Grid, or Spacing on the Stackpanel.&lt;br /&gt;
* 🏆 If you repeatedly define the same attributes on a control, '''create a style'''.&lt;br /&gt;
** If the repeated customizing is used in only one xaml, create a ResourceDictionary on the parent container and defining your style there. &lt;br /&gt;
** Otherwise, place your style in UBIKThemes so it can be accessed across the entire project.&lt;br /&gt;
** '''For more information, read the section on [[XAML_Best_practices#Implicit_and_Explicit_Styling|Implicit and Explicit Styling]] below.'''&lt;br /&gt;
* 🏆 If you repeatedly define the same combinations of controls, '''use Control/DataTemplates'''.&lt;br /&gt;
** DataTemplates and ControlTemplates are reusable XAML elements that can be defined once and applied several times throughout the customizing.&lt;br /&gt;
** You may have noticed that a DataTemplate is the basis for an item template in UBIKThemes. However, these can be applied anywhere in the xaml, and do not require a ListView to be rendered.&lt;br /&gt;
** '''For more information, read the section on [[XAML_Best_practices#Templating|Content Templating]] below.'''&lt;br /&gt;
* 🏆 '''Reduce the number of elements, especially containers''', wherever possible.&lt;br /&gt;
** Layouts are often defined in multiple nested containers, usually Grids and StackPanels. This has an impact on performance if it leads to a very deep hierarchy of rendered elements. On mobile devices with less computational power, the difference can be felt. &lt;br /&gt;
** Creative use of basic controls can sometimes eliminate the need for additional visual elements.&lt;br /&gt;
** Frequent use of Grids or Stackpanels can sometimes be replaced with clever use of Grid.Row/Column definitions.&lt;br /&gt;
* Layout Compression:&lt;br /&gt;
** Sometimes it’s unavoidable that multiple containers are needed. In Mobile(Xamarin), applying the [[Xamarin_XAML#Layout_compression_examples|HeadlessLayout]] style can reduce their impact on the visual tree. &lt;br /&gt;
** Some ideas for reducing the number of nested controls can be seen [[XAML_Best_practices#Alternatives_to_using_Multiple_Controls|later in this article]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Implicit and Explicit Styling ====&lt;br /&gt;
A Style is a collection of preset attributes that can be assigned to a XAML control of the same type. &lt;br /&gt;
When this is done directly, by adding the Style attribute to a control, it is called Explicit Styling.&lt;br /&gt;
However, styles can also be made Implicit, by not assigning an x:Key, making it a default style. Whether it is the default style for a localized section of a XAML, or the entire project, depends on where the Implicit style is defined.&lt;br /&gt;
&lt;br /&gt;
The following code snippet makes use of several features of XAML Styling:&lt;br /&gt;
[[File:Performance_ImplicitStyling.jpg]]&lt;br /&gt;
&lt;br /&gt;
* The above is an example of a localized ResourceDictionary used to avoid repeatedly customizing similar controls. &lt;br /&gt;
* By not assigning an x:Key to the style in the Grid.Resources, it will be used as the Implicit style for all Labels within that StackPanel unless a Style is assigned to them.&lt;br /&gt;
** All Labels within the StackPanel will inherit the defined style, except for &amp;quot;The result is:&amp;quot;, which is given an explicit style, overriding the inherited implicit one.&lt;br /&gt;
** If no Explicit style is assigned, the Implicit style will be assigned first, and will be overwritten by any defined attributes, like TextColor in the above example.&lt;br /&gt;
* The localized Style definitions in this StackPanel will be passed down to all controls contained within it, no matter how deep the nesting goes.&lt;br /&gt;
* The BasedOn attribute can be used to create a sub-style based on another existing style. However, the TargetType must always match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Simplifying Layouts ===&lt;br /&gt;
In UWP / on desktop UBIK, the processor is generally powerful enough to handle more complex UIs. However, mobile devices running Mobile versions of UBIK will noticeably struggle to render sophisticated UIs made of deeply nested levels of containers. There are two ways this situation can be improved; the first is to reduce the number of containers used, and the second is to apply [[Xamarin_XAML#Layout_compression_examples|Layout Compression]] wherever possible. Finally, some ideas will be presented for other ways to reduce the number of controls needed to render the same UI.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Reducing Containers ====&lt;br /&gt;
Containers refers to controls whose purpose is to display other controls. The most basic examples are the Grid and StackLayout. These containers are frequently nested in order to finetune a UI, however, the downside is that each one adds a new branch in what is called a &amp;quot;visual tree', even if the control itself is not visible. When using many containers, it is useful to ask yourself if each container is really necessary, or if the visual tree can be simplified. &lt;br /&gt;
&lt;br /&gt;
The examples below show three different ways for showing the same content, each utilizing less controls, leading to a simpler visual tree. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;2 StackLayouts, 3 Labels&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;StackLayout&amp;gt;												&lt;br /&gt;
    &amp;lt;StackLayout Orientation=&amp;quot;Horizontal&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;Label Text=&amp;quot;{x:Static resources:UBIKIcons.IconName}&amp;quot; FontFamily=&amp;quot;{StaticResource UBIKSymbols}&amp;quot;/&amp;gt;						&lt;br /&gt;
        &amp;lt;Label Text=&amp;quot;Name&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/StackLayout&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;Label Text=&amp;quot;Description&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/StackLayout&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;1 Grid, 3 Labels&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Grid Grid.ColumnDefinitions=&amp;quot;24,*&amp;quot; Grid.RowDefinitions=&amp;quot;Auto,Auto&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label Text=&amp;quot;{x:Static resources:UBIKIcons.IconName}&amp;quot; FontFamily=&amp;quot;{StaticResource UBIKSymbols}&amp;quot;/&amp;gt;						&lt;br /&gt;
    &amp;lt;Label Grid.Column=&amp;quot;1&amp;quot; Text=&amp;quot;Name&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;Label &lt;br /&gt;
        Grid.Row=&amp;quot;1&amp;quot; &lt;br /&gt;
        Grid.ColumnSpan=&amp;quot;2&amp;quot; &lt;br /&gt;
        Text=&amp;quot;Description lorem ipsum...&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;1 Label&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Label&amp;gt;&lt;br /&gt;
    &amp;lt;Label.FormattedString&amp;gt;&lt;br /&gt;
        &amp;lt;FormattedText&amp;gt;&lt;br /&gt;
            &amp;lt;Span FontFamily=&amp;quot;{StaticResource UBIKSymbols}&amp;quot; Text=&amp;quot;{x:Static resources:UBIKIcons.IconName}&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;Span Text=&amp;quot;Name &amp;amp; #10;&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;Span Text=&amp;quot;Description lorem ipsum...&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/FormattedText&amp;gt;&lt;br /&gt;
    &amp;lt;/Label.FormattedString&amp;gt;&lt;br /&gt;
&amp;lt;/Label&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: &amp;amp; #10; (without the blank space) is the Mobile glyph code for a newline. The equivalent in UWP is &amp;amp; #x0a;.&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now imagine the UI element should have a colored background. You may be tempted to wrap everything in a Frame, however, you can just as easily assign color using the Background attribute on the StackLayout, Grid, or even the Label itself.&lt;br /&gt;
&lt;br /&gt;
Granted, this example is very simple, however, the point illustrated here is that you should fid creative ways to reduce the number of controls nested in your UI.&lt;br /&gt;
&lt;br /&gt;
Another thing to consider is how many times this particular UI definition will be rendered on screen. You have more freedom to be uneconomical in your use of controls when when designing items that will appear once on a page, such as the page header, rather than with item templates or control templates that are rendered several, or even dozens, of times in one view. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Layout Compression ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Alternatives to using Multiple Controls ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Performance analysis (Mobile only) {{Version/MobileSince|5.0}} ===&lt;br /&gt;
In the Mobile app, {{UBIK}} provides customizers a possibility to analyze the performance of specific UI elements by measuring the time it takes to render them. This can help customizers find performance weak spots in the entire UI and also serve as a benchmarking tool to verify the result of any improvement attempts.&lt;br /&gt;
The measurement is achieved through the use of the MeasurePerformanceBehavior. The concept of it is very similar to other behaviors, namely you attach it to any UI element in the XAML code (as long as it's a derivate of the [https://learn.microsoft.com/en-us/dotnet/api/microsoft.maui.controls.visualelement?view=net-maui-9.0 VisualElement], which should cover the vast majority of all UI element types).&lt;br /&gt;
* The behavior measures the time to render the UI element (which it attaches to).&lt;br /&gt;
** Note: The time measured for e.g UBIKChildArea doesn't include the render time for all UBIKChildItem's.&lt;br /&gt;
* You can attach multiple behaviors to multiple UI elements at the same time, one to each, in order to get the measurements of the different elements.&lt;br /&gt;
* The measurements are logged in the UBIKUIRenderingPerformance.log file under the app's Logs folder.&lt;br /&gt;
* You can and should assign a unique name to the Label property of the behavior, so that it's easy to identify the render time of the target element.&lt;br /&gt;
&lt;br /&gt;
The following is an example of attaching the behavior to the root Grid inside the UBIKChildItem template. It should effectively measure the time to render the UI for a child item.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Mobile&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
Namespace referenced in the code: &amp;lt;code&amp;gt;xmlns:behaviors=&amp;quot;clr-namespace:UBIK.MAUI.Behaviors;assembly=UBIK.MAUI&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Grid&amp;gt;&lt;br /&gt;
    &amp;lt;Grid.Behaviors&amp;gt;&lt;br /&gt;
        &amp;lt;behaviors:MeasurePerformanceBehavior Label=&amp;quot;UBIKChildItemRootGrid&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/Grid.Behaviors&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/Grid&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this, you should see log entries such as the following, one for every child item that you see when opening a content page.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;2025.12.03 13:39:35:4747 | Grid 'UBIKChildITEM_RootGrid' rendered in 28.3865 ms&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mobile|XAML Best practices]]&lt;br /&gt;
[[Category:Pages with broken file links|XAML Best practices]]&lt;br /&gt;
[[Category:XAML|XAML Best practices]]&lt;br /&gt;
&lt;br /&gt;
== Templating ==&lt;br /&gt;
Similar to styling single controls, presets featuring groups of controls can also be defined in UBIKThemes and used anywhere in the client. The benefit of this&lt;br /&gt;
&lt;br /&gt;
One simple example of this is an ItemTemplate. Project customizers should be familiar with ItemTemplates, which are defined in UBIKThemes and then applied to every item in a List, for example. However, such templates are not inherently connected to listviews, and can be used on any items control, or can even on their own, if the situation calls for it. The important thing to understand is that a content template is a standalone unit, defined in xaml to display particular data bindings, and perhaps react to various states.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Hint|Look at other interesting templates in UBIKThemes, such as &amp;quot;Badge&amp;quot; / &amp;quot;ChildCountBadge&amp;quot; in Mobile, or &amp;quot;UBIKObjectIndicators&amp;quot; in UWP to see more ideas for how templates can be utilized.}}&lt;br /&gt;
&lt;br /&gt;
=== Template Selectors ===&lt;br /&gt;
Various parts of the UBIK UI are dynamically swapped in based on specific conditions. One example is the UBIKPropertyDirectItemContainer.xaml, which serves as the base for an item in the property list, and which renders a different type-appropriate editing UI for each kind of property input (such as TextBox for manual input String, Double, or Integer; selection for link properties, or list-based String, Double, or Integer; clock and calendar pickers for DateTime; Lat., Lon., and Alt. input for geo coordinates, etc).&lt;br /&gt;
&lt;br /&gt;
The logical tree used by these selectors to render different UIs is documented in our article [[UBIK_Templates]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== DataTemplate vs. ControlTemplate in Mobile clients ===&lt;br /&gt;
There are two main types of templates that can be used in UBIK to define reusable clusters of controls. Ignoring the technical differences, the functional differences boil down to;&lt;br /&gt;
==== DataTemplate ====&lt;br /&gt;
DataTemplate is used for showing / interacting with various aspects of a data binding. &lt;br /&gt;
* Example 1: Consider a Child ItemTemplate, which is capable of displaying metadata like Title or SubTitle, MetaProperty collections, Classifications, Children and Documents. In this case, the '''context''' for the item template is one object, and we can bind to any of its data. &lt;br /&gt;
* Example 2: Consider a Property ItemTemplate, where we can view or edit a metaproperty. In this case, the '''context''' of the ItemTemplate would be a single property, and the bindings available would reflect that; we can bind to its Description, Value, DisplayString, Unit, or even its SortedValueRecords, if property change history is activated.&lt;br /&gt;
* Use a '''ContentControl''' or our custom '''controls:ContentControl''' (with the attribute ContentTemplate=&amp;quot;{DynamicResource ...}&amp;quot; and TemplateContext=&amp;quot;{Binding ...}&amp;quot;)  to display it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ControlTemplate ====&lt;br /&gt;
ControlTemplate is technically used for showing how a specific control can be used; for example, if you want to customize a new template for how a Button should appear. However, it can be used similar to the DataTemplate, with one added bonus; its ContentPresenter sub-control allows for dynamically adding content at every instance, as opposed to a single universal layout that is shared by all.&lt;br /&gt;
* For example: The screenshot below shows three areas navigated to by clicking on root objects. Each has a potentially large collection of their own metaclass of children, meaning that each page benefits from filters, but they do not filter the same properties. However, some details are common, such as the item and filter count texts, and the button to remove all filters. &lt;br /&gt;
[[File:Templating_ControlTemplate.jpg]] &lt;br /&gt;
* The general layout could be created with two columns, one for the counts and button, with the rest of the space dedicated to the individual filters. The template would then be applied one in each of the child areas, with their specific filters nested inside the ContentView used to display the filter. &lt;br /&gt;
* During runtime, the &amp;lt;ContentPresenter /&amp;gt; defined in the ControlTemplate will be replaced with whatever content is nested in the ContentView.&lt;br /&gt;
* Note that implicit styles can also be added to the ControlTemplate, and will be inherited by any content nested in the ContentView.&lt;br /&gt;
* Use a '''ContentView''' (with the attribute ControlTemplate=&amp;quot;{DynamicResource ...}&amp;quot;) to display it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|Since the ControlTemplate is not technically designed to work directly with data bindings, it does inherit the context from its ContentView by default. However this can be easily fixed by adding the &amp;lt;nowiki&amp;gt;BindingContext=&amp;quot;{TemplateBinding BindingContext}&amp;quot;&amp;lt;/nowiki&amp;gt; attribute to the root grid of the template.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Hint|An understanding of '''Contexts''' is fundamental to using templates, as this informs what data bindings are directly available. Some more information can be found at this article on [[Object_hierarchy_in_XAML:_NextLevel,_ParentLevel,_LinkedLevel#The_ContentViewModel.28s.29|the ContentViewModel]] }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ControlTemplate in UWP ===&lt;br /&gt;
The situation is much simpler in UWP, which only makes use of the ControlTemplate to define custom templates. The ControlTemplate in UWP inherits the context from its content control, so no equivalent to Mobile clients &amp;lt;nowiki&amp;gt;BindingContext=&amp;quot;{TemplateBinding BindingContext}&amp;quot;&amp;lt;/nowiki&amp;gt; is required.&lt;br /&gt;
 &lt;br /&gt;
The ContentControl is used to render an instance of a template.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Contexts and Context Switching ===&lt;br /&gt;
In xaml, every element in the UI is informed by a '''context'''. This is the data that is delivered by UBIK immediately when binding. Knowing the context that will be used by a content control is vital when using templates, as this directly affects what bindings you can prepare in your template. Furthermore, all content views that use the same template must have similar contexts, to a degree.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
Two of the more frequently customized elements are Objects and their Metaproperties. A template used for a UBIK object will have bindings such as Title, Values[PROPERTY], etc, whereas one designed for a Metaproperty will have DisplayValue, Description, Unit, and so on. Using a template designed for a UBIK object will have no benefit if the context applied to it is that of a property, and vice versa.&lt;br /&gt;
&lt;br /&gt;
==== Where does the context come from? ====&lt;br /&gt;
Context is inherited. When you begin customizing a xaml template, it generally has a known use, such as a child area, document viewer, or item in a property list, to name just a few of many. In these cases, the context is quite clear. However, when you begin creating general templates that can be used anywhere in the client, there will likely be the need to specify what context should be applied each time the template is used. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:XBP_ContentTemplates.png]]&lt;br /&gt;
&lt;br /&gt;
In the above example, we see a variety of property editing fields. To cut down on repetitive XAMLing, a template is created for inputting a single property, consisting in this case of Description, DisplayValue, a placeholder label, and some indicators such as whether the property is required or filled. In each case, the context needs to be set to a specific metaproperty defined on the 'controls:ContentControl' that hosts each instance of the template, through the TemplateContext attribute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ContentControl&lt;br /&gt;
    ContentTemplate=&amp;quot;{DynamicResource PropertyField_Required}&amp;quot;&lt;br /&gt;
    TemplateContext=&amp;quot;{Binding Properties.VisibleItems[MP_DETECTION]}&amp;quot; &amp;gt;&lt;br /&gt;
    &amp;lt;controls:ContentControl.GestureRecognizers&amp;gt;&lt;br /&gt;
        &amp;lt;TapGestureRecognizer Command=&amp;quot;{Binding Properties.VisibleItems[MP_DETECTION].PropertyClickedCommand}&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/controls:ContentControl.GestureRecognizers&amp;gt;&lt;br /&gt;
&amp;lt;/controls:ContentControl&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Hint|Adding the behavior to the ContentControl, rather than defining it in the template itself, allows flexibility in the customizing as different property-editing commands can be paired with the same UI based on the required functionality.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Context Switching ====&lt;br /&gt;
To repeat, context is almost always inherited. If you forget to assign a specific context to a content control (as in the above example), the context of the XAML element that hosts that content control will be used. When you think about it, any number of nested Grids still inherit the context of the area or item template they are hosted in. &lt;br /&gt;
&lt;br /&gt;
Context-switching is simply the name given to the act of assigning a different context to a particular control, when needed. It is also usually very simple to do:&lt;br /&gt;
&lt;br /&gt;
'''UWP'''&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
DataContext=&amp;quot;{Binding ...}&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Mobile(Xamarin)'''&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
BindingContext=&amp;quot;{Binding ...}&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The above attributes can be added to any control to change it's binding context.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Try this experiment:&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;TextBlock &lt;br /&gt;
    DataContext=&amp;quot;{Binding ParentLevel}&amp;quot;&lt;br /&gt;
    Text=&amp;quot;{Binding Title}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By using this code snippet, we expect to see the Title or the current object. However, because we have a context switch applied, we would instead see the Title of the parent object. For Mobile use '''Label''' instead of TextBlock and '''BindingContext''' instead of DataContext.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Attention|Using this technique to switch the context of a control does it for ''all bindings on that control''. Since the entire control is now 'focused' directly on a different context, existing bindings will need to be adapted. An easy example is the Visibility of the TextBlock, which we might still want to bind to certain conditions on the child object, while displaying the data of the parent. &lt;br /&gt;
&lt;br /&gt;
One exception is the controls:ContentControl, which through its TemplateContext attribute accepts the possibility to have a different context for its content, therefore decoupling the context of the template from the actual control, [[XAML_Best_practices#Context_Switching_And_Templates|as described below]].}}&lt;br /&gt;
&lt;br /&gt;
Furthermore, since context continues to be inherited, any controls contained within the context-switched one (imagine it's a Grid containing more elements, rather than a simple TextBlock) will all also have the context of ParentLevel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Context Switching And Templates ====&lt;br /&gt;
&lt;br /&gt;
===== '''DataTemplate''' =====&lt;br /&gt;
As described in the previous section, DataTemplates are designed to be used as templates for data contexts, therefore the content control used to render them, controls:ContentControl, has the TemplateContext property which allows you to set the binding context '''for the template'''. The important difference to note is that the controls:ContentControl itself will not use the TemplateContext, but rather the inherited context from its hosting xaml. &lt;br /&gt;
&lt;br /&gt;
Because they are independent of each other, it allows more sophisticated usage of binding contexts, for example, when ''Object A'' has ''Status B'', show ''Property C''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;UWP&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentControl (displayed on child area of Object A)&lt;br /&gt;
    Visibility=&amp;quot;{Binding Values[STATUS], Converter={StaticResource EqualToVisConverter}, ConverterParameter=B}&amp;quot;&lt;br /&gt;
    Content=&amp;quot;{Binding PropertyItems[PROPERTYC]}&amp;quot;&lt;br /&gt;
    ContentTemplate=&amp;quot;{StaticResource MyPropertyTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Mobile(Xamarin)&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;controls:ContentControl (displayed on child area of Object A)&lt;br /&gt;
    IsVisible=&amp;quot;{Binding Values[STATUS], Converter={StaticResource EqualityToBool}, ConverterParameter=B}&amp;quot;&lt;br /&gt;
    TemplateContext=&amp;quot;{Binding PropertyItems[PROPERTYC]}&amp;quot;&lt;br /&gt;
    ContentTemplate=&amp;quot;{StaticResource MyPropertyTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== '''ControlTemplate''' =====&lt;br /&gt;
On the other hand, since the ControlTemplate is not designed to be used this way, it has no inherent binding context attribute that can be assigned to it's content only. The only benefit of using a ControlTemplate over a DataTemplate is the possibility to nest dynamic content (that has not been defined in the original ControlTemplate) within in, by use of the &amp;lt;nowiki&amp;gt;&amp;lt;ContentPresenter... /&amp;gt;&amp;lt;/nowiki&amp;gt; attribute.&lt;br /&gt;
&lt;br /&gt;
To use it this way would therefore require a context switch on the ContentView used to render it, with the related adjustments required to bindings placed on the ContentView itself;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;UWP&amp;quot;&amp;gt;&lt;br /&gt;
No example yet.&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Mobile(Xamarin)&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView (displayed on child area of Object A)&lt;br /&gt;
    BindingContext=&amp;quot;{Binding PropertyItems[PROPERTYC]}&amp;quot;&lt;br /&gt;
    IsVisible=&amp;quot;{Binding CallingViewModel.Values[STATUS], Converter={StaticResource EqualityToBool}, ConverterParameter=B}&amp;quot;&lt;br /&gt;
    ControlTemplate=&amp;quot;{StaticResource MyOtherPropertyTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Hint|CallingViewModel (as used on the IsVisible attribute) can be added to a metaproperty's binding path to bind to its context object.}}&lt;br /&gt;
&lt;br /&gt;
{{Attention|Remember that Styling in Xaml is type-based, so you cannot use the same template with controls:ContentControl (ContentTemplate attribute) and ContentView (ControlTemplate attribute), as DataTemplate and ControlTemplate are technically different types.}}&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Performance ==&lt;br /&gt;
Diminishing the performance should not be the first priority but it also shouldn’t be the last. You should always think about retaining readability and consistency in your code by adding comments and using clear and significant code. But you also have to keep in mind that more code and lines mean more compiling, this can decrease the performance of your whole application. Just try to keep a good balance between these two factors in order to ease the life of customizers. They’ll surely stumble across your code in a few months and will maybe have a hard time to finalize a ten-minute task because they have to find out what every piece of code exactly does. Here are some examples which support the increase of performance.&amp;lt;br&amp;gt;&lt;br /&gt;
For example:&amp;lt;br&amp;gt;&lt;br /&gt;
* If you use the same resource on more than one XAML file, consider defining it in UBIKThemes (Resources Folder -&amp;gt; LocalState/XAML) rather than on each page. &amp;lt;br&amp;gt;&lt;br /&gt;
* Don't define UI elements you don't need for composition and use the default control templates whenever possible (these templates have already been tested and verified for load performance). &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Useful links for inefficient XAML code: &amp;lt;br&amp;gt;&lt;br /&gt;
* https://www.codemag.com/Article/1509091/XAML-Anti-Patterns-Layout-SNAFUs &amp;lt;br&amp;gt;&lt;br /&gt;
* https://docs.microsoft.com/en-us/windows/uwp/debug-test-perf/optimize-xaml-loading&lt;br /&gt;
&lt;br /&gt;
=== Using 'NextLevel' bindings ===&lt;br /&gt;
Performance can be impacted by attempting to show multiple levels of data (ie. child data, from the parent object) outside what is delivered by UBIK by default.&lt;br /&gt;
&lt;br /&gt;
For an in-depth explanation, and guidance on how to implement such functionality safely, please refer to this page [[Object_hierarchy_in_XAML:_NextLevel,_ParentLevel,_LinkedLevel]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing of UI ==&lt;br /&gt;
XAML can be sometimes very weird, there are dependencies or default values that you don’t see immediately. So, a good way to prevent millions of fixes for the customer, because the environment, different device or even a different windows version destroys your UI, is to write a test plan where you test your implementation. It’s important to see exactly your controls in action on their own and acting with each other, so you can prevent doing lots of ‘easy’ fixes.&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionStart}}&lt;br /&gt;
&lt;br /&gt;
== Improving performance on complex List item templates ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
Performance issues in XAML-based UI development often stem from unnecessary UI rendering and binding errors. Hidden elements remain in the UI tree, impacting performance, while premature bindings cause background errors. To optimize complex list item templates, UI content can be loaded only when needed, and binding errors can be reduced by applying view models at the control level. These improvements enhance efficiency, reduce log clutter, and improve maintainability.&lt;br /&gt;
&lt;br /&gt;
=== Technique 1: Loading UI content on demand ===&lt;br /&gt;
It was discovered that UI controls hidden with '''IsVisible=False''' remain in the UI tree. To improve performance on highly complex item templates, like UBIKTaskItem, rendered repeatedly such as in ListViews, a workaround can be applied to only load the UI content when the '''visibility''' binding condition is met. &lt;br /&gt;
&lt;br /&gt;
==== Previous Approach ====&lt;br /&gt;
Previously, we used '''IsVisible''' directly with a binding condition. The approach looked like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Label IsVisible=&amp;quot;{Binding MROViewModel.PreviousValue, Converter={StaticResource NullToNotBool}}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label.FormattedText&amp;gt;&lt;br /&gt;
        &amp;lt;FormattedString&amp;gt;&lt;br /&gt;
            &amp;lt;Span Text=&amp;quot;{Binding MROViewModel.PreviousValue}&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;Span Text=&amp;quot; &amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;Span Text=&amp;quot;{Binding MROViewModel.Unit}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/FormattedString&amp;gt;&lt;br /&gt;
    &amp;lt;/Label.FormattedText&amp;gt;&lt;br /&gt;
&amp;lt;/Label&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Improved Approach ====&lt;br /&gt;
To prevent unnecessary loading of UI elements when their '''visibility''' is False, it is possible to replace the UI content with a content hosting control, such as a '''ContentView''' or '''ContentControl'''. The original content should instead be defined as a template in '''UBIKThemes''', as shown below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ContentView&amp;gt;&lt;br /&gt;
    &amp;lt;ContentView.Triggers&amp;gt;&lt;br /&gt;
        &amp;lt;DataTrigger Binding=&amp;quot;{Binding MROViewModel.PreviousValue, Converter={StaticResource NullToNotBool}, TargetNullValue=false, FallbackValue=false}&amp;quot;&lt;br /&gt;
            Value=&amp;quot;True&amp;quot; TargetType=&amp;quot;ContentView&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;Setter Property=&amp;quot;ControlTemplate&amp;quot; Value=&amp;quot;{StaticResource PreviousValueTemplate}&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;
    &amp;lt;/ContentView.Triggers&amp;gt;&lt;br /&gt;
&amp;lt;/ContentView&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The important part of the snippet above is the '''DataTrigger'''. Through this technique, the '''ControlTemplate''' of the content hosting control is only set once the visibility condition is met, preventing the UI content from being loaded until it is explicitly required.&lt;br /&gt;
And the associated '''ControlTemplate''', located in UBIKThemes:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ControlTemplate x:Key=&amp;quot;PreviousValueTemplate&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Label&amp;gt;&lt;br /&gt;
        &amp;lt;Label.FormattedText&amp;gt;&lt;br /&gt;
            &amp;lt;FormattedString&amp;gt;&lt;br /&gt;
                &amp;lt;Span Text=&amp;quot;{TemplateBinding BindingContext.MROViewModel.PreviousValue}&amp;quot; /&amp;gt;&lt;br /&gt;
                &amp;lt;Span Text=&amp;quot; &amp;quot; /&amp;gt;&lt;br /&gt;
                &amp;lt;Span Text=&amp;quot;{TemplateBinding BindingContext.MROViewModel.Unit}&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/FormattedString&amp;gt;&lt;br /&gt;
        &amp;lt;/Label.FormattedText&amp;gt;&lt;br /&gt;
    &amp;lt;/Label&amp;gt;&lt;br /&gt;
&amp;lt;/ControlTemplate&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Why This Change?'''&lt;br /&gt;
* '''More Modular''': The separation into discrete templates makes individual UI elements reusable and maintainable.&lt;br /&gt;
* '''Better Performance''': Eliminates unnecessary loading of UI elements in the background, that are not visible to the user.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Technique 2: Reducing background Binding errors ===&lt;br /&gt;
&lt;br /&gt;
Complex item templates such as UBIKTaskItem were found to produce large numbers of '''errors''' while rendering, likely as bindings are being resolved before the relevant '''viewmodels''' can be loaded by the client. While these '''errors''' are temporary and not visible to the user, the cumulative effect of numerous binding errors raised while rendering items can be felt when navigating to pages with large numbers of items.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Attention|Unfortunately, these bindings errors are not normally logged in the UBIKDebug.log. Therefore, the recommendation is to use the following technique whenever using a ContentControl or controls:ContentControl.}}&lt;br /&gt;
&lt;br /&gt;
==== Previous Approach ====&lt;br /&gt;
Initially, we used a '''ContentControl''' with a direct '''ContentTemplate''' and '''TemplateContext''', as shown below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabs&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Mobile(Xamarin)&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
xmlns:ctrls=&amp;quot;clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;tab name=&amp;quot;Mobile(Maui)&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
xmlns:ctrls=&amp;quot;clr-namespace:UBIK.MAUI.Controls;assembly=UBIK.MAUI&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/tab&amp;gt;&lt;br /&gt;
&amp;lt;/tabs&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ctrls:ContentControl&lt;br /&gt;
    ContentTemplate=&amp;quot;{StaticResource TaskPropertyTemplateSelector}&amp;quot;&lt;br /&gt;
    TemplateContext=&amp;quot;{Binding MROViewModel}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Binding_logs.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Improved Approach ====&lt;br /&gt;
One workaround that reduced the number of '''binding errors''' encountered was to refer to '''viewmodels''' indirectly in the bindings.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = &amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ctrls:ContentControl x:Name=&amp;quot;TaskPropertyTempSelCtrl&amp;quot;&lt;br /&gt;
    BindingContext=&amp;quot;{Binding MROViewModel}&amp;quot;&lt;br /&gt;
    TemplateContext=&amp;quot;{Binding BindingContext, Source={x:Reference TaskPropertyTempSelCtrl}}&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/ctrls:ContentControl&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The previous example used an '''MROViewModel''' binding directly in the '''TemplateContext''' property of the '''&amp;lt;ctrls:ContentControl&amp;gt;.''' &lt;br /&gt;
However, a workaround that seems to avoid triggering background binding errors is to apply the '''MROViewModel''' to the '''&amp;lt;ctrls:ContentControl&amp;gt;''' itself via the '''BindingContext''' property, and then request that '''BindingContext''' using the x:Reference syntax seen in the '''TemplateContext''' property. &lt;br /&gt;
&lt;br /&gt;
'''Why This Change?'''&lt;br /&gt;
* '''Avoids Additional Binding Errors''': Using this workaround seems to prevent binding errors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{UnderConstructionEnd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Mobile|XAML Best practices]]&lt;br /&gt;
[[Category:Pages with broken file links|XAML Best practices]]&lt;br /&gt;
[[Category:XAML|XAML Best practices]]&lt;/div&gt;</summary>
		<author><name>ARU</name></author>	</entry>

	</feed>