Show / Hide Table of Contents

    Class Switch

    A View control that provides a toggled value.

    Inheritance
    System.Object
    CustomRenderingView
    SKGLSurfaceView
    SkiaGraphicsView
    GraphicsView<SwitchDrawable>
    Switch
    Implements
    IMeasurable
    ISwitch
    Inherited Members
    GraphicsView<SwitchDrawable>.IsEnabled
    GraphicsView<SwitchDrawable>.Measure(Double, Double)
    GraphicsView<SwitchDrawable>.SetProperty<T>(String, T)
    GraphicsView<SwitchDrawable>.GetProperty<T>(String)
    GraphicsView<SwitchDrawable>.Drawable
    GraphicsView<SwitchDrawable>.OnUnfocused(Object, EventArgs)
    GraphicsView<SwitchDrawable>.OnFocused(Object, EventArgs)
    GraphicsView<SwitchDrawable>.OnTouch(Object, TouchEventArgs)
    SkiaGraphicsView.OnPaintSurface(Object, SKPaintSurfaceEventArgs)
    SKGLSurfaceView.OnDrawFrame()
    SKGLSurfaceView.OnResized()
    SKGLSurfaceView.Dispose(Boolean)
    CustomRenderingView.MainloopContext
    CustomRenderingView.PaintSurface
    CustomRenderingView.Invalidate()
    CustomRenderingView.SendPaintSurface(SKPaintSurfaceEventArgs)
    Namespace: Tizen.UIExtensions.NUI.GraphicsView
    Assembly: Tizen.UIExtensions.NUI.dll
    Syntax
    public class Switch : GraphicsView<SwitchDrawable>, IMeasurable, ISwitch

    Constructors

    Switch()

    Initializes a new instance of the Switch class.

    Declaration
    public Switch()

    Properties

    BackgroundColor

    Gets or sets the color which will fill the background.

    Declaration
    public Color BackgroundColor { get; set; }
    Property Value
    Type Description
    Color

    IsToggled

    Gets or sets a Boolean value that indicates whether this Switch element is toggled.

    Declaration
    public bool IsToggled { get; set; }
    Property Value
    Type Description
    System.Boolean

    OnColor

    Gets or sets the color of the switch when it is in the "On" position.

    Declaration
    public Color OnColor { get; set; }
    Property Value
    Type Description
    Color

    ThumbColor

    Gets or sets the color of the thumb

    Declaration
    public Color ThumbColor { get; set; }
    Property Value
    Type Description
    Color

    Events

    Toggled

    Event that is raised when this Switch is toggled.

    Declaration
    public event EventHandler Toggled
    Event Type
    Type Description
    System.EventHandler

    Implements

    IMeasurable
    ISwitch
    Back to top Copyright © 2021 Samsung
    Generated by DocFX