Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.32 KB

control_isenabledchanged.md

File metadata and controls

31 lines (20 loc) · 1.32 KB
-api-id -api-type
E:Windows.UI.Xaml.Controls.Control.IsEnabledChanged
winrt event

Windows.UI.Xaml.Controls.Control.IsEnabledChanged

-description

Occurs when the IsEnabled property changes.

-xaml-syntax

<control IsEnabledChanged="eventhandler"/>

-remarks

Whenever IsEnabled changes, that fires the IsEnabledChanged event. Controls might handle this event in order to change the visual states. The event has DependencyPropertyChangedEventArgs data, so you can determine the old and new values without having to use your own flags.

A control inherits the IsEnabled property from its parent control. For example, if a control that contains a button has IsEnabled set to false, the button's IsEnabled property is also false. When the parent's property changes, that fires IsEnabledChanged for each control where the value changes because of the value inheriting.

-examples

-see-also

IsEnabled, DependencyPropertyChangedEventArgs