using System.ComponentModel; using Tizen.NUI.BaseComponents; using Tizen.NUI.Binding; namespace Tizen.NUI.Components { public partial class Slider { /// /// DirectionProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty DirectionProperty = BindableProperty.Create(nameof(Direction), typeof(DirectionType), typeof(Slider), default(DirectionType), propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalDirection = (DirectionType)newValue; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalDirection; }); /// /// MinValueProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty MinValueProperty = BindableProperty.Create(nameof(MinValue), typeof(float), typeof(Slider), default(float), propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalMinValue = (float)newValue; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalMinValue; }); /// /// MaxValueProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty MaxValueProperty = BindableProperty.Create(nameof(MaxValue), typeof(float), typeof(Slider), default(float), propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalMaxValue = (float)newValue; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalMaxValue; }); /// /// ThumbSizeProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty ThumbSizeProperty = BindableProperty.Create(nameof(ThumbSize), typeof(Size), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalThumbSize = newValue as Size; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalThumbSize; }); /// /// ThumbImageURLProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty ThumbImageURLProperty = BindableProperty.Create(nameof(ThumbImageURL), typeof(string), typeof(Slider), default(string), propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalThumbImageURL = newValue as string; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalThumbImageURL; }); /// /// ThumbImageURLSelectorProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty ThumbImageURLSelectorProperty = BindableProperty.Create(nameof(ThumbImageURLSelector), typeof(StringSelector), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalThumbImageURLSelector = newValue as StringSelector; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalThumbImageURLSelector; }); /// /// ThumbImageUrlProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty ThumbImageUrlProperty = BindableProperty.Create(nameof(ThumbImageUrl), typeof(Selector), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalThumbImageUrl = newValue as Tizen.NUI.BaseComponents.Selector; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalThumbImageUrl; }); /// /// ThumbColorProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty ThumbColorProperty = BindableProperty.Create(nameof(ThumbColor), typeof(Color), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalThumbColor = newValue as Color; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalThumbColor; }); /// /// BgTrackColorProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty BgTrackColorProperty = BindableProperty.Create(nameof(BgTrackColor), typeof(Color), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalBgTrackColor = newValue as Color; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalBgTrackColor; }); /// /// SlidedTrackColorProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty SlidedTrackColorProperty = BindableProperty.Create(nameof(SlidedTrackColor), typeof(Color), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalSlidedTrackColor = newValue as Color; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalSlidedTrackColor; }); /// /// WarningStartValueProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty WarningStartValueProperty = BindableProperty.Create(nameof(WarningStartValue), typeof(float), typeof(Slider), default(float), propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalWarningStartValue = (float)newValue; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalWarningStartValue; }); /// /// WarningTrackColorProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty WarningTrackColorProperty = BindableProperty.Create(nameof(WarningTrackColor), typeof(Color), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalWarningTrackColor = newValue as Color; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalWarningTrackColor; }); /// /// WarningSlidedTrackColorProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty WarningSlidedTrackColorProperty = BindableProperty.Create(nameof(WarningSlidedTrackColor), typeof(Color), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalWarningSlidedTrackColor = newValue as Color; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalWarningSlidedTrackColor; }); /// /// WarningThumbImageUrlProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty WarningThumbImageUrlProperty = BindableProperty.Create(nameof(WarningThumbImageUrl), typeof(Tizen.NUI.BaseComponents.Selector), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalWarningThumbImageUrl = newValue as Tizen.NUI.BaseComponents.Selector; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalWarningThumbImageUrl; }); /// /// WarningThumbColorProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty WarningThumbColorProperty = BindableProperty.Create(nameof(WarningThumbColor), typeof(Color), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalWarningThumbColor = newValue as Color; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalWarningThumbColor; }); /// /// LowIndicatorImageURLProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty LowIndicatorImageURLProperty = BindableProperty.Create(nameof(LowIndicatorImageURL), typeof(string), typeof(Slider), default(string), propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalLowIndicatorImageURL = newValue as string; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalLowIndicatorImageURL; }); /// /// HighIndicatorImageURLProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty HighIndicatorImageURLProperty = BindableProperty.Create(nameof(HighIndicatorImageURL), typeof(string), typeof(Slider), default(string), propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalHighIndicatorImageURL = newValue as string; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalHighIndicatorImageURL; }); /// /// LowIndicatorTextContentProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty LowIndicatorTextContentProperty = BindableProperty.Create(nameof(LowIndicatorTextContent), typeof(string), typeof(Slider), default(string), propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalLowIndicatorTextContent = newValue as string; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalLowIndicatorTextContent; }); /// /// HighIndicatorTextContentProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty HighIndicatorTextContentProperty = BindableProperty.Create(nameof(HighIndicatorTextContent), typeof(string), typeof(Slider), default(string), propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalHighIndicatorTextContent = newValue as string; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalHighIndicatorTextContent; }); /// /// LowIndicatorSizeProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty LowIndicatorSizeProperty = BindableProperty.Create(nameof(LowIndicatorSize), typeof(Size), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalLowIndicatorSize = newValue as Size; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalLowIndicatorSize; }); /// /// HighIndicatorSizeProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty HighIndicatorSizeProperty = BindableProperty.Create(nameof(HighIndicatorSize), typeof(Size), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalHighIndicatorSize = newValue as Size; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalHighIndicatorSize; }); /// /// ValueIndicatorSizeProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty ValueIndicatorSizeProperty = BindableProperty.Create(nameof(ValueIndicatorSize), typeof(Size), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalValueIndicatorSize = newValue as Size; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalValueIndicatorSize; }); /// /// ValueIndicatorUrlProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty ValueIndicatorUrlProperty = BindableProperty.Create(nameof(ValueIndicatorUrl), typeof(string), typeof(Slider), default(string), propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalValueIndicatorUrl = newValue as string; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalValueIndicatorUrl; }); /// /// IsDiscreteProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty IsDiscreteProperty = BindableProperty.Create(nameof(IsDiscrete), typeof(bool), typeof(Slider), default(bool), propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalIsDiscrete = (bool)newValue; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalIsDiscrete; }); /// /// DiscreteValueProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty DiscreteValueProperty = BindableProperty.Create(nameof(DiscreteValue), typeof(float), typeof(Slider), default(float), propertyChanged: (bindable, oldValue, newValue) => { var instance = (Slider)bindable; if (newValue != null) { instance.InternalDiscreteValue = (float)newValue; } }, defaultValueCreator: (bindable) => { var instance = (Slider)bindable; return instance.InternalDiscreteValue; }); } }