Jump to: navigation, search

Changes


HowTo:Convert Xamarin XAMLs to Maui

1,833 bytes removed, 12 August
/* Remove Avoid Redundant ControlTemplate in DataTriggers section due to duplicate information & redundancy */
| <syntaxhighlight lang="xml">[issue on iOS only] UBIKThemes: SearchBar style: <Setter Property="BackgroundColor" Value="Transparent" /></syntaxhighlight>
| <syntaxhighlight lang="xml">Delete this setter</syntaxhighlight>
|}
=== Avoid Redundant ControlTemplate in DataTriggers ===
'''This is about finding ControlTemplates that are set in DataTriggers in customized Xamls. When the same template is already set as a ContentView default ControlTemplate, it is recommended to remove the default ControlTemplate on the ContentView.''' For details refer to [[Xamarin_XAML#Conflicting_Triggers|Conflicting Triggers]].
{| class="wikitable"
! Xamarin
! MAUI
|-
| <syntaxhighlight lang="xml"><ContentView x:Name="containerName" ControlTemplate="{StaticResource YourTemplate1}">
<ContentView.Triggers>
<DataTrigger
Binding="{Binding Source={x:Reference containerName}, Path=...}"
TargetType="ContentView"
Value="true">
<Setter Property="ControlTemplate"
Value="{StaticResource YourTemplate1}" />
</DataTrigger>
...
</ContentView.Triggers>
</ContentView></syntaxhighlight>
| <syntaxhighlight lang="xml"><ContentView x:Name="containerName">
<ContentView.Triggers>
<DataTrigger
Binding="{Binding Source={x:Reference containerName}, Path=...}"
TargetType="ContentView"
Value="true">
<Setter Property="ControlTemplate"
Value="{StaticResource YourTemplate1}" />
</DataTrigger>
...
</ContentView.Triggers>
</ContentView></syntaxhighlight>
|}
[[Category:How-To|Convert Xamarin XAMLs to Maui]]
[[Category:MAUI|Convert Xamarin XAMLs to Maui]]
[[Category:XAML|Convert Xamarin XAMLs to Maui]]
=== Remove TapGestureRecognizer from Main Item ===
|}
[[Category:How-To|Convert Xamarin XAMLs to Maui]][[Category:MAUI|Convert Xamarin XAMLs to Maui]][[Category:XAML|Convert Xamarin XAMLs to Maui]]
=== Remove HeadlessLayout style ===
|}
[[Category:How-To|Convert Xamarin XAMLs to Maui]][[Category:MAUI|Convert Xamarin XAMLs to Maui]][[Category:XAML|Convert Xamarin XAMLs to Maui]]
=== Rename SfPullToRefresh properties ===
580
edits