blob: bf44299b6fa7eac502f957430f123bf98cc9cd31 (
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
|
<?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.OnPlatform">
<StackLayout>
<Label x:Name="label0">
<Label.IsVisible>
<OnPlatform x:TypeArguments="x:Boolean">
<OnPlatform.iOS>true</OnPlatform.iOS>
<OnPlatform.Android>false</OnPlatform.Android>
</OnPlatform>
</Label.IsVisible>
<Label.WidthRequest>
<OnPlatform x:TypeArguments="x:Double">
<OnPlatform.iOS>20</OnPlatform.iOS>
<OnPlatform.Android>30</OnPlatform.Android>
</OnPlatform>
</Label.WidthRequest>
<Label.Text>
<OnPlatform x:TypeArguments="x:String">
<OnPlatform.iOS>Foo</OnPlatform.iOS>
<OnPlatform.Android>Bar</OnPlatform.Android>
</OnPlatform>
</Label.Text>
</Label>
</StackLayout>
</ContentPage>
|