Telerik UI for Windows Phone by Progress

Selects a specific template based on some data and the container of the data.

Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Input (in Telerik.Windows.Controls.Input.dll) Version: 2013.1.422.2040 (2013.1.0422.2040)

Syntax

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

Parameters

item
Type: System..::..Object
The data based on which to select a template.
container
Type: System.Windows..::..DependencyObject
The container of the data, it can also be used for the template selection logic.

Return Value

Returns a DataTemplate if the appointments associated with the item argument are more than 0 and null otherwise.

See Also