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

25 строки
1023 B
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.Issue2016">
<StackLayout>
<Switch x:Name="a0" />
<Switch x:Name="b0" />
<Switch x:Name="s0">
<Switch.Triggers>
<MultiTrigger TargetType="Switch">
<MultiTrigger.Conditions>
<BindingCondition Binding="{Binding Source={x:Reference a0}, Path=IsToggled}" Value="True" />
<BindingCondition Binding="{Binding Source={x:Reference b0}, Path=IsToggled}" Value="True" />
</MultiTrigger.Conditions>
<Setter Property="Switch.IsToggled" Value="True" />
</MultiTrigger>
</Switch.Triggers>
</Switch>
<Switch x:Name="t0">
<Switch.Triggers>
<DataTrigger TargetType="Switch" Binding="{Binding Source={x:Reference a0}, Path=IsToggled}" Value="True">
<Setter Property="Switch.IsToggled" Value="True" />
</DataTrigger>
</Switch.Triggers>
</Switch>
</StackLayout>
</ContentPage>