Table of Contents

Class SkiaSlider

Namespace
DrawnUi.Draw
Assembly
DrawnUi.Maui.dll
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

BindableProperty

ClickOnTrailEnabledProperty

public static readonly BindableProperty ClickOnTrailEnabledProperty

Field Value

BindableProperty

CupertinoThumbBorderWidthProperty

public static readonly BindableProperty CupertinoThumbBorderWidthProperty

Field Value

BindableProperty

CupertinoThumbDiameterProperty

public static readonly BindableProperty CupertinoThumbDiameterProperty

Field Value

BindableProperty

CupertinoTrackHeightProperty

public static readonly BindableProperty CupertinoTrackHeightProperty

Field Value

BindableProperty

EnableRangeProperty

public static readonly BindableProperty EnableRangeProperty

Field Value

BindableProperty

EndProperty

public static readonly BindableProperty EndProperty

Field Value

BindableProperty

EndThumbXProperty

public static readonly BindableProperty EndThumbXProperty

Field Value

BindableProperty

IgnoreWrongDirectionProperty

public static readonly BindableProperty IgnoreWrongDirectionProperty

Field Value

BindableProperty

MaxProperty

public static readonly BindableProperty MaxProperty

Field Value

BindableProperty

MinMaxStringFormatProperty

public static readonly BindableProperty MinMaxStringFormatProperty

Field Value

BindableProperty

MinProperty

public static readonly BindableProperty MinProperty

Field Value

BindableProperty

OrientationProperty

public static readonly BindableProperty OrientationProperty

Field Value

BindableProperty

RangeMinProperty

public static readonly BindableProperty RangeMinProperty

Field Value

BindableProperty

RespondsToGesturesProperty

public static readonly BindableProperty RespondsToGesturesProperty

Field Value

BindableProperty

SliderHeightProperty

public static readonly BindableProperty SliderHeightProperty

Field Value

BindableProperty

StartProperty

public static readonly BindableProperty StartProperty

Field Value

BindableProperty

StartThumbXProperty

public static readonly BindableProperty StartThumbXProperty

Field Value

BindableProperty

StepProperty

public static readonly BindableProperty StepProperty

Field Value

BindableProperty

ThumbColorProperty

public static readonly BindableProperty ThumbColorProperty

Field Value

BindableProperty

TrackColorProperty

public static readonly BindableProperty TrackColorProperty

Field Value

BindableProperty

TrackSelectedColorProperty

public static readonly BindableProperty TrackSelectedColorProperty

Field Value

BindableProperty

Trail

public SkiaControl Trail

Field Value

SkiaControl

ValueStringFormatProperty

public static readonly BindableProperty ValueStringFormatProperty

Field Value

BindableProperty

_panningStartOffsetPts

protected Vector2 _panningStartOffsetPts

Field Value

Vector2

lastTouchX

protected double lastTouchX

Field Value

double

moreHotspotSize

enlarge hotspot by pts

public double moreHotspotSize

Field Value

double

touchArea

track touched area type

protected RangeZone touchArea

Field Value

RangeZone

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

double

ClickOnTrailEnabled

public bool ClickOnTrailEnabled { get; set; }

Property Value

bool

CupertinoThumbBorderWidth

The width of the border around the iOS slider thumb (default 0.5pt)

public double CupertinoThumbBorderWidth { get; set; }

Property Value

double

CupertinoThumbDiameter

The diameter of the iOS slider thumb in points (default is 28pt per iOS guidelines)

public double CupertinoThumbDiameter { get; set; }

Property Value

double

CupertinoTrackHeight

The height of the iOS slider track in points (default is 2pt per iOS guidelines)

public double CupertinoTrackHeight { get; set; }

Property Value

double

EnableRange

public bool EnableRange { get; set; }

Property Value

bool

End

For non-ranged this is your main value

public double End { get; set; }

Property Value

double

EndThumbX

public double EndThumbX { get; set; }

Property Value

double

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

bool

IsPressed

public bool IsPressed { get; set; }

Property Value

bool

IsUserPanning

protected bool IsUserPanning { get; set; }

Property Value

bool

Max

public double Max { get; set; }

Property Value

double

Min

public double Min { get; set; }

Property Value

double

MinMaxStringFormat

public string MinMaxStringFormat { get; set; }

Property Value

string

Orientation

Gets or sets the orientation. This is a bindable property.
public OrientationType Orientation { get; set; }

Property Value

OrientationType

RangeMin

public double RangeMin { get; set; }

Property Value

double

RespondsToGestures

Can be open/closed by gestures along with code-behind, default is true

public bool RespondsToGestures { get; set; }

Property Value

bool

SliderHeight

public double SliderHeight { get; set; }

Property Value

double

Start

Enabled for ranged

public double Start { get; set; }

Property Value

double

StartThumbX

public double StartThumbX { get; set; }

Property Value

double

Step

public double Step { get; set; }

Property Value

double

ThumbColor

public Color ThumbColor { get; set; }

Property Value

Color

TrackColor

The color of the unselected track in iOS style (default light gray)

public Color TrackColor { get; set; }

Property Value

Color

TrackSelectedColor

The color of the selected track in iOS style (default iOS blue #007AFF)

public Color TrackSelectedColor { get; set; }

Property Value

Color

ValueStringFormat

public string ValueStringFormat { get; set; }

Property Value

string

Methods

AdjustToStepValue(double, double, double)

protected double AdjustToStepValue(double value, double minValue, double stepValue)

Parameters

value double
minValue double
stepValue double

Returns

double

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

x double

MoveStartThumbHere(double)

protected void MoveStartThumbHere(double x)

Parameters

x double

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

propertyName string

The name of the bound property that changed.

OnStartChanged()

public virtual void OnStartChanged()

ProcessGestures(SkiaGesturesParameters, GestureEventProcessingInfo)

public override ISkiaGestureListener ProcessGestures(SkiaGesturesParameters args, GestureEventProcessingInfo apply)

Parameters

args SkiaGesturesParameters
apply GestureEventProcessingInfo

Returns

ISkiaGestureListener

RecalculateValues()

protected virtual void RecalculateValues()

Events

EndChanged

public event EventHandler<double> EndChanged

Event Type

EventHandler<double>

StartChanged

public event EventHandler<double> StartChanged

Event Type

EventHandler<double>