ToggleButton.OnClick Method

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

Called when the ToggleButton is tapped by the user or the activated using the keyboard.

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

Syntax

Protected Overrides Sub OnClick
protected override void OnClick()

Remarks

This implementation moves the toggle button control to its next IsChecked value.

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