Class ConditionalDataTemplateSelector
Provides a way to choose a System.Windows.DataTemplate for a data-bound element by testing the data object against a set of predefined rules.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.GridView.dll
Syntax
public class ConditionalDataTemplateSelector : DataTemplateSelector
Constructors
ConditionalDataTemplateSelector()
Initializes a new instance of the ConditionalDataTemplateSelector class.
Declaration
public ConditionalDataTemplateSelector()
Properties
Rules
Gets the rules which will determine what System.Windows.DataTemplate to select for a given data object.
Declaration
public RuleCollection<DataTemplateRule> Rules { get; }
Property Value
RuleCollection<DataTemplateRule>
The rules which will determine what System.Windows.DataTemplate to select for a given data object. |
Methods
SelectTemplate(Object, DependencyObject)
Declaration
public override DataTemplate SelectTemplate(object item, DependencyObject container)
Parameters
System.Object
item
|
System.Windows.DependencyObject
container
|
Returns
System.Windows.DataTemplate
|