maui-linux/Xamarin.Forms.Xaml.UnitTests/Issues/Bz34037.xaml

37 строки
1.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Xamarin.Forms.Xaml.UnitTests.Bz34037"
xmlns:local="clr-namespace:Xamarin.Forms.Xaml.UnitTests"
x:Name="PageRoot">
<ContentPage.Resources>
<ResourceDictionary>
<local:Bz34037Converter0 x:Key="MyConverter0" />
<local:Bz34037Converter1 x:Key="MyConverter1" />
</ResourceDictionary>
</ContentPage.Resources>
<StackLayout>
<Switch x:Name="s0">
<Switch.Triggers>
<MultiTrigger TargetType="Switch">
<MultiTrigger.Conditions>
<BindingCondition Value="True"
Binding="{Binding Property, Source={x:Reference PageRoot}, Converter={local:Bz34037Converter0}, ConverterParameter={x:Type x:String}}" />
</MultiTrigger.Conditions>
<Setter Property="Switch.IsToggled" Value="True" />
</MultiTrigger>
</Switch.Triggers>
</Switch>
<Switch x:Name="s1">
<Switch.Triggers>
<MultiTrigger TargetType="Switch">
<MultiTrigger.Conditions>
<BindingCondition Value="True"
Binding="{Binding Property, ConverterParameter={x:Type x:String}, Source={x:Reference PageRoot}, Converter={local:Bz34037Converter1}}" />
</MultiTrigger.Conditions>
<Setter Property="Switch.IsToggled" Value="True" />
</MultiTrigger>
</Switch.Triggers>
</Switch>
</StackLayout>
</ContentPage>