Selects the appropriate data template depending on whether the item is a DateTime or not.

Namespace:  Mindscape.WpfElements
Assembly:  Mindscape.WpfElements (in Mindscape.WpfElements.dll)
Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
public override DataTemplate SelectTemplate(
	Object item,
	DependencyObject container
)
Visual Basic (Declaration)
Public Overrides Function SelectTemplate ( _
	item As Object, _
	container As DependencyObject _
) As DataTemplate

Parameters

item
Type: System..::.Object
The item for which to select a template.
container
Type: System.Windows..::.DependencyObject
The container element.

Return Value

A DataTemplate suitable for displaying the item.

See Also