ContentControl.OnContentChanged(Object, Object) メソッド

定義

Content プロパティの値が変更されたときに呼び出されます。

protected:
 virtual void OnContentChanged(Platform::Object ^ oldContent, Platform::Object ^ newContent) = OnContentChanged;
void OnContentChanged(IInspectable const& oldContent, IInspectable const& newContent);
protected virtual void OnContentChanged(object oldContent, object newContent);
function onContentChanged(oldContent, newContent)
Protected Overridable Sub OnContentChanged (oldContent As Object, newContent As Object)

パラメーター

oldContent
Object

Platform::Object

IInspectable

Content プロパティの古い値。

newContent
Object

Platform::Object

IInspectable

Content プロパティの新しい値。

注釈

ContentTemplateSelector の値が存在する場合、既定の実装では、実装された DataTemplateSelectorSelectTemplate が呼び出され、newContent 値が項目として渡され、呼び出し元の ContentControl がコンテナーとして渡されます。 戻り値は、呼び出し元に ContentTemplate を自動的に設定します。

適用対象