Class SkiaSlider
public class SkiaSlider : SkiaLayout, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IVisualElementController, IElementController, IView, ITransform, IElement, IVisualTreeElement, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISkiaGestureListener, IHasAfterEffects, ISkiaDisposable, ISkiaGridLayout, ISkiaLayout, ISkiaControl, IDrawnBase, ICanBeUpdatedWithContext, ICanBeUpdated, ILayoutInsideViewport, IInsideViewport, IVisibilityAware, IDisposable
- Inheritance
-
SkiaSlider
- Implements
- Inherited Members
- Extension Methods
Constructors
SkiaSlider()
public SkiaSlider()
Fields
AvailableWidthAdjustmentProperty
public static readonly BindableProperty AvailableWidthAdjustmentProperty
Field Value
ClickOnTrailEnabledProperty
public static readonly BindableProperty ClickOnTrailEnabledProperty
Field Value
CupertinoThumbBorderWidthProperty
public static readonly BindableProperty CupertinoThumbBorderWidthProperty
Field Value
CupertinoThumbDiameterProperty
public static readonly BindableProperty CupertinoThumbDiameterProperty
Field Value
CupertinoTrackHeightProperty
public static readonly BindableProperty CupertinoTrackHeightProperty
Field Value
EnableRangeProperty
public static readonly BindableProperty EnableRangeProperty
Field Value
EndProperty
public static readonly BindableProperty EndProperty
Field Value
EndThumbXProperty
public static readonly BindableProperty EndThumbXProperty
Field Value
IgnoreWrongDirectionProperty
public static readonly BindableProperty IgnoreWrongDirectionProperty
Field Value
MaxProperty
public static readonly BindableProperty MaxProperty
Field Value
MinMaxStringFormatProperty
public static readonly BindableProperty MinMaxStringFormatProperty
Field Value
MinProperty
public static readonly BindableProperty MinProperty
Field Value
OrientationProperty
public static readonly BindableProperty OrientationProperty
Field Value
RangeMinProperty
public static readonly BindableProperty RangeMinProperty
Field Value
RespondsToGesturesProperty
public static readonly BindableProperty RespondsToGesturesProperty
Field Value
SliderHeightProperty
public static readonly BindableProperty SliderHeightProperty
Field Value
StartProperty
public static readonly BindableProperty StartProperty
Field Value
StartThumbXProperty
public static readonly BindableProperty StartThumbXProperty
Field Value
StepProperty
public static readonly BindableProperty StepProperty
Field Value
ThumbColorProperty
public static readonly BindableProperty ThumbColorProperty
Field Value
TrackColorProperty
public static readonly BindableProperty TrackColorProperty
Field Value
TrackSelectedColorProperty
public static readonly BindableProperty TrackSelectedColorProperty
Field Value
Trail
public SkiaControl Trail
Field Value
ValueStringFormatProperty
public static readonly BindableProperty ValueStringFormatProperty
Field Value
_panningStartOffsetPts
protected Vector2 _panningStartOffsetPts
Field Value
lastTouchX
protected double lastTouchX
Field Value
moreHotspotSize
enlarge hotspot by pts
public double moreHotspotSize
Field Value
touchArea
track touched area type
protected RangeZone touchArea
Field Value
Properties
AvailableWidthAdjustment
Padding for the Thumb to go, to be able to leave some space around for shadows etc.
public double AvailableWidthAdjustment { get; set; }
Property Value
ClickOnTrailEnabled
public bool ClickOnTrailEnabled { get; set; }
Property Value
CupertinoThumbBorderWidth
The width of the border around the iOS slider thumb (default 0.5pt)
public double CupertinoThumbBorderWidth { get; set; }
Property Value
CupertinoThumbDiameter
The diameter of the iOS slider thumb in points (default is 28pt per iOS guidelines)
public double CupertinoThumbDiameter { get; set; }
Property Value
CupertinoTrackHeight
The height of the iOS slider track in points (default is 2pt per iOS guidelines)
public double CupertinoTrackHeight { get; set; }
Property Value
EnableRange
public bool EnableRange { get; set; }
Property Value
End
For non-ranged this is your main value
public double End { get; set; }
Property Value
EndThumbX
public double EndThumbX { get; set; }
Property Value
IgnoreWrongDirection
Will ignore gestures of the wrong direction, like if this Orientation is Horizontal will ignore gestures with vertical direction velocity
public bool IgnoreWrongDirection { get; set; }
Property Value
IsPressed
public bool IsPressed { get; set; }
Property Value
IsUserPanning
protected bool IsUserPanning { get; set; }
Property Value
Max
public double Max { get; set; }
Property Value
Min
public double Min { get; set; }
Property Value
MinMaxStringFormat
public string MinMaxStringFormat { get; set; }
Property Value
Orientation
public OrientationType Orientation { get; set; }
Property Value
RangeMin
public double RangeMin { get; set; }
Property Value
RespondsToGestures
Can be open/closed by gestures along with code-behind, default is true
public bool RespondsToGestures { get; set; }
Property Value
SliderHeight
public double SliderHeight { get; set; }
Property Value
Start
Enabled for ranged
public double Start { get; set; }
Property Value
StartThumbX
public double StartThumbX { get; set; }
Property Value
Step
public double Step { get; set; }
Property Value
ThumbColor
public Color ThumbColor { get; set; }
Property Value
TrackColor
The color of the unselected track in iOS style (default light gray)
public Color TrackColor { get; set; }
Property Value
TrackSelectedColor
The color of the selected track in iOS style (default iOS blue #007AFF)
public Color TrackSelectedColor { get; set; }
Property Value
ValueStringFormat
public string ValueStringFormat { get; set; }
Property Value
Methods
AdjustToStepValue(double, double, double)
protected double AdjustToStepValue(double value, double minValue, double stepValue)
Parameters
Returns
ApplyProperties()
public virtual void ApplyProperties()
ConvertOffsetsToValues()
protected virtual void ConvertOffsetsToValues()
CreateCupertinoStyleContent()
Creates a Cupertino (iOS) style slider following Apple's design guidelines
protected virtual void CreateCupertinoStyleContent()
CreateDefaultContent()
protected override void CreateDefaultContent()
CreateDefaultStyleContent()
protected virtual void CreateDefaultStyleContent()
FindViews()
protected virtual void FindViews()
MoveEndThumbHere(double)
protected void MoveEndThumbHere(double x)
Parameters
xdouble
MoveStartThumbHere(double)
protected void MoveStartThumbHere(double x)
Parameters
xdouble
OnDisposing()
Base performs some cleanup actions with Superview
public override void OnDisposing()
OnEndChanged()
public virtual void OnEndChanged()
OnLayoutChanged()
DrawingRect size changed
protected override void OnLayoutChanged()
OnPropertyChanged(string)
Method that is called when a bound property is changed.
protected override void OnPropertyChanged(string propertyName = null)
Parameters
propertyNamestringThe name of the bound property that changed.
OnStartChanged()
public virtual void OnStartChanged()
ProcessGestures(SkiaGesturesParameters, GestureEventProcessingInfo)
public override ISkiaGestureListener ProcessGestures(SkiaGesturesParameters args, GestureEventProcessingInfo apply)
Parameters
argsSkiaGesturesParametersapplyGestureEventProcessingInfo
Returns
RecalculateValues()
protected virtual void RecalculateValues()
Events
EndChanged
public event EventHandler<double> EndChanged
Event Type
StartChanged
public event EventHandler<double> StartChanged