}
else
{
- return (Direction)GetInternalScrollingDirectionProperty(this);
+ return InternalScrollingDirection;
}
}
set
}
else
{
- SetInternalScrollingDirectionProperty(this, null, value);
+ InternalScrollingDirection = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (bool)GetInternalScrollEnabledProperty(this);
+ return InternalScrollEnabled;
}
}
set
}
else
{
- SetInternalScrollEnabledProperty(this, null, value);
+ InternalScrollEnabled = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (bool)GetInternalSnapToPageProperty(this);
+ return InternalSnapToPage;
}
}
set
}
else
{
- SetInternalSnapToPageProperty(this, null, value);
+ InternalSnapToPage = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (int)GetInternalScrollDurationProperty(this);
+ return InternalScrollDuration;
}
}
set
}
else
{
- SetInternalScrollDurationProperty(this, null, value);
+ InternalScrollDuration = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalScrollAvailableAreaProperty(this) as Vector2;
+ return InternalScrollAvailableArea;
}
}
set
}
else
{
- SetInternalScrollAvailableAreaProperty(this, null, value);
+ InternalScrollAvailableArea = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalScrollbarProperty(this) as ScrollbarBase;
+ return InternalScrollbar;
}
}
set
}
else
{
- SetInternalScrollbarProperty(this, null, value);
+ InternalScrollbar = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (bool)GetInternalHideScrollbarProperty(this);
+ return InternalHideScrollbar;
}
}
set
}
else
{
- SetInternalHideScrollbarProperty(this, null, value);
+ InternalHideScrollbar = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (bool)GetInternalFadeScrollbarProperty(this);
+ return InternalFadeScrollbar;
}
}
set
}
else
{
- SetInternalFadeScrollbarProperty(this, null, value);
+ InternalFadeScrollbar = value;
}
}
}
}
else
{
- return GetInternalLayoutProperty(this) as LayoutItem;
+ return InternalLayout;
}
}
set
}
else
{
- SetInternalLayoutProperty(this, null, value);
+ InternalLayout = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (float)GetInternalDecelerationRateProperty(this);
+ return InternalDecelerationRate;
}
}
set
}
else
{
- SetInternalDecelerationRateProperty(this, null, value);
+ InternalDecelerationRate = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (float)GetInternalDecelerationThresholdProperty(this);
+ return InternalDecelerationThreshold;
}
}
set
}
else
{
- SetInternalDecelerationThresholdProperty(this, null, value);
+ InternalDecelerationThreshold = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (float)GetInternalScrollingEventThresholdProperty(this);
+ return InternalScrollingEventThreshold;
}
}
set
}
else
{
- SetInternalScrollingEventThresholdProperty(this, null, value);
+ InternalScrollingEventThreshold = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (float)GetInternalPageFlickThresholdProperty(this);
+ return InternalPageFlickThreshold;
}
}
set
}
else
{
- SetInternalPageFlickThresholdProperty(this, null, value);
+ InternalPageFlickThreshold = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalPaddingProperty(this) as Extents;
+ return InternalPadding;
}
}
set
}
else
{
- SetInternalPaddingProperty(this, null, value);
+ InternalPadding = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalScrollAlphaFunctionProperty(this) as AlphaFunction;
+ return InternalScrollAlphaFunction;
}
}
set
}
else
{
- SetInternalScrollAlphaFunctionProperty(this, null, value);
+ InternalScrollAlphaFunction = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (float)GetInternalNoticeAnimationEndBeforePositionProperty(this);
+ return InternalNoticeAnimationEndBeforePosition;
}
}
set
}
else
{
- SetInternalNoticeAnimationEndBeforePositionProperty(this, null, value);
+ InternalNoticeAnimationEndBeforePosition = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (float)GetInternalStepScrollDistanceProperty(this);
+ return stepScrollDistance;
}
}
set
}
else
{
- SetInternalStepScrollDistanceProperty(this, null, value);
+ stepScrollDistance = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (float)GetInternalWheelScrollDistanceProperty(this);
+ return wheelScrollDistance;
}
}
set
}
else
{
- SetInternalWheelScrollDistanceProperty(this, null, value);
+ wheelScrollDistance = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (bool)GetInternalEnableOverShootingEffectProperty(this);
+ return InternalEnableOverShootingEffect;
}
}
set
}
else
{
- SetInternalEnableOverShootingEffectProperty(this, null, value);
+ InternalEnableOverShootingEffect = value;
}
NotifyPropertyChanged();
}
public static readonly BindableProperty ScrollingDirectionProperty = null;
internal static void SetInternalScrollingDirectionProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.InternalScrollingDirection = (Direction)newValue;
}
}
public static readonly BindableProperty ScrollEnabledProperty = null;
internal static void SetInternalScrollEnabledProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.InternalScrollEnabled = (bool)newValue;
}
}
public static readonly BindableProperty SnapToPageProperty = null;
internal static void SetInternalSnapToPageProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.InternalSnapToPage = (bool)newValue;
}
}
public static readonly BindableProperty ScrollDurationProperty = null;
internal static void SetInternalScrollDurationProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.InternalScrollDuration = (int)newValue;
}
}
public static readonly BindableProperty ScrollAvailableAreaProperty = null;
internal static void SetInternalScrollAvailableAreaProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.InternalScrollAvailableArea = newValue as Vector2;
}
}
public static readonly BindableProperty ScrollbarProperty = null;
internal static void SetInternalScrollbarProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.InternalScrollbar = newValue as ScrollbarBase;
}
}
public static readonly BindableProperty HideScrollbarProperty = null;
internal static void SetInternalHideScrollbarProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.InternalHideScrollbar = (bool)newValue;
}
}
public static readonly new BindableProperty LayoutProperty = null;
internal static new void SetInternalLayoutProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.InternalLayout = newValue as LayoutItem;
}
}
public static readonly BindableProperty DecelerationRateProperty = null;
internal static void SetInternalDecelerationRateProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.InternalDecelerationRate = (float)newValue;
}
}
public static readonly BindableProperty DecelerationThresholdProperty = null;
internal static void SetInternalDecelerationThresholdProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.InternalDecelerationThreshold = (float)newValue;
}
}
public static readonly BindableProperty ScrollingEventThresholdProperty = null;
internal static void SetInternalScrollingEventThresholdProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.InternalScrollingEventThreshold = (float)newValue;
}
}
public static readonly BindableProperty PageFlickThresholdProperty = null;
internal static void SetInternalPageFlickThresholdProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.InternalPageFlickThreshold = (float)newValue;
}
}
public static readonly new BindableProperty PaddingProperty = null;
internal static new void SetInternalPaddingProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.InternalPadding = newValue as Extents;
}
}
public static readonly BindableProperty ScrollAlphaFunctionProperty = null;
internal static void SetInternalScrollAlphaFunctionProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.InternalScrollAlphaFunction = newValue as AlphaFunction;
}
}
public static readonly BindableProperty NoticeAnimationEndBeforePositionProperty = null;
internal static void SetInternalNoticeAnimationEndBeforePositionProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.InternalNoticeAnimationEndBeforePosition = (float)newValue;
}
}
public static readonly BindableProperty EnableOverShootingEffectProperty = null;
internal static void SetInternalEnableOverShootingEffectProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.InternalEnableOverShootingEffect = (bool)newValue;
}
}
public static readonly BindableProperty StepScrollDistanceProperty = null;
internal static void SetInternalStepScrollDistanceProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.stepScrollDistance = (float)newValue;
}
}
public static readonly BindableProperty WheelScrollDistanceProperty = null;
internal static void SetInternalWheelScrollDistanceProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.wheelScrollDistance = (float)newValue;
}
}
public static readonly BindableProperty FadeScrollbarProperty = null;
internal static void SetInternalFadeScrollbarProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (ScrollableBase)bindable;
if (newValue != null)
{
+ var instance = (ScrollableBase)bindable;
instance.InternalFadeScrollbar = (bool)newValue;
}
}
}
internal static object GetInternalTrackPaddingProperty(BindableObject bindable)
{
+ //NOTE: the type of trackPadding is not Extents.
return ((Scrollbar)bindable).trackPadding;
}
}
else
{
- return (float)GetInternalTrackThicknessProperty(this);
+ return trackThickness;
}
}
set
}
else
{
- SetInternalTrackThicknessProperty(this, null, value);
+ UpdateTrackThickness(value);
}
}
}
}
else
{
- return (float)GetInternalThumbThicknessProperty(this);
+ return thumbThickness;
}
}
set
}
else
{
- SetInternalThumbThicknessProperty(this, null, value);
+ UpdateThumbThickness(value);
}
}
}
}
else
{
- return (Color)GetInternalTrackColorProperty(this);
+ return trackView.BackgroundColor;
}
}
set
}
else
{
- SetInternalTrackColorProperty(this, null, value);
+ trackView.BackgroundColor = value;
}
}
}
}
else
{
- return (Color)GetInternalThumbColorProperty(this);
+ return thumbColor;
}
}
set
}
else
{
- SetInternalThumbColorProperty(this, null, value);
+ UpdateThumbColor(value);
}
}
}
}
else
{
- return (Extents)GetInternalTrackPaddingProperty(this);
+ return new Extents(trackPadding.Item1, trackPadding.Item2, trackPadding.Item3, trackPadding.Item4);
}
}
set
}
else
{
- SetInternalTrackPaddingProperty(this, null, value);
+ UpdateTrackPadding(value);
}
}
}
}
else
{
- return (string)GetInternalThumbVerticalImageUrlProperty(this);
+ return thumbVerticalImageUrl;
}
}
set
}
else
{
- SetInternalThumbVerticalImageUrlProperty(this, null, value);
+ UpdateThumbImage(value, false);
}
}
}
}
else
{
- return (string)GetInternalThumbHorizontalImageUrlProperty(this);
+ return thumbHorizontalImageUrl;
}
}
set
}
else
{
- SetInternalThumbHorizontalImageUrlProperty(this, null, value);
+ UpdateThumbImage(value, true);
}
}
}
/// <since_tizen> 6 </since_tizen>
public partial class Slider : Control, IAtspiValue
{
- /// <summary>
- /// SpaceBetweenTrackAndIndicatorProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty IndicatorProperty = null;
- internal static void SetInternalIndicatorProperty(BindableObject bindable, object oldValue, object newValue)
- {
- var instance = (Slider)bindable;
- if (newValue != null)
- {
- instance.privateIndicatorType = (IndicatorType)newValue;
- }
- }
- internal static object GetInternalIndicatorProperty(BindableObject bindable)
- {
- var instance = (Slider)bindable;
- return instance.privateIndicatorType;
- }
-
- /// <summary>
- /// SpaceBetweenTrackAndIndicatorProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty SpaceBetweenTrackAndIndicatorProperty = null;
- internal static void SetInternalSpaceBetweenTrackAndIndicatorProperty(BindableObject bindable, object oldValue, object newValue)
- {
- var instance = (Slider)bindable;
- if (newValue != null)
- {
- instance.privateSpaceBetweenTrackAndIndicator = (uint)newValue;
- }
- }
- internal static object GetInternalSpaceBetweenTrackAndIndicatorProperty(BindableObject bindable)
- {
- var instance = (Slider)bindable;
- return instance.privateSpaceBetweenTrackAndIndicator;
- }
-
- /// <summary>
- /// TrackThicknessProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty TrackThicknessProperty = null;
- internal static void SetInternalTrackThicknessProperty(BindableObject bindable, object oldValue, object newValue)
- {
- var instance = (Slider)bindable;
- if (newValue != null)
- {
- instance.privateTrackThickness = (uint)newValue;
- }
- }
- internal static object GetInternalTrackThicknessProperty(BindableObject bindable)
- {
- var instance = (Slider)bindable;
- return instance.privateTrackThickness;
- }
-
- /// <summary>
- /// IsValueShownProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty IsValueShownProperty = null;
- internal static void SetInternalIsValueShownProperty(BindableObject bindable, object oldValue, object newValue)
- {
- var instance = (Slider)bindable;
- if (newValue != null)
- {
- bool newValueShown = (bool)newValue;
- if (instance.isValueShown != newValueShown)
- {
- instance.isValueShown = newValueShown;
- }
- }
- }
- internal static object GetInternalIsValueShownProperty(BindableObject bindable)
- {
- var instance = (Slider)bindable;
- return instance.isValueShown;
- }
-
- /// <summary>
- /// ValueIndicatorTextProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty ValueIndicatorTextProperty = null;
- internal static void SetInternalValueIndicatorTextProperty(BindableObject bindable, object oldValue, object newValue)
- {
- var instance = (Slider)bindable;
- if (newValue != null)
- {
- string newText = (string)newValue;
- instance.valueIndicatorText.Text = newText;
- }
- }
- internal static object GetInternalValueIndicatorTextProperty(BindableObject bindable)
- {
- var instance = (Slider)bindable;
- return instance.valueIndicatorText.Text;
- }
-
- /// <summary>
- /// Bindable property of CurrentValue
- /// <remark>
- /// Hidden API, used for NUI XAML data binding
- /// </remark>
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty CurrentValueProperty = null;
- internal static void SetInternalCurrentValueProperty(BindableObject bindable, object oldValue, object newValue)
- {
- var instance = (Slider)bindable;
-
- if (newValue != null)
- {
- float value = (float)newValue;
- if (value < instance.minValue)
- {
- instance.curValue = instance.minValue;
- }
- else if (value > instance.maxValue)
- {
- instance.curValue = instance.maxValue;
- }
- else
- {
- instance.curValue = value;
- }
-
- instance.sliderValueChangedHandler?.Invoke(instance, new SliderValueChangedEventArgs
- {
- CurrentValue = instance.curValue
- });
- if (Accessibility.Accessibility.IsEnabled && instance.IsHighlighted)
- {
- instance.EmitAccessibilityEvent(AccessibilityPropertyChangeEvent.Value);
- }
- instance.UpdateValue();
- }
- }
- internal static object GetInternalCurrentValueProperty(BindableObject bindable)
- {
- var instance = (Slider)bindable;
- return instance.curValue;
- }
-
static Slider()
{
if (NUIApplication.IsUsingXaml)
}
else
{
- return (DirectionType)GetInternalDirectionProperty(this);
+ return InternalDirection;
}
}
set
}
else
{
- SetInternalDirectionProperty(this, null, value);
+ InternalDirection = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (IndicatorType)GetInternalIndicatorProperty(this);
+ return privateIndicatorType;
}
}
set
}
else
{
- SetInternalIndicatorProperty(this, null, value);
+ privateIndicatorType = value;
}
}
}
}
else
{
- return (float)GetInternalMinValueProperty(this);
+ return InternalMinValue;
}
}
set
}
else
{
- SetInternalMinValueProperty(this, null, value);
+ InternalMinValue = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (float)GetInternalMaxValueProperty(this);
+ return InternalMaxValue;
}
}
set
}
else
{
- SetInternalMaxValueProperty(this, null, value);
+ InternalMaxValue = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (float)GetInternalCurrentValueProperty(this);
+ return GetInternalCurrentValue();
}
}
set
}
else
{
- SetInternalCurrentValueProperty(this, null, value);
+ SetInternalCurrentValue(value);
}
}
}
+ private void SetInternalCurrentValue(float newValue)
+ {
+ float value = (float)newValue;
+ if (value < minValue)
+ {
+ curValue = minValue;
+ }
+ else if (value > maxValue)
+ {
+ curValue = maxValue;
+ }
+ else
+ {
+ curValue = value;
+ }
+
+ sliderValueChangedHandler?.Invoke(this, new SliderValueChangedEventArgs
+ {
+ CurrentValue = curValue
+ });
+ if (Accessibility.Accessibility.IsEnabled && IsHighlighted)
+ {
+ EmitAccessibilityEvent(AccessibilityPropertyChangeEvent.Value);
+ }
+ UpdateValue();
+ }
+
+ private float GetInternalCurrentValue()
+ {
+ return curValue;
+ }
+
/// <summary>
/// Gets or sets the size of the thumb image object.
/// </summary>
}
else
{
- return GetInternalThumbSizeProperty(this) as Size;
+ return InternalThumbSize;
}
}
set
}
else
{
- SetInternalThumbSizeProperty(this, null, value);
+ if (value != null)
+ {
+ InternalThumbSize = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalThumbImageURLProperty(this) as string;
+ return InternalThumbImageURL;
}
}
set
}
else
{
- SetInternalThumbImageURLProperty(this, null, value);
+ if (value != null)
+ {
+ InternalThumbImageURL = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalThumbImageURLSelectorProperty(this) as StringSelector;
+ return InternalThumbImageURLSelector;
}
}
set
}
else
{
- SetInternalThumbImageURLSelectorProperty(this, null, value);
+ //NOTE: null value is allowed here.
+ InternalThumbImageURLSelector = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalThumbImageUrlProperty(this) as Selector<string>;
+ return InternalThumbImageUrl;
}
}
set
}
else
{
- SetInternalThumbImageUrlProperty(this, null, value);
+ if (value != null)
+ {
+ InternalThumbImageUrl = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalThumbColorProperty(this) as Color;
+ return InternalThumbColor;
}
}
set
}
else
{
- SetInternalThumbColorProperty(this, null, value);
+ if (value != null)
+ {
+ InternalThumbColor = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalBgTrackColorProperty(this) as Color;
+ return InternalBgTrackColor;
}
}
set
}
else
{
- SetInternalBgTrackColorProperty(this, null, value);
+ if (value != null)
+ {
+ InternalBgTrackColor = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalSlidedTrackColorProperty(this) as Color;
+ return InternalSlidedTrackColor;
}
}
set
}
else
{
- SetInternalSlidedTrackColorProperty(this, null, value);
+ if (value != null)
+ {
+ InternalSlidedTrackColor = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return (uint)GetInternalTrackThicknessProperty(this);
+ return privateTrackThickness;
}
}
set
}
else
{
- SetInternalTrackThicknessProperty(this, null, value);
+ privateTrackThickness = value;
}
}
}
}
else
{
- return (float)GetInternalWarningStartValueProperty(this);
+ return InternalWarningStartValue;
}
}
set
}
else
{
- SetInternalWarningStartValueProperty(this, null, value);
+ InternalWarningStartValue = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalWarningTrackColorProperty(this) as Color;
+ return InternalWarningTrackColor;
}
}
set
}
else
{
- SetInternalWarningTrackColorProperty(this, null, value);
+ if (value != null)
+ {
+ InternalWarningTrackColor = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalWarningSlidedTrackColorProperty(this) as Color;
+ return InternalWarningSlidedTrackColor;
}
}
set
}
else
{
- SetInternalWarningSlidedTrackColorProperty(this, null, value);
+ if (value != null)
+ {
+ InternalWarningSlidedTrackColor = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalWarningThumbImageUrlProperty(this) as Selector<string>;
+ return InternalWarningThumbImageUrl;
}
}
set
}
else
{
- SetInternalWarningThumbImageUrlProperty(this, null, value);
+ if (value != null)
+ {
+ InternalWarningThumbImageUrl = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalWarningThumbColorProperty(this) as Color;
+ return InternalWarningThumbColor;
}
}
set
}
else
{
- SetInternalWarningThumbColorProperty(this, null, value);
+ if (value != null)
+ {
+ InternalWarningThumbColor = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalLowIndicatorImageURLProperty(this) as string;
+ return InternalLowIndicatorImageURL;
}
}
set
}
else
{
- SetInternalLowIndicatorImageURLProperty(this, null, value);
+ if (value != null)
+ {
+ InternalLowIndicatorImageURL = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalHighIndicatorImageURLProperty(this) as string;
+ return InternalHighIndicatorImageURL;
}
}
set
}
else
{
- SetInternalHighIndicatorImageURLProperty(this, null, value);
+ if (value != null)
+ {
+ InternalHighIndicatorImageURL = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalLowIndicatorTextContentProperty(this) as string;
+ return InternalLowIndicatorTextContent;
}
}
set
}
else
{
- SetInternalLowIndicatorTextContentProperty(this, null, value);
+ if (value != null)
+ {
+ InternalLowIndicatorTextContent = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalHighIndicatorTextContentProperty(this) as string;
+ return InternalHighIndicatorTextContent;
}
}
set
}
else
{
- SetInternalHighIndicatorTextContentProperty(this, null, value);
+ if (value != null)
+ {
+ InternalHighIndicatorTextContent = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalLowIndicatorSizeProperty(this) as Size;
+ return InternalLowIndicatorSize;
}
}
set
}
else
{
- SetInternalLowIndicatorSizeProperty(this, null, value);
+ if (value != null)
+ {
+ InternalLowIndicatorSize = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalHighIndicatorSizeProperty(this) as Size;
+ return InternalHighIndicatorSize;
}
}
set
}
else
{
- SetInternalHighIndicatorSizeProperty(this, null, value);
+ if (value != null)
+ {
+ InternalHighIndicatorSize = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return (uint)GetInternalSpaceBetweenTrackAndIndicatorProperty(this);
+ return privateSpaceBetweenTrackAndIndicator;
}
}
set
}
else
{
- SetInternalSpaceBetweenTrackAndIndicatorProperty(this, null, value);
+ privateSpaceBetweenTrackAndIndicator = value;
}
}
}
}
else
{
- return (bool)GetInternalIsValueShownProperty(this);
+ return GetInternalIsValueShown();
}
}
set
}
else
{
- SetInternalIsValueShownProperty(this, null, value);
+ SetInternalIsValueShown(value);
}
}
}
+ private void SetInternalIsValueShown(bool newValue)
+ {
+ bool newValueShown = newValue;
+ if (isValueShown != newValueShown)
+ {
+ isValueShown = newValueShown;
+ }
+ }
+
+ private bool GetInternalIsValueShown()
+ {
+ return isValueShown;
+ }
+
/// <summary>
/// Gets or sets the text of value indicator.
/// </summary>
}
else
{
- return (string)GetInternalValueIndicatorTextProperty(this);
+ return valueIndicatorText.Text;
}
}
set
}
else
{
- SetInternalValueIndicatorTextProperty(this, null, value);
+ if (value != null)
+ {
+ valueIndicatorText.Text = value;
+ }
}
}
}
}
else
{
- return GetInternalValueIndicatorSizeProperty(this) as Size;
+ return InternalValueIndicatorSize;
}
}
set
}
else
{
- SetInternalValueIndicatorSizeProperty(this, null, value);
+ if (value != null)
+ {
+ InternalValueIndicatorSize = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalValueIndicatorUrlProperty(this) as string;
+ return InternalValueIndicatorUrl;
}
}
set
}
else
{
- SetInternalValueIndicatorUrlProperty(this, null, value);
+ if (value != null)
+ {
+ InternalValueIndicatorUrl = value;
+ }
}
NotifyPropertyChanged();
}
}
else
{
- return (bool)GetInternalIsDiscreteProperty(this);
+ return InternalIsDiscrete;
}
}
set
}
else
{
- SetInternalIsDiscreteProperty(this, null, value);
+ InternalIsDiscrete = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (float)GetInternalDiscreteValueProperty(this);
+ return InternalDiscreteValue;
}
}
set
}
else
{
- SetInternalDiscreteValueProperty(this, null, value);
+ InternalDiscreteValue = value;
}
NotifyPropertyChanged();
}
{
public partial class Slider
{
+ /// <summary>
+ /// SpaceBetweenTrackAndIndicatorProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty IndicatorProperty = null;
+ internal static void SetInternalIndicatorProperty(BindableObject bindable, object oldValue, object newValue)
+ {
+ if (newValue != null)
+ {
+ var instance = (Slider)bindable;
+ instance.privateIndicatorType = (IndicatorType)newValue;
+ }
+ }
+ internal static object GetInternalIndicatorProperty(BindableObject bindable)
+ {
+ var instance = (Slider)bindable;
+ return instance.privateIndicatorType;
+ }
+
+ /// <summary>
+ /// SpaceBetweenTrackAndIndicatorProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty SpaceBetweenTrackAndIndicatorProperty = null;
+ internal static void SetInternalSpaceBetweenTrackAndIndicatorProperty(BindableObject bindable, object oldValue, object newValue)
+ {
+ if (newValue != null)
+ {
+ var instance = (Slider)bindable;
+ instance.privateSpaceBetweenTrackAndIndicator = (uint)newValue;
+ }
+ }
+ internal static object GetInternalSpaceBetweenTrackAndIndicatorProperty(BindableObject bindable)
+ {
+ var instance = (Slider)bindable;
+ return instance.privateSpaceBetweenTrackAndIndicator;
+ }
+
+ /// <summary>
+ /// TrackThicknessProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty TrackThicknessProperty = null;
+ internal static void SetInternalTrackThicknessProperty(BindableObject bindable, object oldValue, object newValue)
+ {
+ if (newValue != null)
+ {
+ var instance = (Slider)bindable;
+ instance.privateTrackThickness = (uint)newValue;
+ }
+ }
+ internal static object GetInternalTrackThicknessProperty(BindableObject bindable)
+ {
+ var instance = (Slider)bindable;
+ return instance.privateTrackThickness;
+ }
+
+ /// <summary>
+ /// IsValueShownProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty IsValueShownProperty = null;
+ internal static void SetInternalIsValueShownProperty(BindableObject bindable, object oldValue, object newValue)
+ {
+ if (newValue != null)
+ {
+ var instance = (Slider)bindable;
+ instance.SetInternalIsValueShown((bool)newValue);
+ }
+ }
+ internal static object GetInternalIsValueShownProperty(BindableObject bindable)
+ {
+ var instance = (Slider)bindable;
+ return instance.GetInternalIsValueShown();
+ }
+
+ /// <summary>
+ /// ValueIndicatorTextProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty ValueIndicatorTextProperty = null;
+ internal static void SetInternalValueIndicatorTextProperty(BindableObject bindable, object oldValue, object newValue)
+ {
+ if (newValue != null)
+ {
+ var instance = (Slider)bindable;
+ instance.valueIndicatorText.Text = (string)newValue;
+ }
+ }
+ internal static object GetInternalValueIndicatorTextProperty(BindableObject bindable)
+ {
+ var instance = (Slider)bindable;
+ return instance.valueIndicatorText.Text;
+ }
+
+ /// <summary>
+ /// Bindable property of CurrentValue
+ /// <remark>
+ /// Hidden API, used for NUI XAML data binding
+ /// </remark>
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty CurrentValueProperty = null;
+ internal static void SetInternalCurrentValueProperty(BindableObject bindable, object oldValue, object newValue)
+ {
+ if (newValue != null)
+ {
+ var instance = (Slider)bindable;
+ instance.SetInternalCurrentValue((float)newValue);
+ }
+ }
+ internal static object GetInternalCurrentValueProperty(BindableObject bindable)
+ {
+ var instance = (Slider)bindable;
+ return instance.GetInternalCurrentValue();
+ }
+
/// <summary>
/// DirectionProperty
/// </summary>
public static readonly BindableProperty DirectionProperty = null;
internal static void SetInternalDirectionProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalDirection = (DirectionType)newValue;
}
}
public static readonly BindableProperty MinValueProperty = null;
internal static void SetInternalMinValueProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalMinValue = (float)newValue;
}
}
public static readonly BindableProperty MaxValueProperty = null;
internal static void SetInternalMaxValueProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalMaxValue = (float)newValue;
}
}
public static readonly BindableProperty ThumbSizeProperty = null;
internal static void SetInternalThumbSizeProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalThumbSize = newValue as Size;
}
}
public static readonly BindableProperty ThumbImageURLProperty = null;
internal static void SetInternalThumbImageURLProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalThumbImageURL = newValue as string;
}
}
internal static void SetInternalThumbImageURLSelectorProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Slider)bindable;
+ //NOTE: null value is allowed here.
instance.InternalThumbImageURLSelector = newValue as StringSelector;
}
internal static object GetInternalThumbImageURLSelectorProperty(BindableObject bindable)
public static readonly BindableProperty ThumbImageUrlProperty = null;
internal static void SetInternalThumbImageUrlProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalThumbImageUrl = newValue as Tizen.NUI.BaseComponents.Selector<string>;
}
}
public static readonly BindableProperty ThumbColorProperty = null;
internal static void SetInternalThumbColorProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalThumbColor = newValue as Color;
}
}
public static readonly BindableProperty BgTrackColorProperty = null;
internal static void SetInternalBgTrackColorProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalBgTrackColor = newValue as Color;
}
}
public static readonly BindableProperty SlidedTrackColorProperty = null;
internal static void SetInternalSlidedTrackColorProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalSlidedTrackColor = newValue as Color;
}
}
public static readonly BindableProperty WarningStartValueProperty = null;
internal static void SetInternalWarningStartValueProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalWarningStartValue = (float)newValue;
}
}
public static readonly BindableProperty WarningTrackColorProperty = null;
internal static void SetInternalWarningTrackColorProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalWarningTrackColor = newValue as Color;
}
}
public static readonly BindableProperty WarningSlidedTrackColorProperty = null;
internal static void SetInternalWarningSlidedTrackColorProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalWarningSlidedTrackColor = newValue as Color;
}
}
public static readonly BindableProperty WarningThumbImageUrlProperty = null;
internal static void SetInternalWarningThumbImageUrlProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalWarningThumbImageUrl = newValue as Tizen.NUI.BaseComponents.Selector<string>;
}
}
public static readonly BindableProperty WarningThumbColorProperty = null;
internal static void SetInternalWarningThumbColorProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalWarningThumbColor = newValue as Color;
}
}
public static readonly BindableProperty LowIndicatorImageURLProperty = null;
internal static void SetInternalLowIndicatorImageURLProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalLowIndicatorImageURL = newValue as string;
}
}
public static readonly BindableProperty HighIndicatorImageURLProperty = null;
internal static void SetInternalHighIndicatorImageURLProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalHighIndicatorImageURL = newValue as string;
}
}
public static readonly BindableProperty LowIndicatorTextContentProperty = null;
internal static void SetInternalLowIndicatorTextContentProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalLowIndicatorTextContent = newValue as string;
}
}
public static readonly BindableProperty HighIndicatorTextContentProperty = null;
internal static void SetInternalHighIndicatorTextContentProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalHighIndicatorTextContent = newValue as string;
}
}
public static readonly BindableProperty LowIndicatorSizeProperty = null;
internal static void SetInternalLowIndicatorSizeProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue as Size is var nVal && nVal != null)
{
+ var instance = (Slider)bindable;
instance.InternalLowIndicatorSize = nVal;
}
}
public static readonly BindableProperty HighIndicatorSizeProperty = null;
internal static void SetInternalHighIndicatorSizeProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue as Size is var nVal && nVal != null)
{
+ var instance = (Slider)bindable;
instance.InternalHighIndicatorSize = nVal;
}
}
public static readonly BindableProperty ValueIndicatorSizeProperty = null;
internal static void SetInternalValueIndicatorSizeProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue as Size is var nVal && nVal != null)
{
+ var instance = (Slider)bindable;
instance.InternalValueIndicatorSize = nVal;
}
}
public static readonly BindableProperty ValueIndicatorUrlProperty = null;
internal static void SetInternalValueIndicatorUrlProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalValueIndicatorUrl = newValue as string;
}
}
public static readonly BindableProperty IsDiscreteProperty = null;
internal static void SetInternalIsDiscreteProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalIsDiscrete = (bool)newValue;
}
}
public static readonly BindableProperty DiscreteValueProperty = null;
internal static void SetInternalDiscreteValueProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Slider)bindable;
if (newValue != null)
{
+ var instance = (Slider)bindable;
instance.InternalDiscreteValue = (float)newValue;
}
}
}
else
{
- return GetInternalSwitchBackgroundImageURLSelectorProperty(this) as StringSelector;
+ return InternalSwitchBackgroundImageURLSelector;
}
}
set
}
else
{
- SetInternalSwitchBackgroundImageURLSelectorProperty(this, null, value);
+ InternalSwitchBackgroundImageURLSelector = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalSwitchHandlerImageURLProperty(this) as string;
+ return InternalSwitchHandlerImageURL;
}
}
set
}
else
{
- SetInternalSwitchHandlerImageURLProperty(this, null, value);
+ InternalSwitchHandlerImageURL = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalSwitchHandlerImageURLSelectorProperty(this) as StringSelector;
+ return InternalSwitchHandlerImageURLSelector;
}
}
set
}
else
{
- SetInternalSwitchHandlerImageURLSelectorProperty(this, null, value);
+ InternalSwitchHandlerImageURLSelector = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalSwitchHandlerImageSizeProperty(this) as Size;
+ return InternalSwitchHandlerImageSize;
}
}
set
}
else
{
- SetInternalSwitchHandlerImageSizeProperty(this, null, value);
+ InternalSwitchHandlerImageSize = value;
}
NotifyPropertyChanged();
}
public static readonly BindableProperty SwitchBackgroundImageURLSelectorProperty = null;
internal static void SetInternalSwitchBackgroundImageURLSelectorProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Switch)bindable;
if (newValue != null)
{
+ var instance = (Switch)bindable;
instance.InternalSwitchBackgroundImageURLSelector = newValue as StringSelector;
}
}
public static readonly BindableProperty SwitchHandlerImageURLProperty = null;
internal static void SetInternalSwitchHandlerImageURLProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Switch)bindable;
if (newValue != null)
{
+ var instance = (Switch)bindable;
instance.InternalSwitchHandlerImageURL = newValue as string;
}
}
public static readonly BindableProperty SwitchHandlerImageURLSelectorProperty = null;
internal static void SetInternalSwitchHandlerImageURLSelectorProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Switch)bindable;
if (newValue != null)
{
+ var instance = (Switch)bindable;
instance.InternalSwitchHandlerImageURLSelector = newValue as StringSelector;
}
}
public static readonly BindableProperty SwitchHandlerImageSizeProperty = null;
internal static void SetInternalSwitchHandlerImageSizeProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Switch)bindable;
if (newValue != null)
{
+ var instance = (Switch)bindable;
instance.InternalSwitchHandlerImageSize = newValue as Size;
}
}
}
else
{
- return (int)GetInternalSelectedItemIndexProperty(this);
+ return InternalSelectedItemIndex;
}
}
set
}
else
{
- SetInternalSelectedItemIndexProperty(this, null, value);
+ InternalSelectedItemIndex = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (bool)GetInternalUseTextNaturalSizeProperty(this);
+ return InternalUseTextNaturalSize;
}
}
set
}
else
{
- SetInternalUseTextNaturalSizeProperty(this, null, value);
+ InternalUseTextNaturalSize = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (int)GetInternalItemSpaceProperty(this);
+ return InternalItemSpace;
}
}
set
}
else
{
- SetInternalItemSpaceProperty(this, null, value);
+ InternalItemSpace = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalSpaceProperty(this) as Extents;
+ return InternalSpace;
}
}
set
}
else
{
- SetInternalSpaceProperty(this, null, value);
+ InternalSpace = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalItemPaddingProperty(this) as Extents;
+ return InternalItemPadding;
}
}
set
}
else
{
- SetInternalItemPaddingProperty(this, null, value);
+ InternalItemPadding = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalUnderLineSizeProperty(this) as Size;
+ return InternalUnderLineSize;
}
}
set
}
else
{
- SetInternalUnderLineSizeProperty(this, null, value);
+ InternalUnderLineSize = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalUnderLineBackgroundColorProperty(this) as Color;
+ return InternalUnderLineBackgroundColor;
}
}
set
}
else
{
- SetInternalUnderLineBackgroundColorProperty(this, null, value);
+ InternalUnderLineBackgroundColor = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (float)GetInternalPointSizeProperty(this);
+ return InternalPointSize;
}
}
set
}
else
{
- SetInternalPointSizeProperty(this, null, value);
+ InternalPointSize = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalFontFamilyProperty(this) as string;
+ return InternalFontFamily;
}
}
set
}
else
{
- SetInternalFontFamilyProperty(this, null, value);
+ InternalFontFamily = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalTextColorProperty(this) as Color;
+ return InternalTextColor;
}
}
set
}
else
{
- SetInternalTextColorProperty(this, null, value);
+ InternalTextColor = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalTextColorSelectorProperty(this) as ColorSelector;
+ return InternalTextColorSelector;
}
}
set
}
else
{
- SetInternalTextColorSelectorProperty(this, null, value);
+ InternalTextColorSelector = value;
}
NotifyPropertyChanged();
}
public static readonly BindableProperty SelectedItemIndexProperty = null;
internal static void SetInternalSelectedItemIndexProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Tab)bindable;
if (newValue != null)
{
+ var instance = (Tab)bindable;
instance.InternalSelectedItemIndex = (int)newValue;
}
}
public static readonly BindableProperty UseTextNaturalSizeProperty = null;
internal static void SetInternalUseTextNaturalSizeProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Tab)bindable;
if (newValue != null)
{
+ var instance = (Tab)bindable;
instance.InternalUseTextNaturalSize = (bool)newValue;
}
}
public static readonly BindableProperty ItemSpaceProperty = null;
internal static void SetInternalItemSpaceProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Tab)bindable;
if (newValue != null)
{
+ var instance = (Tab)bindable;
instance.InternalItemSpace = (int)newValue;
}
}
public static readonly BindableProperty SpaceProperty = null;
internal static void SetInternalSpaceProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Tab)bindable;
if (newValue != null)
{
+ var instance = (Tab)bindable;
instance.InternalSpace = newValue as Extents;
}
}
public static readonly BindableProperty ItemPaddingProperty = null;
internal static void SetInternalItemPaddingProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Tab)bindable;
if (newValue != null)
{
+ var instance = (Tab)bindable;
instance.InternalItemPadding = newValue as Extents;
}
}
public static readonly BindableProperty UnderLineSizeProperty = null;
internal static void SetInternalUnderLineSizeProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Tab)bindable;
if (newValue != null)
{
+ var instance = (Tab)bindable;
instance.InternalUnderLineSize = newValue as Size;
}
}
public static readonly BindableProperty UnderLineBackgroundColorProperty = null;
internal static void SetInternalUnderLineBackgroundColorProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Tab)bindable;
if (newValue != null)
{
+ var instance = (Tab)bindable;
instance.InternalUnderLineBackgroundColor = newValue as Color;
}
}
public static readonly BindableProperty PointSizeProperty = null;
internal static void SetInternalPointSizeProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Tab)bindable;
if (newValue != null)
{
+ var instance = (Tab)bindable;
instance.InternalPointSize = (float)newValue;
}
}
public static readonly BindableProperty FontFamilyProperty = null;
internal static void SetInternalFontFamilyProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Tab)bindable;
if (newValue != null)
{
+ var instance = (Tab)bindable;
instance.InternalFontFamily = newValue as string;
}
}
public static readonly BindableProperty TextColorProperty = null;
internal static void SetInternalTextColorProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Tab)bindable;
if (newValue != null)
{
+ var instance = (Tab)bindable;
instance.InternalTextColor = newValue as Color;
}
}
public static readonly BindableProperty TextColorSelectorProperty = null;
internal static void SetInternalTextColorSelectorProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Tab)bindable;
if (newValue != null)
{
+ var instance = (Tab)bindable;
instance.InternalTextColorSelector = newValue as ColorSelector;
}
}
[Obsolete("Deprecated in API8; Will be removed in API10")]
public partial class Toast : Control
{
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty MessageProperty = null;
- internal static void SetInternalMessageProperty(BindableObject bindable, object oldValue, object newValue)
- {
- var instance = (Toast)bindable;
- if (newValue != null)
- {
- instance.strText = (string)(newValue);
- if (null != instance.textLabel)
- {
- instance.textLabel.Text = instance.strText;
- }
- }
- }
- internal static object GetInternalMessageProperty(BindableObject bindable)
- {
- var instance = (Toast)bindable;
- return instance.strText;
- }
-
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty DurationProperty = null;
- internal static void SetInternalDurationProperty(BindableObject bindable, object oldValue, object newValue)
- {
- var instance = (Toast)bindable;
- if (newValue != null)
- {
- if (instance.timer == null)
- {
- instance.timer = new Timer(instance.duration);
- }
- instance.timer.Interval = (uint)newValue;
- }
- }
- internal static object GetInternalDurationProperty(BindableObject bindable)
- {
- var instance = (Toast)bindable;
- return instance.timer == null ? instance.duration : instance.timer.Interval;
- }
-
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public static Toast FromText(string text, uint duration)
}
else
{
- return GetInternalTextArrayProperty(this) as string[];
+ return InternalTextArray;
}
}
set
}
else
{
- SetInternalTextArrayProperty(this, null, value);
+ InternalTextArray = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (float)GetInternalPointSizeProperty(this);
+ return InternalPointSize;
}
}
set
}
else
{
- SetInternalPointSizeProperty(this, null, value);
+ InternalPointSize = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalFontFamilyProperty(this) as string;
+ return InternalFontFamily;
}
}
set
}
else
{
- SetInternalFontFamilyProperty(this, null, value);
+ InternalFontFamily = value;
}
NotifyPropertyChanged();
}
}
else
{
- return GetInternalTextColorProperty(this) as Color;
+ return InternalTextColor;
}
}
set
}
else
{
- SetInternalTextColorProperty(this, null, value);
+ InternalTextColor = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (HorizontalAlignment)GetInternalTextAlignmentProperty(this);
+ return InternalTextAlignment;
}
}
set
}
else
{
- SetInternalTextAlignmentProperty(this, null, value);
+ InternalTextAlignment = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (string)GetInternalMessageProperty(this);
+ return GetInternalMessage();
}
}
set
}
else
{
- SetInternalMessageProperty(this, null, value);
+ SetInternalMessage(value);
+ }
+ }
+ }
+
+ private void SetInternalMessage(string newValue)
+ {
+ if (newValue != null)
+ {
+ strText = newValue;
+ if (null != textLabel)
+ {
+ textLabel.Text = strText;
}
}
}
+ private string GetInternalMessage()
+ {
+ return strText;
+ }
+
/// <summary>
/// Gets or sets text padding in toast.
/// </summary>
}
else
{
- return GetInternalTextPaddingProperty(this) as Extents;
+ return InternalTextPadding;
}
}
set
}
else
{
- SetInternalTextPaddingProperty(this, null, value);
+ InternalTextPadding = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (uint)GetInternalTextLineHeightProperty(this);
+ return InternalTextLineHeight;
}
}
set
}
else
{
- SetInternalTextLineHeightProperty(this, null, value);
+ InternalTextLineHeight = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (uint)GetInternalTextLineSpaceProperty(this);
+ return InternalTextLineSpace;
}
}
set
}
else
{
- SetInternalTextLineSpaceProperty(this, null, value);
+ InternalTextLineSpace = value;
}
NotifyPropertyChanged();
}
}
else
{
- return (uint)GetInternalDurationProperty(this);
+ return GetInternalDuration();
}
}
set
}
else
{
- SetInternalDurationProperty(this, null, value);
+ SetInternalDuration(value);
}
}
}
+ private void SetInternalDuration(uint newValue)
+ {
+ if (timer == null)
+ {
+ timer = new Timer(duration);
+ }
+ timer.Interval = newValue;
+ }
+
+ private uint GetInternalDuration()
+ {
+ return timer == null ? duration : timer.Interval;
+ }
+
/// <inheritdoc/>
[EditorBrowsable(EditorBrowsableState.Never)]
public override void OnInitialize()
{
public partial class Toast
{
+ /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty MessageProperty = null;
+ internal static void SetInternalMessageProperty(BindableObject bindable, object oldValue, object newValue)
+ {
+ if (newValue != null)
+ {
+ var instance = (Toast)bindable;
+ instance.SetInternalMessage((string)newValue);
+ }
+ }
+ internal static object GetInternalMessageProperty(BindableObject bindable)
+ {
+ var instance = (Toast)bindable;
+ return instance.GetInternalMessage();
+ }
+
+ /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty DurationProperty = null;
+ internal static void SetInternalDurationProperty(BindableObject bindable, object oldValue, object newValue)
+ {
+ if (newValue != null)
+ {
+ var instance = (Toast)bindable;
+ instance.SetInternalDuration((uint)newValue);
+ }
+ }
+ internal static object GetInternalDurationProperty(BindableObject bindable)
+ {
+ var instance = (Toast)bindable;
+ return instance.GetInternalDuration();
+ }
+
/// <summary>
/// TextArrayProperty
/// </summary>
public static readonly BindableProperty TextArrayProperty = null;
internal static void SetInternalTextArrayProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Toast)bindable;
if (newValue != null)
{
+ var instance = (Toast)bindable;
instance.InternalTextArray = newValue as string[];
}
}
public static readonly BindableProperty PointSizeProperty = null;
internal static void SetInternalPointSizeProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Toast)bindable;
if (newValue != null)
{
+ var instance = (Toast)bindable;
instance.InternalPointSize = (float)newValue;
}
}
public static readonly BindableProperty FontFamilyProperty = null;
internal static void SetInternalFontFamilyProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Toast)bindable;
if (newValue != null)
{
+ var instance = (Toast)bindable;
instance.InternalFontFamily = newValue as string;
}
}
public static readonly BindableProperty TextColorProperty = null;
internal static void SetInternalTextColorProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Toast)bindable;
if (newValue != null)
{
+ var instance = (Toast)bindable;
instance.InternalTextColor = newValue as Color;
}
}
public static readonly BindableProperty TextAlignmentProperty = null;
internal static void SetInternalTextAlignmentProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Toast)bindable;
if (newValue != null)
{
+ var instance = (Toast)bindable;
instance.InternalTextAlignment = (HorizontalAlignment)newValue;
}
}
public static readonly BindableProperty TextPaddingProperty = null;
internal static void SetInternalTextPaddingProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Toast)bindable;
if (newValue != null)
{
+ var instance = (Toast)bindable;
instance.InternalTextPadding = newValue as Extents;
}
}
public static readonly BindableProperty TextLineHeightProperty = null;
internal static void SetInternalTextLineHeightProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Toast)bindable;
if (newValue != null)
{
+ var instance = (Toast)bindable;
instance.InternalTextLineHeight = (uint)newValue;
}
}
public static readonly BindableProperty TextLineSpaceProperty = null;
internal static void SetInternalTextLineSpaceProperty(BindableObject bindable, object oldValue, object newValue)
{
- var instance = (Toast)bindable;
if (newValue != null)
{
+ var instance = (Toast)bindable;
instance.InternalTextLineSpace = (uint)newValue;
}
}