This topic has not yet been rated - Rate this topic

ButtonBase.OnIsPressedChanged Method

April 12, 2014

Called when the value of the IsPressed property changes.

Namespace:  System.Windows.Controls.Primitives
Assembly:  System.Windows (in System.Windows.dll)
protected virtual void OnIsPressedChanged(
	DependencyPropertyChangedEventArgs e
)

Override the OnIsPressedChanged method in a derived class to provide custom actions when the IsPressed property changes.

The default behavior of the ButtonBase class is that when a button instance is not enabled, it cannot be in a pressed or focused state.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.