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에 대한 값이 있는 경우 기본 구현은 구현된 DataTemplateSelector에서 SelectTemplate을 호출하여 newContent 값을 항목으로 전달하고 ContentControl컨테이너로 호출합니다. 그런 다음 반환 값은 호출자에서 ContentTemplate 을 자동으로 설정합니다.

적용 대상