Class SkiaSwitch
Switch-like control, can include any content inside. It's aither you use default content (todo templates?..)
or can include any content inside, and properties will by applied by convention to a SkiaShape with Tag Frame, SkiaShape with Tag Thumb. At the same time you can override ApplyProperties() and apply them to your content yourself.
public class SkiaSwitch : SkiaToggle, 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
-
SkiaSwitch
- Implements
- Inherited Members
- Extension Methods
Fields
AnimationSpeed
public static uint AnimationSpeed
Field Value
Thumb
public SkiaShape Thumb
Field Value
Track
public SkiaShape Track
Field Value
Methods
ApplyOff()
public virtual void ApplyOff()
ApplyOn()
public virtual void ApplyOn()
ApplyProperties()
Base call Update()
public override void ApplyProperties()
CanAnimate()
protected virtual bool CanAnimate()
Returns
CreateCupertinoStyleContent()
protected virtual void CreateCupertinoStyleContent()
CreateDefaultContent()
protected override void CreateDefaultContent()
CreateDefaultStyleContent()
protected virtual void CreateDefaultStyleContent()
CreateMaterialStyleContent()
protected virtual void CreateMaterialStyleContent()
CreateWindowsStyleContent()
protected virtual void CreateWindowsStyleContent()
FindViews()
protected virtual void FindViews()
GetThumbPosForOff()
protected virtual double GetThumbPosForOff()
Returns
GetThumbPosForOn()
protected virtual double GetThumbPosForOn()
Returns
OnChildrenChanged()
Happens when child was added or removed, will call Invalidate() in base
public override void OnChildrenChanged()
OnToggledChanged()
Base calls ApplyProperties()
protected override void OnToggledChanged()