共用方式為


ContentControl.OnContentChanged(Object, Object) 方法

定義

Content 屬性變更時呼叫。

protected:
 virtual void OnContentChanged(System::Object ^ oldContent, System::Object ^ newContent);
protected virtual void OnContentChanged (object oldContent, object newContent);
abstract member OnContentChanged : obj * obj -> unit
override this.OnContentChanged : obj * obj -> unit
Protected Overridable Sub OnContentChanged (oldContent As Object, newContent As Object)

參數

oldContent
Object

Content 屬性的舊值。

newContent
Object

Content 屬性的新值。

適用於