BindableSupport 列舉

定義

指定數值,表示屬性是否可以繫結至資料項目或另一個屬性。Specifies values to indicate whether a property can be bound to a data element or another property.

public enum class BindableSupport
public enum BindableSupport
type BindableSupport = 
Public Enum BindableSupport
繼承
BindableSupport

欄位

Default 2

屬性設為預設值。The property is set to the default.

No 0

屬性在設計階段是不可繫結的。The property is not bindable at design time.

Yes 1

屬性在設計階段是可繫結的。The property is bindable at design time.

範例

如需如何使用BindableSupport列舉來指示屬性是否可以系結的範例, 請參閱中BindableAttribute.BindableAttribute的範例程式碼。For an example on how to use the BindableSupport enumeration to indicate whether a property can be bound, see the sample code in BindableAttribute.BindableAttribute.

備註

這個類別是在設計階段用來指示設計工具是否應該在視覺化設計工具中提供屬性, 以供資料系結使用。This class is used at design time to indicate whether a designer should offer a property as available for data binding in a visual designer. 這個類別不會影響屬性是否可以在執行時間進行資料系結。This class does not affect whether the property can be data bound at runtime.

適用於

另請參閱