Method SelectTemplate
| Edit this page View SourceSelectTemplate(object, DependencyObject)
When overridden in a derived class, returns a DataTemplate based on custom logic.
Declaration
public override DataTemplate? SelectTemplate(object item, DependencyObject container)
Parameters
| Type | Name | Description |
|---|---|---|
| object | item | The data object for which to select the template. |
| DependencyObject | container | The data-bound object. |
Returns
| Type | Description |
|---|---|
| DataTemplate | Returns a DataTemplate or null. The default value is null. |