Class ConditionalStyleSelector
Provides a way to choose a System.Windows.Style 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 ConditionalStyleSelector : StyleSelector
Constructors
ConditionalStyleSelector()
Initializes a new instance of the ConditionalStyleSelector class.
Declaration
public ConditionalStyleSelector()
Properties
Rules
Gets the rules which will determine what System.Windows.Style to select for a given data object.
Declaration
public RuleCollection<StyleRule> Rules { get; }
Property Value
RuleCollection<StyleRule>
The rules which will determine what System.Windows.Style to select for a given data object. |
Methods
SelectStyle(Object, DependencyObject)
When overridden this method is used for determining the Style of items.
Declaration
public override Style SelectStyle(object item, DependencyObject container)
Parameters
System.Object
item
The item for whose container is wanted. |
System.Windows.DependencyObject
container
The container for which a Style is selected. |
Returns
System.Windows.Style
The Style for the given container. |