b2fc57fd3b098c2307943a3ab325e6d75cc6c99c
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / res / layout / TotalSample.xaml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <l:UIElement x:Class="Tizen.NUI.Devel.Tests.TotalSample"
3   xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
4   xmlns:l="clr-namespace:Tizen.NUI.Devel.Tests;assembly=Tizen.NUI.Devel.Tests"
5   xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
6
7     <l:UIElement Event="UIElementEvent">
8         <x:Arguments>
9             <l:UIElement-TestEnum>V1</l:UIElement-TestEnum>
10         </x:Arguments>
11         <l:UIElement.StrList>
12             <x:List x:TypeArguments="x:String">
13                 <x:String>123</x:String>
14                 <x:String>456</x:String>
15             </x:List>
16         </l:UIElement.StrList>
17     </l:UIElement>
18
19     <l:UIElement Child ="{x:Static l:UIElement.StaticChild}" />
20
21     <l:UIElement.XamlResources>
22         <ResourceDictionary>
23             <l:FloatToStringConverter x:Key="floatToStringConverter" />
24             <x:String x:Key="positionKey">
25                 200, 200
26             </x:String>
27             <XamlStyle x:Key="CustomStyle" TargetType="ImageView">
28                 <XamlStyle.Triggers>
29                     <Trigger TargetType="ImageView" Property="ResourceUrl" Value="*Resource*/arrow.jpg">
30                         <Trigger.Setters>
31                             <Setter Property="PositionX" Value="200" />
32                         </Trigger.Setters>
33                     </Trigger>
34                     <Trigger TargetType="ImageView" Property="ResourceUrl" Value="*Resource*/arrow.jpg">
35                         <Trigger.Setters>
36                             <Setter Property="PositionX" Value="500" />
37                         </Trigger.Setters>
38                     </Trigger>
39                 </XamlStyle.Triggers>
40             </XamlStyle>
41         </ResourceDictionary>
42     </l:UIElement.XamlResources>
43
44     <l:UIElement x:Name="t1" CharP="c" StringP="{Binding Path=.Size.Width, Converter={StaticResource floatToStringConverter}, StringFormat='{0:N0}'}" BindingContext="{x:Reference t2}" />
45     <l:UIElement x:Name="t2" Size="300, 200" Position="{DynamicResource positionKey}" />
46     <l:UIElement x:Name="t3" StringP="{Binding Source={x:Reference t2}, Path=Size.Height, Converter={StaticResource floatToStringConverter}, StringFormat='{0:N0}'}" />
47     <l:UIElement x:Name="t4" StringP="{Binding Source={x:Reference t2}, Path=StringIndexer.[0]}" />
48
49     <l:UIElement CustomBindableProperty="View.Position">
50     </l:UIElement>
51
52     <l:UIElement Event="StaticUIElementEvent">
53         <x:Arguments>
54             <x:List x:TypeArguments="x:Object">
55                 <x:Int32>123</x:Int32>
56                 <x:UInt32>123</x:UInt32>
57                 <x:Int64>123</x:Int64>
58                 <x:UInt64>123</x:UInt64>
59                 <x:Single>123</x:Single>
60                 <x:Double>123</x:Double>
61                 <x:Boolean>1</x:Boolean>
62                 <x:TimeSpan>1:2:3</x:TimeSpan>
63                 <x:Char>c</x:Char>
64                 <x:Int16>1</x:Int16>
65                 <x:UInt16>1</x:UInt16>
66                 <x:Byte>1</x:Byte>
67                 <x:SByte>1</x:SByte>
68                 <x:Uri>http://www.samsung.net</x:Uri>
69                 <x:Decimal>123</x:Decimal>
70             </x:List>
71         </x:Arguments>
72     </l:UIElement>
73
74     <l:UIElement>
75         <l:UIElement.Size>
76             <Null />
77         </l:UIElement.Size>
78         <l:UIElement.CustomList>
79             <ApplicationResourcePath FilePath="123" />
80             <x:String>456</x:String>
81         </l:UIElement.CustomList>
82     </l:UIElement>
83
84     <l:UIElement>
85         <l:UIElement.CustomList>
86             <l:CustomList>
87                 <ApplicationResourcePath FilePath="123" />
88                 <x:String>456</x:String>
89             </l:CustomList>
90         </l:UIElement.CustomList>
91     </l:UIElement>
92
93     <l:UIElement>
94         <x:Arguments>
95             <l:UIElement-TestNestType />
96         </x:Arguments>
97     </l:UIElement>
98
99     <l:UIElement>
100         <x:Arguments>
101             <l:UIElement />
102         </x:Arguments>
103     </l:UIElement>
104
105     <l:UIElement x:FactoryMethod="FactoryMethod">
106         <x:Arguments>
107             <x:Int32>1</x:Int32>
108             <x:String>str</x:String>
109             <x:Single>2.0</x:Single>
110         </x:Arguments>
111     </l:UIElement>
112
113     <l:UIElement x:FactoryMethod="FactoryMethodWithoutParams">
114     </l:UIElement>
115 </l:UIElement>