Class ToggleButton
Implements button with checked state
Inheritance
System.Object
ToggleButton
Implements
Inherited Members
Namespace: EmptyKeys.UserInterface.Controls.Primitives
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class ToggleButton : Button, ICommandSource
Constructors
ToggleButton()
Initializes a new instance of the ToggleButton class.
Declaration
public ToggleButton()
Fields
CheckedEvent
The checked event
Declaration
public static readonly RoutedEvent CheckedEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
IndeterminateEvent
The indeterminate event
Declaration
public static readonly RoutedEvent IndeterminateEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
IsCheckedProperty
The is checked property
Declaration
public static readonly DependencyProperty IsCheckedProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsThreeStateProperty
The is three state property
Declaration
public static readonly DependencyProperty IsThreeStateProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
UncheckedEvent
The unchecked event
Declaration
public static readonly RoutedEvent UncheckedEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
Properties
IsChecked
Gets or sets the is checked.
Declaration
public bool? IsChecked { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | The is checked. |
IsThreeState
Gets or sets a value indicating whether this instance is three state.
Declaration
public bool IsThreeState { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
OnChecked(RoutedEventArgs)
Raises the Checked event.
Declaration
protected virtual void OnChecked(RoutedEventArgs routedEventArgs)
Parameters
Type | Name | Description |
---|---|---|
RoutedEventArgs | routedEventArgs | The RoutedEventArgs instance containing the event data. |
OnClick()
Called when button is [clicked].
Declaration
protected override void OnClick()
Overrides
OnIndeterminate(RoutedEventArgs)
Raises the Indeterminate event.
Declaration
protected virtual void OnIndeterminate(RoutedEventArgs routedEventArgs)
Parameters
Type | Name | Description |
---|---|---|
RoutedEventArgs | routedEventArgs | The RoutedEventArgs instance containing the event data. |
OnToggle()
Called when [toggle].
Declaration
protected virtual void OnToggle()
OnUnchecked(RoutedEventArgs)
Raises the Unchecked event.
Declaration
protected virtual void OnUnchecked(RoutedEventArgs routedEventArgs)
Parameters
Type | Name | Description |
---|---|---|
RoutedEventArgs | routedEventArgs | The RoutedEventArgs instance containing the event data. |
Events
Checked
Occurs when [checked].
Declaration
public event RoutedEventHandler Checked
Event Type
Type | Description |
---|---|
RoutedEventHandler |
Indeterminate
Occurs when [indeterminate] state.
Declaration
public event RoutedEventHandler Indeterminate
Event Type
Type | Description |
---|---|
RoutedEventHandler |
Unchecked
Occurs when [unchecked].
Declaration
public event RoutedEventHandler Unchecked
Event Type
Type | Description |
---|---|
RoutedEventHandler |