Table of Contents

Class SkiaToggle

Namespace
DrawnUi.Draw
Assembly
DrawnUi.Maui.dll

Base control for toggling between 2 states. It provides no gestures support by itsself.

public class SkiaToggle : 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
SkiaToggle
Implements
Derived
Inherited Members
Extension Methods

Fields

ColorFrameOffProperty

public static readonly BindableProperty ColorFrameOffProperty

Field Value

BindableProperty

ColorFrameOnProperty

public static readonly BindableProperty ColorFrameOnProperty

Field Value

BindableProperty

ColorThumbOffProperty

public static readonly BindableProperty ColorThumbOffProperty

Field Value

BindableProperty

ColorThumbOnProperty

public static readonly BindableProperty ColorThumbOnProperty

Field Value

BindableProperty

CommandTappedParameterProperty

public static readonly BindableProperty CommandTappedParameterProperty

Field Value

BindableProperty

CommandTappedProperty

public static readonly BindableProperty CommandTappedProperty

Field Value

BindableProperty

CommandToggledProperty

public static readonly BindableProperty CommandToggledProperty

Field Value

BindableProperty

DefaultValueProperty

public static readonly BindableProperty DefaultValueProperty

Field Value

BindableProperty

IsAnimatedProperty

public static readonly BindableProperty IsAnimatedProperty

Field Value

BindableProperty

IsInternalCall

protected bool IsInternalCall

Field Value

bool

IsToggledProperty

public static readonly BindableProperty IsToggledProperty

Field Value

BindableProperty

RespondsToGesturesProperty

public static readonly BindableProperty RespondsToGesturesProperty

Field Value

BindableProperty

Properties

ColorFrameOff

public Color ColorFrameOff { get; set; }

Property Value

Color

ColorFrameOn

public Color ColorFrameOn { get; set; }

Property Value

Color

ColorThumbOff

public Color ColorThumbOff { get; set; }

Property Value

Color

ColorThumbOn

public Color ColorThumbOn { get; set; }

Property Value

Color

CommandTapped

public bool CommandTapped { get; set; }

Property Value

bool

CommandTappedParameter

public bool CommandTappedParameter { get; set; }

Property Value

bool

CommandToggled

public ICommand CommandToggled { get; set; }

Property Value

ICommand

DefaultValue

public bool DefaultValue { get; set; }

Property Value

bool

IsAnimated

public bool IsAnimated { get; set; }

Property Value

bool

IsToggled

public bool IsToggled { get; set; }

Property Value

bool

RespondsToGestures

public bool RespondsToGestures { get; set; }

Property Value

bool

Methods

ApplyProperties()

Base call Update()

public virtual void ApplyProperties()

ChangeDefaultValue()

protected virtual void ChangeDefaultValue()

NeedUpdateProperties(BindableObject, object, object)

protected static void NeedUpdateProperties(BindableObject bindable, object oldvalue, object newvalue)

Parameters

bindable BindableObject
oldvalue object
newvalue object

NotifyWasToggled()

protected virtual void NotifyWasToggled()

OnDisposing()

Base performs some cleanup actions with Superview

public override void OnDisposing()

OnLayoutChanged()

DrawingRect size changed

protected override void OnLayoutChanged()

OnToggledChanged()

Base calls ApplyProperties()

protected virtual void OnToggledChanged()

ProcessGestures(SkiaGesturesParameters, GestureEventProcessingInfo)

public override ISkiaGestureListener ProcessGestures(SkiaGesturesParameters args, GestureEventProcessingInfo apply)

Parameters

args SkiaGesturesParameters
apply GestureEventProcessingInfo

Returns

ISkiaGestureListener

Events

Toggled

public event EventHandler<bool> Toggled

Event Type

EventHandler<bool>