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
Показать файл Открыть проект Примеры использования класса

Защищенные методы

Метод Описание
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