Class ExtendedContentPresenter
This content presenter also looks up DataTemplates defined for the interfaces of an item.
Inheritance
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class ExtendedContentPresenter : ContentPresenter, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
Remarks
If the base implementation of ChooseTemplate() does not find any template, this implementation will try to find a template for one of the interfaces the Content implements.
The first DataTemplate for an implemented interface will be chosen. The search will first search for derived interfaces. If there are two DataTemplates for interfaces not deriving from each other the selection of the respective DataTemplate is not deterministic and any one can be chosen.
Constructors
View SourceExtendedContentPresenter()
Initializes a new instance of the ExtendedContentPresenter class.
Declaration
public ExtendedContentPresenter()
Methods
View SourceChooseTemplate()
Returns the template to use.
Declaration
protected override DataTemplate ChooseTemplate()
Returns
| Type | Description |
|---|---|
| DataTemplate | The DataTemplate to use. |
Overrides
Remarks
If the base implementation of ChooseTemplate() does not find any template, this implementation will try to find a template for one of the interfaces the Content implements.
The first DataTemplate for an implemented interface will be chosen. The search will first search for derived interfaces. If there are two DataTemplates for interfaces not deriving from each other the selection of the respective DataTemplate is not deterministic and any one can be chosen.