ContentControl.OnContentChanged(Object, Object) 方法

定義

Content 屬性變更時呼叫。Called when the Content property changes.

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 屬性的舊值。The old value of the Content property.

newContent
Object

Content 屬性的新值。The new value of the Content property.

適用於