summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml.UnitTests/Issues/Bz34037.xaml
blob: b5c364827fa43acd41e250b46ea4faf1bd09ed58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?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>