Property | Type | Description | |
---|---|---|---|
HeaderProperty | |||
HeaderTemplateProperty | |||
IsCheckedProperty | |||
SwitchForegroundProperty |
Property | Type | Description | |
---|---|---|---|
ChangeVisualState | void | ||
OnChecked | void | ||
OnClick | void | ||
OnIndeterminate | void | ||
OnIsCheckedChanged | void | ||
OnUnchecked | void | ||
SetDefaultContent | void |
Method | Description | |
---|---|---|
OnApplyTemplate ( ) : void |
Gets all the template parts and initializes the corresponding state.
|
|
ToString ( ) : string |
Returns a T:System.String that represents the current T:System.Object .
|
|
ToggleSwitch ( ) : System |
Initializes a new instance of the ToggleSwitch class.
|
Method | Description | |
---|---|---|
OnContentChanged ( object oldContent, object newContent ) : void |
Makes the content an "Off" or "On" string to match the state if the content is set to null in the design tool.
|
Method | Description | |
---|---|---|
ChangeVisualState ( bool useTransitions ) : void |
Change the visual state.
|
|
OnChecked ( object sender, |
Mirrors the E:System.Windows.Controls.Primitives.ToggleButton.Checked event.
|
|
OnClick ( object sender, |
Mirrors the E:System.Windows.Controls.Primitives.ToggleButton.Click event.
|
|
OnIndeterminate ( object sender, |
Mirrors the E:System.Windows.Controls.Primitives.ToggleButton.Indeterminate event.
|
|
OnIsCheckedChanged ( |
Invoked when the IsChecked DependencyProperty is changed.
|
|
OnUnchecked ( object sender, |
Mirrors the E:System.Windows.Controls.Primitives.ToggleButton.Unchecked event.
|
|
SetDefaultContent ( ) : void |
Makes the content an "Off" or "On" string to match the state.
|
protected OnContentChanged ( object oldContent, object newContent ) : void | ||
oldContent | object | The old content. |
newContent | object | The new content. |
return | void |
public static DependencyProperty,System.Windows HeaderProperty | ||
return |
public static DependencyProperty,System.Windows HeaderTemplateProperty | ||
return |
public static DependencyProperty,System.Windows IsCheckedProperty | ||
return |