Changes
/* DataTrigger permanently blocks manual changes {{Version/MobileSince|5.0.0}} */
{{Hint|Maui ranks a value applied by an active DataTrigger's Setter higher than a manual property write (e.g. a user's tap). Every manual write attempt is silently discarded while the trigger's condition remains true.}}
As a workaround, do not use DataTrigger for a property that should be data-driven once and then freely user-editable afterwards. Use the existing '''DataChangedBehavior''' and '''SetPropertyAction''' pattern instead. {| class="wikitable" style="widthFor an example click [[HowTo:100%; tableConvert_Xamarin_XAMLs_to_Maui#Pre-layout:fixed;"! style="width:50%;" selecting_a_tab_based_on_a_metaclass_or_property| Xamarin! style="width:50%;" | MAUI|-|<syntaxhighlight lang="xml"><controls:UBIKTabViewhere]].Triggers> <DataTrigger TargetType="controls:UBIKTabView" Binding="{Binding Content.MetaUID, Converter={StaticResource EqualityToBool}, ConverterParameter='b82accb3-7437-429d-aed9-08dfdd5a9e59'}" Value="True"> <Setter Property="SelectedIndex" Value="1" /> </DataTrigger></controls:UBIKTabView.Triggers></syntaxhighlight>||<syntaxhighlight lang="xml">xmlns:behaviors="clr-namespace:UBIK.MAUI.Behaviors;assembly=UBIK.MAUI"...<controls:UBIKTabView.Behaviors> <behaviors:DataChangedBehavior Binding="{Binding Content.MetaUID, Converter={StaticResource EqualityToBool}, ConverterParameter='b82accb3-7437-429d-aed9-08dfdd5a9e59'}" ComparisonCondition="Equal" Value="True"> <behaviors:SetPropertyAction PropertyName="SelectedIndex" TargetObject="{Binding Source={x:Reference ContentTabs}}" Value="1" /> </behaviors:DataChangedBehavior></controls:UBIKTabView.Behaviors></syntaxhighlight>|-|}
{{Attention|This is not limited to tab selection. The same problem can occur wherever a DataTrigger, Trigger, MultiTrigger sets a property that a user (or code-behind) is also meant to change afterwards, for example:}}
