ToggleButton.OnToggle Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Called by the OnClick method to implement toggle behavior.

Namespace:  System.Windows.Controls.Primitives
Assembly:  System.Windows (in System.Windows.dll)

Syntax

Protected Friend Overridable Sub OnToggle
protected internal virtual void OnToggle()

Remarks

This method toggles the IsChecked property.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

ToggleButton Class

System.Windows.Controls.Primitives Namespace

CheckBox

RadioButton