Class SkiaRangeBase
Base class for range-based controls like sliders and progress bars. Provides common functionality for value ranges, track management, and platform styling.
public abstract class SkiaRangeBase : 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
-
SkiaRangeBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Fields
MaxProperty
public static readonly BindableProperty MaxProperty
Field Value
MinProperty
public static readonly BindableProperty MinProperty
Field Value
ProgressColorProperty
public static readonly BindableProperty ProgressColorProperty
Field Value
ProgressTrail
protected SkiaControl ProgressTrail
Field Value
StepProperty
public static readonly BindableProperty StepProperty
Field Value
Track
protected SkiaControl Track
Field Value
TrackColorProperty
public static readonly BindableProperty TrackColorProperty
Field Value
TrackHeightProperty
public static readonly BindableProperty TrackHeightProperty
Field Value
ValueProperty
public static readonly BindableProperty ValueProperty
Field Value
lockInternal
protected volatile bool lockInternal
Field Value
Properties
Max
public double Max { get; set; }
Property Value
Min
public double Min { get; set; }
Property Value
ProgressColor
The color of the progress/selected portion
public Color ProgressColor { get; set; }
Property Value
Step
public double Step { get; set; }
Property Value
TrackColor
The color of the background track
public Color TrackColor { get; set; }
Property Value
TrackHeight
The height of the track
public double TrackHeight { get; set; }
Property Value
Value
The current value of the range control
public double Value { get; set; }
Property Value
Methods
AdjustToStepValue(double, double, double)
protected double AdjustToStepValue(double value, double minValue, double stepValue)
Parameters
Returns
FindViews()
Override to find and assign Track and ProgressTrail references
protected abstract void FindViews()
OnChildrenChanged()
Happens when child was added or removed, will call Invalidate() in base
public override void OnChildrenChanged()
OnDisposing()
Base performs some cleanup actions with Superview
public override void OnDisposing()
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.
OnValueChanged()
protected virtual void OnValueChanged()
PositionFromValue(double, double)
protected virtual double PositionFromValue(double value, double totalLength)
Parameters
Returns
UpdateVisualState()
Override to update the visual appearance based on current properties
protected abstract void UpdateVisualState()
ValueFromPosition(double, double)
protected virtual double ValueFromPosition(double position, double totalLength)
Parameters
Returns
Events
ValueChanged
public event EventHandler<double> ValueChanged