2cf367d2bb27f9d569cd223c118b76d1a7aed75b
[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     <!--Cover CreateLanguagePrimitive-->
53     <l:UIElement Event="StaticUIElementEvent">
54         <x:Arguments>
55             <x:List x:TypeArguments="x:Object">
56                 <x:Int32>123</x:Int32>
57                 <x:UInt32>123</x:UInt32>
58                 <x:Int64>123</x:Int64>
59                 <x:UInt64>123</x:UInt64>
60                 <x:Single>123</x:Single>
61                 <x:Double>123</x:Double>
62                 <x:Boolean>1</x:Boolean>
63                 <x:TimeSpan>1:2:3</x:TimeSpan>
64                 <x:Char>c</x:Char>
65                 <x:Int16>1</x:Int16>
66                 <x:UInt16>1</x:UInt16>
67                 <x:Byte>1</x:Byte>
68                 <x:SByte>1</x:SByte>
69                 <x:Uri>http://www.samsung.net</x:Uri>
70                 <x:Decimal>123</x:Decimal>
71             </x:List>
72         </x:Arguments>
73     </l:UIElement>
74
75     <l:UIElement>
76         <l:UIElement.Size>
77             <Null />
78         </l:UIElement.Size>
79         <l:UIElement.CustomList>
80             <ApplicationResourcePath FilePath="123" />
81             <x:String>456</x:String>
82         </l:UIElement.CustomList>
83     </l:UIElement>
84
85     <l:UIElement>
86         <l:UIElement.CustomList>
87             <l:CustomList>
88                 <ApplicationResourcePath FilePath="123" />
89                 <x:String>456</x:String>
90             </l:CustomList>
91         </l:UIElement.CustomList>
92     </l:UIElement>
93
94     <l:UIElement>
95         <x:Arguments>
96             <l:UIElement-TestNestType />
97         </x:Arguments>
98     </l:UIElement>
99
100     <l:UIElement>
101         <x:Arguments>
102             <l:UIElement />
103         </x:Arguments>
104     </l:UIElement>
105
106     <l:UIElement x:FactoryMethod="FactoryMethod">
107         <x:Arguments>
108             <x:Int32>1</x:Int32>
109             <x:String>str</x:String>
110             <x:Single>2.0</x:Single>
111         </x:Arguments>
112     </l:UIElement>
113
114     <l:UIElement x:FactoryMethod="FactoryMethodWithoutParams">
115     </l:UIElement>
116 </l:UIElement>