var instance = (Slider)bindable;
return instance.privateTrackThickness;
});
- /// 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 TrackPaddingProperty = BindableProperty.Create(nameof(TrackPadding), typeof(Extents), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var instance = (Slider)bindable;
- if (newValue != null)
- {
- instance.privateTrackPadding.CopyFrom((Extents)newValue);
- }
- },
- defaultValueCreator: (bindable) =>
- {
- var instance = (Slider)bindable;
- return instance.privateTrackPadding;
- });
+
static Slider() { }
/// <summary>
public new SliderStyle Style => ViewStyle as SliderStyle;
/// <summary>
- /// Get or set low indicator text.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public TextLabel LowIndicatorText
- {
- get
- {
- return CreateLowIndicatorText();
- }
- internal set
- {
- lowIndicatorText = value;
- }
- }
-
- /// <summary>
- /// Get or set high indicator text.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public TextLabel HighIndicatorText
- {
- get
- {
- return CreateHighIndicatorText();
- }
- internal set
- {
- highIndicatorText = value;
- }
- }
-
- /// <summary>
/// Gets or sets the direction type of slider.
/// </summary>
/// <since_tizen> 6 </since_tizen>
{
get
{
- return TrackPadding.Start;
+ return privateTrackPadding.Start;
}
set
{
ushort val = (ushort)value;
- TrackPadding = new Extents(val, val, val, val);
+ privateTrackPadding = new Extents(val, val, val, val);
}
}
- /// <summary>
- /// Gets or sets the value of the space between track and indicator.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// 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 Extents TrackPadding
- {
- get
- {
- return (Extents)GetValue(TrackPaddingProperty);
- }
- set
- {
- SetValue(TrackPaddingProperty, value);
- }
- }
private Extents privateTrackPadding
{
get
}
/// <summary>
- /// Switch's track part.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public string SwitchBackgroundImageURL
- {
- get
- {
- return Style?.Track?.ResourceUrl?.All;
- }
- set
- {
- if (null != value && null != Style?.Track)
- {
- Style.Track.ResourceUrl = value;
- }
- }
- }
-
- /// <summary>
/// Background image's resource url selector in Switch.
/// </summary>
/// <since_tizen> 6 </since_tizen>
// Null style construction
slider_null_style[0] = CreateByProperty(800, 50, 20, Slider.DirectionType.Horizontal);
slider_null_style[1] = CreateByProperty(800, 50, 30, Slider.DirectionType.Horizontal);
- slider_null_style[1].LowIndicatorText.Text = "SubText";
+ slider_null_style[1].LowIndicatorTextContent = "SubText";
slider_null_style[1].LowIndicatorSize = new Size(100, 40);
slider_null_style[2] = CreateByProperty(50, 400, 20, Slider.DirectionType.Vertical);
slider_null_style[3] = CreateByProperty(50, 400, 30, Slider.DirectionType.Vertical);
- slider_null_style[3].LowIndicatorText.Text = "SubText";
+ slider_null_style[3].LowIndicatorTextContent = "SubText";
slider_null_style[3].LowIndicatorSize = new Size(100, 40);
// Style construction
};
slider_style[0] = CreateByStyle(st, 800, 50, 20, Slider.DirectionType.Horizontal);
slider_style[1] = CreateByStyle(st, 800, 50, 30, Slider.DirectionType.Horizontal);
- slider_style[1].LowIndicatorText.Text = "SubText";
+ slider_style[1].LowIndicatorTextContent = "SubText";
slider_style[1].LowIndicatorSize = new Size(100, 40);
slider_style[2] = CreateByStyle(st, 50, 400, 20, Slider.DirectionType.Vertical);
slider_style[3] = CreateByStyle(st, 50, 400, 30, Slider.DirectionType.Vertical);
- slider_style[3].LowIndicatorText.Text = "SubText";
+ slider_style[3].LowIndicatorTextContent = "SubText";
slider_style[3].LowIndicatorSize = new Size(100, 40);
}