Specifies that a type defined in C++ can be used for binding.
Inheritance
Syntax
Attributes
- AttributeUsageAttribute(512)
- VersionAttribute(NTDDI_WIN8)
- WebHostHiddenAttribute()
Members
The BindableAttribute attribute has these types of members:
Constructors
The BindableAttribute attribute has these constructors.
| Constructor | Description |
|---|---|
| BindableAttribute | Initializes a new instance of the BindableAttribute class. |
Methods
The BindableAttribute attribute inherits methods from the Object class.
Remarks
Apply this attribute to C++-based data classes to enable their use as binding sources. Common language runtime (CLR) types, including all types defined in C# and Microsoft Visual Basic, are bindable by default. You can also make a type bindable by implementing ICustomPropertyProvider. For more info, see Data binding overview.
Examples
The following code example shows the typical usage pattern for this attribute. For the complete code listing, see the XAML data binding sample.
[Windows::UI::Xaml::Data::Bindable] public ref class Employee sealed : Windows::UI::Xaml::Data::INotifyPropertyChanged { // ... }
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012