C# 클래스 Microsoft.Practices.Prism.ViewModel.DataTemplateSelector

This custom ContentControl changes its ContentTemplate based on the content it is presenting.
In order to determine the template it must use for the new content, this control retrieves it from its resources using the name for the type of the new content as the key.
상속: System.Windows.Controls.ContentControl
파일 보기 프로젝트 열기: jeffras/Prism-4-with-WinForms 1 사용 예제들

보호된 메소드들

메소드 설명
OnContentChanged ( object oldContent, object newContent ) : void

Called when the value of the P:System.Windows.Controls.ContentControl.Content property changes.

Will attempt to discover the DataTemplate from the ResourceDictionary by matching the type name of newContent.

비공개 메소드들

메소드 설명
GetDefaultContentTemplate ( ) : System.Windows.DataTemplate

메소드 상세

OnContentChanged() 보호된 메소드

Called when the value of the P:System.Windows.Controls.ContentControl.Content property changes.
Will attempt to discover the DataTemplate from the ResourceDictionary by matching the type name of newContent.
protected OnContentChanged ( object oldContent, object newContent ) : void
oldContent object The old value of the property.
newContent object The new value of the property.
리턴 void