[NUI] Update TCs of NUI.Devel.
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / public / Xaml / TotalSample / UIElement.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Threading.Tasks;
6 using Tizen.NUI.BaseComponents;
7 using Tizen.NUI.Binding;
8
9 namespace Tizen.NUI.Devel.Tests
10 {
11     public class UIElement : View, IResourcesProvider
12     {
13         public static readonly BindableProperty IntPProperty = BindableProperty.Create(nameof(IntP), typeof(int), typeof(UIElement), 0, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
14         {
15         }),
16         defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
17         {
18             return 0;
19         }));
20
21         public static readonly BindableProperty StringPProperty = BindableProperty.Create(nameof(StringP), typeof(string), typeof(UIElement), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
22         {
23             (bindable as UIElement).stringP = newValue as string;
24         }),
25         defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
26         {
27             return (bindable as UIElement).stringP;
28         }));
29
30         public static readonly BindableProperty FloatPProperty = BindableProperty.Create(nameof(FloatP), typeof(float), typeof(UIElement), 0.0f, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
31         {
32         }),
33         defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
34         {
35             return 0.0f;
36         }));
37
38         public UIElement()
39         {
40
41         }
42
43         public UIElement(int p)
44         {
45
46         }
47
48         public UIElement(int[] p)
49         {
50
51         }
52
53         public enum TestEnum
54         {
55             V1,
56             V2
57         }
58
59         public UIElement(TestEnum p)
60         {
61
62         }
63
64         public class TestNestType
65         {
66             public TestNestType(int p = 0)
67             {
68
69             }
70         }
71
72         public UIElement(TestNestType p)
73         {
74
75         }
76
77         public UIElement(UIElement p)
78         {
79
80         }
81
82         public static UIElement FactoryMethod(int p1, string p2, float p3)
83         {
84             return new UIElement();
85         }
86
87         public int IntP
88         {
89             get
90             {
91                 return (int)GetValue(IntPProperty);
92             }
93             set
94             {
95                 SetValue(IntPProperty, value);
96             }
97         }
98
99         private string stringP;
100         public string StringP
101         {
102             get
103             {
104                 return (string)GetValue(StringPProperty);
105             }
106             set
107             {
108                 SetValue(StringPProperty, value);
109             }
110         }
111
112         public float FloatP
113         {
114             get
115             {
116                 return (float)GetValue(FloatPProperty);
117             }
118             set
119             {
120                 SetValue(FloatPProperty, value);
121             }
122         }
123     }
124 }