IsDataBindingAllowed Property

FrameworkPropertyMetadata.IsDataBindingAllowed Property


Gets a value that indicates whether data binding is supported for the . GTMT

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

public bool IsDataBindingAllowed { get; }

Property Value

Type: System.Boolean

true if data binding is supported on the dependency property to which this metadata applies; otherwise, false. The default is true.

This property reports false for one of two possible conditions: either data binding to a dependency property is not allowed because the dependency property is read-only (as reported in the identifier, not the metadata), or the value of another metadata property, IsNotDataBindable, is set to true in this metadata. This property is exposed as a convenience so that callers do not have to check both ReadOnly and IsNotDataBindable.GTMT

If you are attempting to create metadata that specifies that an otherwise read/write property should not support data binding, specify the flag NotDataBindable (note the slight naming convention difference versus IsNotDataBindable).

Members of this class are not typically used in XAML.

Legacy Code Example

The following example obtains the default metadata from various dependency property fields, queries the value of various FrameworkPropertyMetadata properties on it, and uses the information to populate a table to implement a "metadata browser".

Code snippet is not found. Confirm that the code snippet name 'PropertySystemEsoterics' is correct.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft