C# Class Talifun.Commander.UI.ComplexGroupDataTemplateSelector

ComplexGroupDataTemplateSelector provides additional functionality for finding DataTemplates in WPF
Inheritance: System.Windows.Controls.DataTemplateSelector
Afficher le fichier Open project: taliesins/talifun-commander

Méthodes publiques

Méthode Description
ComplexGroupDataTemplateSelector ( ) : System
SelectTemplate ( object item, DependencyObject container ) : System.Windows.DataTemplate

override for DataTemplate SelectTemplate method

Private Methods

Méthode Description
GetTypeNameForKey ( Type type ) : string
SelectByKey ( object resourceKey, DependencyObject container ) : System.Windows.DataTemplate

Selects a template by resource key. Where to look is based on the DiscoverMethod property

SelectByKeyGeneralToSpecific ( object resourceKey, DependencyObject container ) : System.Windows.DataTemplate

Selects a template by resource key looking from the specific to the general containers in the application heirachy The resource key to attempted to be found in the following order: Application resources The main window resources The active window resources The container resources

SelectByType ( Type itemType, FrameworkElement container ) : System.Windows.DataTemplate

Selects a data template by type, interface, or hiearchy (Depending on the DiscoveryMethod property

SelectByTypeHierachy ( Type type, FrameworkElement container ) : System.Windows.DataTemplate

selects a DataTemplate by scanning the Type hierachy using a DataTemplateKey

SelectThroughCacheByKey ( object templateKey, DependencyObject container ) : System.Windows.DataTemplate

Selects a data template, through cache, by key

SelectThroughCacheByType ( Type itemType, FrameworkElement container ) : System.Windows.DataTemplate

Selects a data template, through cache, by type, interface, or hiearchy (Depending on the DiscoveryMethod property

Method Details

ComplexGroupDataTemplateSelector() public méthode

public ComplexGroupDataTemplateSelector ( ) : System
Résultat System

SelectTemplate() public méthode

override for DataTemplate SelectTemplate method
public SelectTemplate ( object item, DependencyObject container ) : System.Windows.DataTemplate
item object The item to be templated
container System.Windows.DependencyObject The items container
Résultat System.Windows.DataTemplate