共用方式為


DataGridBoundColumn.OnBindingChanged(BindingBase, BindingBase) 方法

定義

DataGrid 屬性的值變更時告知 Binding

protected:
 virtual void OnBindingChanged(System::Windows::Data::BindingBase ^ oldBinding, System::Windows::Data::BindingBase ^ newBinding);
protected virtual void OnBindingChanged (System.Windows.Data.BindingBase oldBinding, System.Windows.Data.BindingBase newBinding);
abstract member OnBindingChanged : System.Windows.Data.BindingBase * System.Windows.Data.BindingBase -> unit
override this.OnBindingChanged : System.Windows.Data.BindingBase * System.Windows.Data.BindingBase -> unit
Protected Overridable Sub OnBindingChanged (oldBinding As BindingBase, newBinding As BindingBase)

參數

oldBinding
BindingBase

先前的繫結。

newBinding
BindingBase

資料行所變更成的繫結。

給繼承者的注意事項

OnBindingChanged(BindingBase, BindingBase) 衍生類別中覆寫時,請確定您呼叫基類的 方法,讓已註冊的 OnBindingChanged(BindingBase, BindingBase) 委派接收事件。

適用於