When overridden in a derived class, returns a DataTemplate based on custom logic.
Namespace:
C1.SilverlightAssembly: C1.Silverlight (in C1.Silverlight.dll)
Syntax
C# |
---|
public virtual DataTemplate SelectTemplate( Object item, DependencyObject container ) |
Visual Basic |
---|
Public Overridable Function SelectTemplate ( _ item As Object, _ container As DependencyObject _ ) As DataTemplate |
Parameters
- item
- Type: System..::..Object
The data object for which to select the template.
- container
- Type: System.Windows..::..DependencyObject
The data-bound object.