PropertyGridItemStyleSelector Class
Chooses a Style based on the data object and the data-bound element.
public class PropertyGridItemStyleSelector : StyleSelector
- Inheritance:
- object StyleSelector object
Constructors
PropertyGridItemStyleSelector()
Initializes an instance of the class.
public PropertyGridItemStyleSelector()
Properties
CategoryEditorStyle
Gets or sets the Style to use for category editors.
public Style CategoryEditorStyle { get; set; }
Property Value
CategoryStyle
Gets or sets the Style to use for categories.
PropertyStyle
Gets or sets the Style to use for properties.
Methods
SelectStyle(object, DependencyObject)
Returns a Style based on custom logic.
public override Style SelectStyle(object item, DependencyObject container)
Parameter | Type | Description |
---|---|---|
item | object | The data object. |
container | DependencyObject | The data-bound element. |