FrameworkContentElement.BindingGroup 屬性

定義

取得或設定用於項目的 BindingGroup

public:
 property System::Windows::Data::BindingGroup ^ BindingGroup { System::Windows::Data::BindingGroup ^ get(); void set(System::Windows::Data::BindingGroup ^ value); };
[System.Windows.Localizability(System.Windows.LocalizationCategory.NeverLocalize)]
public System.Windows.Data.BindingGroup BindingGroup { get; set; }
[<System.Windows.Localizability(System.Windows.LocalizationCategory.NeverLocalize)>]
member this.BindingGroup : System.Windows.Data.BindingGroup with get, set
Public Property BindingGroup As BindingGroup

屬性值

用於項目的 BindingGroup

屬性

備註

BindingGroup可用來驗證 物件之多個屬性的值。 例如,假設應用程式會提示使用者輸入位址,然後填入類型的 Address 物件,其具有使用者所提供的值、 CityZipCodeCountry 屬性 Street 。 應用程式有一個面板,其中包含四 TextBox 個控制項,每個控制項都系結至其中一個物件的屬性。 您可以在 中使用 ValidationRuleBindingGroup 來驗證 Address 物件。 例如, ValidationRule 可以確保郵遞區號對位址的國家/地區有效。

子專案繼承 BindingGroup 自其父元素,就像任何其他可繼承的屬性一樣。

相依性屬性資訊

識別碼欄位 BindingGroupProperty
中繼資料屬性設定為 true Inherits

適用於