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.
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)
When overridden in a derived class, returns a DataTemplate based on custom logic.
Declaration
public override DataTemplate SelectTemplate(object item, DependencyObject container)
Parameters
System.Object
item
The data object for which to select the template. |
System.Windows.DependencyObject
container
The data-bound object. |
Returns
System.Windows.DataTemplate
|