BindableAttribute Constructor (BindableSupport)

Initializes a new instance of the BindableAttribute class with one of the BindableSupport values.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

public BindableAttribute(
	BindableSupport flags


Type: System.ComponentModel.BindableSupport
One of the BindableSupport values.

When you mark a property with the BindableAttribute set to true, the value of this attribute is set to the constant member Yes. For a property marked with the BindableAttribute set to false, the value is No. Therefore, to check the value of this attribute in your code, you must specify the attribute as BindableAttribute.Yes or BindableAttribute.No.

The following code example marks a property as appropriate to bind data to. This code example creates a new BindableAttribute, sets its value to BindableAttribute.Yes, and binds it to the property.

public int MyProperty
        // Insert code here.
        return 0;
        // Insert code here.

private void button1_Click(object sender, RoutedEventArgs e)



Supported in: 5, 4

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

Community Additions