RoutedPropertyChangingEventArgs(Of T).InCoercion Property


Gets or sets a value indicating whether internal value coercion is acting on the property change that originated the RoutedPropertyChanging event.

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

Public Property InCoercion As Boolean

Property Value

Type: System.Boolean
true if coercion is active. false if coercion is not active.

Coercion of values is not inherent in the property system in Silverlight. Implementations might use this value as a sentinel to denote that processing in the handler has entered a custom routine that coerces the value based on the reported old and new values. The coercion routine would not attempt to raise the event again in this case.


Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions