共用方式為


ContentPresenter.OnContentTemplateSelectorChanged 方法

定義

ContentTemplateSelector 屬性變更時叫用。

protected:
 virtual void OnContentTemplateSelectorChanged(System::Windows::Controls::DataTemplateSelector ^ oldContentTemplateSelector, System::Windows::Controls::DataTemplateSelector ^ newContentTemplateSelector);
protected virtual void OnContentTemplateSelectorChanged (System.Windows.Controls.DataTemplateSelector oldContentTemplateSelector, System.Windows.Controls.DataTemplateSelector newContentTemplateSelector);
abstract member OnContentTemplateSelectorChanged : System.Windows.Controls.DataTemplateSelector * System.Windows.Controls.DataTemplateSelector -> unit
override this.OnContentTemplateSelectorChanged : System.Windows.Controls.DataTemplateSelector * System.Windows.Controls.DataTemplateSelector -> unit
Protected Overridable Sub OnContentTemplateSelectorChanged (oldContentTemplateSelector As DataTemplateSelector, newContentTemplateSelector As DataTemplateSelector)

參數

oldContentTemplateSelector
DataTemplateSelector

ContentTemplateSelector 屬性的舊值。

newContentTemplateSelector
DataTemplateSelector

ContentTemplateSelector 屬性的新值。

適用於