1 using System.ComponentModel;
2 using Tizen.NUI.BaseComponents;
3 using Tizen.NUI.Binding;
5 namespace Tizen.NUI.Components
7 public partial class Slider
12 [EditorBrowsable(EditorBrowsableState.Never)]
13 public static readonly BindableProperty DirectionProperty = BindableProperty.Create(nameof(Direction), typeof(DirectionType), typeof(Slider), default(DirectionType), propertyChanged: (bindable, oldValue, newValue) =>
15 var instance = (Slider)bindable;
18 instance.InternalDirection = (DirectionType)newValue;
21 defaultValueCreator: (bindable) =>
23 var instance = (Slider)bindable;
24 return instance.InternalDirection;
30 [EditorBrowsable(EditorBrowsableState.Never)]
31 public static readonly BindableProperty MinValueProperty = BindableProperty.Create(nameof(MinValue), typeof(float), typeof(Slider), default(float), propertyChanged: (bindable, oldValue, newValue) =>
33 var instance = (Slider)bindable;
36 instance.InternalMinValue = (float)newValue;
39 defaultValueCreator: (bindable) =>
41 var instance = (Slider)bindable;
42 return instance.InternalMinValue;
48 [EditorBrowsable(EditorBrowsableState.Never)]
49 public static readonly BindableProperty MaxValueProperty = BindableProperty.Create(nameof(MaxValue), typeof(float), typeof(Slider), default(float), propertyChanged: (bindable, oldValue, newValue) =>
51 var instance = (Slider)bindable;
54 instance.InternalMaxValue = (float)newValue;
57 defaultValueCreator: (bindable) =>
59 var instance = (Slider)bindable;
60 return instance.InternalMaxValue;
66 [EditorBrowsable(EditorBrowsableState.Never)]
67 public static readonly BindableProperty ThumbSizeProperty = BindableProperty.Create(nameof(ThumbSize), typeof(Size), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) =>
69 var instance = (Slider)bindable;
72 instance.InternalThumbSize = newValue as Size;
75 defaultValueCreator: (bindable) =>
77 var instance = (Slider)bindable;
78 return instance.InternalThumbSize;
82 /// ThumbImageURLProperty
84 [EditorBrowsable(EditorBrowsableState.Never)]
85 public static readonly BindableProperty ThumbImageURLProperty = BindableProperty.Create(nameof(ThumbImageURL), typeof(string), typeof(Slider), default(string), propertyChanged: (bindable, oldValue, newValue) =>
87 var instance = (Slider)bindable;
90 instance.InternalThumbImageURL = newValue as string;
93 defaultValueCreator: (bindable) =>
95 var instance = (Slider)bindable;
96 return instance.InternalThumbImageURL;
100 /// ThumbImageURLSelectorProperty
102 [EditorBrowsable(EditorBrowsableState.Never)]
103 public static readonly BindableProperty ThumbImageURLSelectorProperty = BindableProperty.Create(nameof(ThumbImageURLSelector), typeof(StringSelector), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) =>
105 var instance = (Slider)bindable;
106 if (newValue != null)
108 instance.InternalThumbImageURLSelector = newValue as StringSelector;
111 defaultValueCreator: (bindable) =>
113 var instance = (Slider)bindable;
114 return instance.InternalThumbImageURLSelector;
118 /// ThumbImageUrlProperty
120 [EditorBrowsable(EditorBrowsableState.Never)]
121 public static readonly BindableProperty ThumbImageUrlProperty = BindableProperty.Create(nameof(ThumbImageUrl), typeof(Selector<string>), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) =>
123 var instance = (Slider)bindable;
124 if (newValue != null)
126 instance.InternalThumbImageUrl = newValue as Tizen.NUI.BaseComponents.Selector<string>;
129 defaultValueCreator: (bindable) =>
131 var instance = (Slider)bindable;
132 return instance.InternalThumbImageUrl;
136 /// ThumbColorProperty
138 [EditorBrowsable(EditorBrowsableState.Never)]
139 public static readonly BindableProperty ThumbColorProperty = BindableProperty.Create(nameof(ThumbColor), typeof(Color), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) =>
141 var instance = (Slider)bindable;
142 if (newValue != null)
144 instance.InternalThumbColor = newValue as Color;
147 defaultValueCreator: (bindable) =>
149 var instance = (Slider)bindable;
150 return instance.InternalThumbColor;
154 /// BgTrackColorProperty
156 [EditorBrowsable(EditorBrowsableState.Never)]
157 public static readonly BindableProperty BgTrackColorProperty = BindableProperty.Create(nameof(BgTrackColor), typeof(Color), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) =>
159 var instance = (Slider)bindable;
160 if (newValue != null)
162 instance.InternalBgTrackColor = newValue as Color;
165 defaultValueCreator: (bindable) =>
167 var instance = (Slider)bindable;
168 return instance.InternalBgTrackColor;
172 /// SlidedTrackColorProperty
174 [EditorBrowsable(EditorBrowsableState.Never)]
175 public static readonly BindableProperty SlidedTrackColorProperty = BindableProperty.Create(nameof(SlidedTrackColor), typeof(Color), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) =>
177 var instance = (Slider)bindable;
178 if (newValue != null)
180 instance.InternalSlidedTrackColor = newValue as Color;
183 defaultValueCreator: (bindable) =>
185 var instance = (Slider)bindable;
186 return instance.InternalSlidedTrackColor;
190 /// WarningStartValueProperty
192 [EditorBrowsable(EditorBrowsableState.Never)]
193 public static readonly BindableProperty WarningStartValueProperty = BindableProperty.Create(nameof(WarningStartValue), typeof(float), typeof(Slider), default(float), propertyChanged: (bindable, oldValue, newValue) =>
195 var instance = (Slider)bindable;
196 if (newValue != null)
198 instance.InternalWarningStartValue = (float)newValue;
201 defaultValueCreator: (bindable) =>
203 var instance = (Slider)bindable;
204 return instance.InternalWarningStartValue;
208 /// WarningTrackColorProperty
210 [EditorBrowsable(EditorBrowsableState.Never)]
211 public static readonly BindableProperty WarningTrackColorProperty = BindableProperty.Create(nameof(WarningTrackColor), typeof(Color), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) =>
213 var instance = (Slider)bindable;
214 if (newValue != null)
216 instance.InternalWarningTrackColor = newValue as Color;
219 defaultValueCreator: (bindable) =>
221 var instance = (Slider)bindable;
222 return instance.InternalWarningTrackColor;
226 /// WarningSlidedTrackColorProperty
228 [EditorBrowsable(EditorBrowsableState.Never)]
229 public static readonly BindableProperty WarningSlidedTrackColorProperty = BindableProperty.Create(nameof(WarningSlidedTrackColor), typeof(Color), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) =>
231 var instance = (Slider)bindable;
232 if (newValue != null)
234 instance.InternalWarningSlidedTrackColor = newValue as Color;
237 defaultValueCreator: (bindable) =>
239 var instance = (Slider)bindable;
240 return instance.InternalWarningSlidedTrackColor;
244 /// WarningThumbImageUrlProperty
246 [EditorBrowsable(EditorBrowsableState.Never)]
247 public static readonly BindableProperty WarningThumbImageUrlProperty = BindableProperty.Create(nameof(WarningThumbImageUrl), typeof(Tizen.NUI.BaseComponents.Selector<string>), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) =>
249 var instance = (Slider)bindable;
250 if (newValue != null)
252 instance.InternalWarningThumbImageUrl = newValue as Tizen.NUI.BaseComponents.Selector<string>;
255 defaultValueCreator: (bindable) =>
257 var instance = (Slider)bindable;
258 return instance.InternalWarningThumbImageUrl;
262 /// WarningThumbColorProperty
264 [EditorBrowsable(EditorBrowsableState.Never)]
265 public static readonly BindableProperty WarningThumbColorProperty = BindableProperty.Create(nameof(WarningThumbColor), typeof(Color), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) =>
267 var instance = (Slider)bindable;
268 if (newValue != null)
270 instance.InternalWarningThumbColor = newValue as Color;
273 defaultValueCreator: (bindable) =>
275 var instance = (Slider)bindable;
276 return instance.InternalWarningThumbColor;
280 /// LowIndicatorImageURLProperty
282 [EditorBrowsable(EditorBrowsableState.Never)]
283 public static readonly BindableProperty LowIndicatorImageURLProperty = BindableProperty.Create(nameof(LowIndicatorImageURL), typeof(string), typeof(Slider), default(string), propertyChanged: (bindable, oldValue, newValue) =>
285 var instance = (Slider)bindable;
286 if (newValue != null)
288 instance.InternalLowIndicatorImageURL = newValue as string;
291 defaultValueCreator: (bindable) =>
293 var instance = (Slider)bindable;
294 return instance.InternalLowIndicatorImageURL;
298 /// HighIndicatorImageURLProperty
300 [EditorBrowsable(EditorBrowsableState.Never)]
301 public static readonly BindableProperty HighIndicatorImageURLProperty = BindableProperty.Create(nameof(HighIndicatorImageURL), typeof(string), typeof(Slider), default(string), propertyChanged: (bindable, oldValue, newValue) =>
303 var instance = (Slider)bindable;
304 if (newValue != null)
306 instance.InternalHighIndicatorImageURL = newValue as string;
309 defaultValueCreator: (bindable) =>
311 var instance = (Slider)bindable;
312 return instance.InternalHighIndicatorImageURL;
316 /// LowIndicatorTextContentProperty
318 [EditorBrowsable(EditorBrowsableState.Never)]
319 public static readonly BindableProperty LowIndicatorTextContentProperty = BindableProperty.Create(nameof(LowIndicatorTextContent), typeof(string), typeof(Slider), default(string), propertyChanged: (bindable, oldValue, newValue) =>
321 var instance = (Slider)bindable;
322 if (newValue != null)
324 instance.InternalLowIndicatorTextContent = newValue as string;
327 defaultValueCreator: (bindable) =>
329 var instance = (Slider)bindable;
330 return instance.InternalLowIndicatorTextContent;
334 /// HighIndicatorTextContentProperty
336 [EditorBrowsable(EditorBrowsableState.Never)]
337 public static readonly BindableProperty HighIndicatorTextContentProperty = BindableProperty.Create(nameof(HighIndicatorTextContent), typeof(string), typeof(Slider), default(string), propertyChanged: (bindable, oldValue, newValue) =>
339 var instance = (Slider)bindable;
340 if (newValue != null)
342 instance.InternalHighIndicatorTextContent = newValue as string;
345 defaultValueCreator: (bindable) =>
347 var instance = (Slider)bindable;
348 return instance.InternalHighIndicatorTextContent;
352 /// LowIndicatorSizeProperty
354 [EditorBrowsable(EditorBrowsableState.Never)]
355 public static readonly BindableProperty LowIndicatorSizeProperty = BindableProperty.Create(nameof(LowIndicatorSize), typeof(Size), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) =>
357 var instance = (Slider)bindable;
358 if (newValue != null)
360 instance.InternalLowIndicatorSize = newValue as Size;
363 defaultValueCreator: (bindable) =>
365 var instance = (Slider)bindable;
366 return instance.InternalLowIndicatorSize;
370 /// HighIndicatorSizeProperty
372 [EditorBrowsable(EditorBrowsableState.Never)]
373 public static readonly BindableProperty HighIndicatorSizeProperty = BindableProperty.Create(nameof(HighIndicatorSize), typeof(Size), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) =>
375 var instance = (Slider)bindable;
376 if (newValue != null)
378 instance.InternalHighIndicatorSize = newValue as Size;
381 defaultValueCreator: (bindable) =>
383 var instance = (Slider)bindable;
384 return instance.InternalHighIndicatorSize;
388 /// ValueIndicatorSizeProperty
390 [EditorBrowsable(EditorBrowsableState.Never)]
391 public static readonly BindableProperty ValueIndicatorSizeProperty = BindableProperty.Create(nameof(ValueIndicatorSize), typeof(Size), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) =>
393 var instance = (Slider)bindable;
394 if (newValue != null)
396 instance.InternalValueIndicatorSize = newValue as Size;
399 defaultValueCreator: (bindable) =>
401 var instance = (Slider)bindable;
402 return instance.InternalValueIndicatorSize;
406 /// ValueIndicatorUrlProperty
408 [EditorBrowsable(EditorBrowsableState.Never)]
409 public static readonly BindableProperty ValueIndicatorUrlProperty = BindableProperty.Create(nameof(ValueIndicatorUrl), typeof(string), typeof(Slider), default(string), propertyChanged: (bindable, oldValue, newValue) =>
411 var instance = (Slider)bindable;
412 if (newValue != null)
414 instance.InternalValueIndicatorUrl = newValue as string;
417 defaultValueCreator: (bindable) =>
419 var instance = (Slider)bindable;
420 return instance.InternalValueIndicatorUrl;
424 /// IsDiscreteProperty
426 [EditorBrowsable(EditorBrowsableState.Never)]
427 public static readonly BindableProperty IsDiscreteProperty = BindableProperty.Create(nameof(IsDiscrete), typeof(bool), typeof(Slider), default(bool), propertyChanged: (bindable, oldValue, newValue) =>
429 var instance = (Slider)bindable;
430 if (newValue != null)
432 instance.InternalIsDiscrete = (bool)newValue;
435 defaultValueCreator: (bindable) =>
437 var instance = (Slider)bindable;
438 return instance.InternalIsDiscrete;
442 /// DiscreteValueProperty
444 [EditorBrowsable(EditorBrowsableState.Never)]
445 public static readonly BindableProperty DiscreteValueProperty = BindableProperty.Create(nameof(DiscreteValue), typeof(float), typeof(Slider), default(float), propertyChanged: (bindable, oldValue, newValue) =>
447 var instance = (Slider)bindable;
448 if (newValue != null)
450 instance.InternalDiscreteValue = (float)newValue;
453 defaultValueCreator: (bindable) =>
455 var instance = (Slider)bindable;
456 return instance.InternalDiscreteValue;