blob: da844ed0e314fff2fcfc6de5aacc05ae2a472fbc (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Xamarin.Forms.Xaml.UnitTests"
xmlns:d="ignoreme"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="Xamarin.Forms.Xaml.UnitTests.SetValue">
<ContentPage.Resources>
<ResourceDictionary>
<Color x:Key="purple">Purple</Color>
</ResourceDictionary>
</ContentPage.Resources>
<StackLayout>
<Label x:Name="label0" Text="Foo"/>
<Label x:Name="label1" Text="{Binding Path=labeltext}"/>
<Button x:Name="button0" Clicked="onButtonClicked" />
<Image x:Name="image0" IsOpaque="true" />
<Label x:Name="label2" Grid.Column="1">
<Grid.Row>2</Grid.Row>
</Label>
<ContentView x:Name="contentview0">
<ContentView.Content>
<Label x:Name="label3"/>
</ContentView.Content>
</ContentView>
<ContentView x:Name="contentview1">
<Label x:Name="label4"/>
</ContentView>
<StackLayout x:Name="stack0">
<StackLayout.Children>
<Label x:Name="label5"/>
<Label x:Name="label6"/>
</StackLayout.Children>
</StackLayout>
<StackLayout x:Name="stack1">
<Label x:Name="label7"/>
<Label x:Name="label8"/>
</StackLayout>
<StackLayout x:Name="stack2">
<StackLayout.Children>
<Label x:Name="label9"/>
</StackLayout.Children>
</StackLayout>
<StackLayout x:Name="stack3">
<Label x:Name="label10"/>
</StackLayout>
<Label x:Name="label11" Text="{Binding labeltext}"/>
<ListView x:Name="listView">
<ListView.ItemsSource>
<x:Array Type="{x:Type x:String}" x:Key="array">
<x:String>foo</x:String>
<x:String>bar</x:String>
</x:Array>
</ListView.ItemsSource>
</ListView>
<Label x:Name="label12" TextColor="Red" />
<Label x:Name="label13">
<Label.TextColor>
<Color>Pink</Color>
</Label.TextColor>
</Label>
<Grid x:Name="grid0">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
</Grid>
<Label x:Name="label14" AbsoluteLayout.LayoutFlags="PositionProportional,WidthProportional" />
<ContentView x:Name="content0">
<local:ConvertibleToView/>
</ContentView>
<StackLayout x:Name="stack4">
<local:ConvertibleToView/>
</StackLayout>
<ContentView x:Name="contentview2">
<ContentView.Content>
<Label />
<d:IgnorableElement />
</ContentView.Content>
</ContentView>
</StackLayout>
</ContentPage>
|