OnClick Method
Collapse the table of content
Expand the table of content

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)

protected override void OnClick()

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft