-
Notifications
You must be signed in to change notification settings - Fork 241
/
DefaultGridItemBindableProperty.cs
executable file
·82 lines (77 loc) · 3.08 KB
/
DefaultGridItemBindableProperty.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
using System.ComponentModel;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Binding;
namespace Tizen.NUI.Components
{
public partial class DefaultGridItem
{
/// <summary>
/// BadgeProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty BadgeProperty = BindableProperty.Create(nameof(Badge), typeof(View), typeof(DefaultGridItem), null, propertyChanged: (bindable, oldValue, newValue) =>
{
var instance = (DefaultGridItem)bindable;
if (newValue != null)
{
instance.InternalBadge = newValue as View;
}
},
defaultValueCreator: (bindable) =>
{
var instance = (DefaultGridItem)bindable;
return instance.InternalBadge;
});
/// <summary>
/// TextProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty TextProperty = BindableProperty.Create(nameof(Text), typeof(string), typeof(DefaultGridItem), default(string), propertyChanged: (bindable, oldValue, newValue) =>
{
var instance = (DefaultGridItem)bindable;
if (newValue != null)
{
instance.InternalText = newValue as string;
}
},
defaultValueCreator: (bindable) =>
{
var instance = (DefaultGridItem)bindable;
return instance.InternalText;
});
/// <summary>
/// ResourceUrlProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty ResourceUrlProperty = BindableProperty.Create(nameof(ResourceUrl), typeof(string), typeof(DefaultGridItem), default(string), propertyChanged: (bindable, oldValue, newValue) =>
{
var instance = (DefaultGridItem)bindable;
if (newValue != null)
{
instance.InternalResourceUrl = newValue as string;
}
},
defaultValueCreator: (bindable) =>
{
var instance = (DefaultGridItem)bindable;
return instance.InternalResourceUrl;
});
/// <summary>
/// LabelOrientationTypeProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty LabelOrientationTypeProperty = BindableProperty.Create(nameof(LabelOrientationType), typeof(Tizen.NUI.Components.DefaultGridItem.LabelOrientation), typeof(DefaultGridItem), default(LabelOrientation), propertyChanged: (bindable, oldValue, newValue) =>
{
var instance = (DefaultGridItem)bindable;
if (newValue != null)
{
instance.InternalLabelOrientationType = (Tizen.NUI.Components.DefaultGridItem.LabelOrientation)newValue;
}
},
defaultValueCreator: (bindable) =>
{
var instance = (DefaultGridItem)bindable;
return instance.InternalLabelOrientationType;
});
}
}