1 using System.ComponentModel;
2 using Tizen.NUI.BaseComponents;
3 using Tizen.NUI.Binding;
5 namespace Tizen.NUI.Components
7 public partial class Pagination
10 /// LastIndicatorImageUrlProperty
12 [EditorBrowsable(EditorBrowsableState.Never)]
13 public static readonly BindableProperty LastIndicatorImageUrlProperty = BindableProperty.Create(nameof(LastIndicatorImageUrl), typeof(Tizen.NUI.BaseComponents.Selector<string>), typeof(Pagination), null, propertyChanged: (bindable, oldValue, newValue) =>
15 var instance = (Pagination)bindable;
18 instance.InternalLastIndicatorImageUrl = newValue as Selector<string>;
21 defaultValueCreator: (bindable) =>
23 var instance = (Pagination)bindable;
24 return instance.InternalLastIndicatorImageUrl;
28 /// IndicatorCountProperty
30 [EditorBrowsable(EditorBrowsableState.Never)]
31 public static readonly BindableProperty IndicatorCountProperty = BindableProperty.Create(nameof(IndicatorCount), typeof(int), typeof(Pagination), default(int), propertyChanged: (bindable, oldValue, newValue) =>
33 var instance = (Pagination)bindable;
36 instance.InternalIndicatorCount = (int)newValue;
39 defaultValueCreator: (bindable) =>
41 var instance = (Pagination)bindable;
42 return instance.InternalIndicatorCount;
46 /// IndicatorColorProperty
48 [EditorBrowsable(EditorBrowsableState.Never)]
49 public static readonly BindableProperty IndicatorColorProperty = BindableProperty.Create(nameof(IndicatorColor), typeof(Color), typeof(Pagination), null, propertyChanged: (bindable, oldValue, newValue) =>
51 var instance = (Pagination)bindable;
54 instance.InternalIndicatorColor = newValue as Color;
57 defaultValueCreator: (bindable) =>
59 var instance = (Pagination)bindable;
60 return instance.InternalIndicatorColor;
64 /// SelectedIndicatorColorProperty
66 [EditorBrowsable(EditorBrowsableState.Never)]
67 public static readonly BindableProperty SelectedIndicatorColorProperty = BindableProperty.Create(nameof(SelectedIndicatorColor), typeof(Color), typeof(Pagination), null, propertyChanged: (bindable, oldValue, newValue) =>
69 var instance = (Pagination)bindable;
72 instance.InternalSelectedIndicatorColor = newValue as Color;
75 defaultValueCreator: (bindable) =>
77 var instance = (Pagination)bindable;
78 return instance.InternalSelectedIndicatorColor;
82 /// SelectedIndexProperty
84 [EditorBrowsable(EditorBrowsableState.Never)]
85 public static readonly BindableProperty SelectedIndexProperty = BindableProperty.Create(nameof(SelectedIndex), typeof(int), typeof(Pagination), default(int), propertyChanged: (bindable, oldValue, newValue) =>
87 var instance = (Pagination)bindable;
90 instance.InternalSelectedIndex = (int)newValue;
93 defaultValueCreator: (bindable) =>
95 var instance = (Pagination)bindable;
96 return instance.InternalSelectedIndex;