Click or drag to resize

RoleBasedDataTemplateSelectorSelectTemplate Method

When overridden in a derived class, returns a DataTemplate based on custom logic.

Namespace: TomsToolbox.Wpf.Composition
Assembly: TomsToolbox.Wpf.Composition (in TomsToolbox.Wpf.Composition.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public override DataTemplate? SelectTemplate(
	Object? item,
	DependencyObject? container
)

Parameters

item  Object
The data object for which to select the template.
container  DependencyObject
The data-bound object.

Return Value

DataTemplate
Returns a DataTemplate or null. The default value is null.
See Also