共用方式為


TabItem.OnContentTemplateSelectorChanged 方法

定義

ContentTemplateSelector 屬性變更時呼叫。

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

參數

oldContentTemplateSelector
DataTemplateSelector

內容樣板選取器的舊值。

newContentTemplateSelector
DataTemplateSelector

內容樣板選取器的新值。

適用於