Table of Contents

Class DisplaySwitch

Namespace
Loehnert.Controls
Assembly
Loehnert.Controls.dll

Represents a control to edit a boolean value.

public class DisplaySwitch : UserControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IComponentConnector
Inheritance
DisplaySwitch
Implements
Inherited Members

Constructors

DisplaySwitch()

Initializes a new instance of the DisplaySwitch class.

public DisplaySwitch()

Fields

IsOnProperty

Identifies the IsOn dependency property.

public static readonly DependencyProperty IsOnProperty

Field Value

DependencyProperty

TextProperty

Identifies the Text dependency property.

public static readonly DependencyProperty TextProperty

Field Value

DependencyProperty

Properties

IsOn

Gets or sets a value indicating whether the switch is on.

public bool IsOn { get; set; }

Property Value

bool

Text

Gets or sets the text.

public string Text { get; set; }

Property Value

string

Methods

InitializeComponent()

InitializeComponent

public void InitializeComponent()