-
Notifications
You must be signed in to change notification settings - Fork 247
/
PopupBindableProperty.cs
executable file
·134 lines (127 loc) · 5.02 KB
/
PopupBindableProperty.cs
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
using System.ComponentModel;
using Tizen.NUI.Binding;
namespace Tizen.NUI.Components
{
public partial class Popup
{
/// <summary>
/// TitleTextProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty TitleTextProperty = BindableProperty.Create(nameof(TitleText), typeof(string), typeof(Popup), default(string), propertyChanged: (bindable, oldValue, newValue) =>
{
var instance = (Popup)bindable;
if (newValue != null)
{
instance.InternalTitleText = newValue as string;
}
},
defaultValueCreator: (bindable) =>
{
var instance = (Popup)bindable;
return instance.InternalTitleText;
});
/// <summary>
/// TitlePointSizeProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty TitlePointSizeProperty = BindableProperty.Create(nameof(TitlePointSize), typeof(float), typeof(Popup), default(float), propertyChanged: (bindable, oldValue, newValue) =>
{
var instance = (Popup)bindable;
if (newValue != null)
{
instance.InternalTitlePointSize = (float)newValue;
}
},
defaultValueCreator: (bindable) =>
{
var instance = (Popup)bindable;
return instance.InternalTitlePointSize;
});
/// <summary>
/// TitleTextColorProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty TitleTextColorProperty = BindableProperty.Create(nameof(TitleTextColor), typeof(Color), typeof(Popup), null, propertyChanged: (bindable, oldValue, newValue) =>
{
var instance = (Popup)bindable;
if (newValue != null)
{
instance.InternalTitleTextColor = newValue as Color;
}
},
defaultValueCreator: (bindable) =>
{
var instance = (Popup)bindable;
return instance.InternalTitleTextColor;
});
/// <summary>
/// TitleTextHorizontalAlignmentProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty TitleTextHorizontalAlignmentProperty = BindableProperty.Create(nameof(TitleTextHorizontalAlignment), typeof(HorizontalAlignment), typeof(Popup), default(HorizontalAlignment), propertyChanged: (bindable, oldValue, newValue) =>
{
var instance = (Popup)bindable;
if (newValue != null)
{
instance.InternalTitleTextHorizontalAlignment = (HorizontalAlignment)newValue;
}
},
defaultValueCreator: (bindable) =>
{
var instance = (Popup)bindable;
return instance.InternalTitleTextHorizontalAlignment;
});
/// <summary>
/// TitleTextPositionProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty TitleTextPositionProperty = BindableProperty.Create(nameof(TitleTextPosition), typeof(Position), typeof(Popup), null, propertyChanged: (bindable, oldValue, newValue) =>
{
var instance = (Popup)bindable;
if (newValue != null)
{
instance.InternalTitleTextPosition = newValue as Position;
}
},
defaultValueCreator: (bindable) =>
{
var instance = (Popup)bindable;
return instance.InternalTitleTextPosition;
});
/// <summary>
/// TitleHeightProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty TitleHeightProperty = BindableProperty.Create(nameof(TitleHeight), typeof(int), typeof(Popup), default(int), propertyChanged: (bindable, oldValue, newValue) =>
{
var instance = (Popup)bindable;
if (newValue != null)
{
instance.InternalTitleHeight = (int)newValue;
}
},
defaultValueCreator: (bindable) =>
{
var instance = (Popup)bindable;
return instance.InternalTitleHeight;
});
/// <summary>
/// ButtonCountProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty ButtonCountProperty = BindableProperty.Create(nameof(ButtonCount), typeof(int), typeof(Popup), default(int), propertyChanged: (bindable, oldValue, newValue) =>
{
var instance = (Popup)bindable;
if (newValue != null)
{
instance.InternalButtonCount = (int)newValue;
}
},
defaultValueCreator: (bindable) =>
{
var instance = (Popup)bindable;
return instance.InternalButtonCount;
});
}
}