Class SkiaToggle
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
ColorFrameOnProperty
public static readonly BindableProperty ColorFrameOnProperty
Field Value
ColorThumbOffProperty
public static readonly BindableProperty ColorThumbOffProperty
Field Value
ColorThumbOnProperty
public static readonly BindableProperty ColorThumbOnProperty
Field Value
CommandTappedParameterProperty
public static readonly BindableProperty CommandTappedParameterProperty
Field Value
CommandTappedProperty
public static readonly BindableProperty CommandTappedProperty
Field Value
CommandToggledProperty
public static readonly BindableProperty CommandToggledProperty
Field Value
DefaultValueProperty
public static readonly BindableProperty DefaultValueProperty
Field Value
IsAnimatedProperty
public static readonly BindableProperty IsAnimatedProperty
Field Value
IsInternalCall
protected bool IsInternalCall
Field Value
IsToggledProperty
public static readonly BindableProperty IsToggledProperty
Field Value
RespondsToGesturesProperty
public static readonly BindableProperty RespondsToGesturesProperty
Field Value
Properties
ColorFrameOff
public Color ColorFrameOff { get; set; }
Property Value
ColorFrameOn
public Color ColorFrameOn { get; set; }
Property Value
ColorThumbOff
public Color ColorThumbOff { get; set; }
Property Value
ColorThumbOn
public Color ColorThumbOn { get; set; }
Property Value
CommandTapped
public bool CommandTapped { get; set; }
Property Value
CommandTappedParameter
public bool CommandTappedParameter { get; set; }
Property Value
CommandToggled
public ICommand CommandToggled { get; set; }
Property Value
DefaultValue
public bool DefaultValue { get; set; }
Property Value
IsAnimated
public bool IsAnimated { get; set; }
Property Value
IsToggled
public bool IsToggled { get; set; }
Property Value
RespondsToGestures
public bool RespondsToGestures { get; set; }
Property Value
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
bindableBindableObjectoldvalueobjectnewvalueobject
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
argsSkiaGesturesParametersapplyGestureEventProcessingInfo
Returns
Events
Toggled
public event EventHandler<bool> Toggled