In This Article

PropertyGridItemStyleSelector Class

Chooses a System.Windows.Style based on the data object and the data-bound element.

public class PropertyGridItemStyleSelector : StyleSelector
Inheritance:
System.Object System.Windows.Controls.StyleSelector Object

Constructors

PropertyGridItemStyleSelector()

public PropertyGridItemStyleSelector()

Properties

CategoryEditorStyle

Gets or sets the System.Windows.Style to use for category editors.

public Style CategoryEditorStyle { get; set; }

Property Value

System.Windows.Style:

The System.Windows.Style to use for category editors.

CategoryStyle

Gets or sets the System.Windows.Style to use for categories.

public Style CategoryStyle { get; set; }

Property Value

System.Windows.Style:

The System.Windows.Style to use for categories.

PropertyStyle

Gets or sets the System.Windows.Style to use for properties.

public Style PropertyStyle { get; set; }

Property Value

System.Windows.Style:

The System.Windows.Style to use for properties.

Methods

SelectStyle(Object, DependencyObject)

Returns a System.Windows.Style based on custom logic.

public override Style SelectStyle(object item, DependencyObject container)
Parameter Type Description
item System.Object

The data object.

container System.Windows.DependencyObject

The data-bound element.

Returns

System.Windows.Style:

The System.Windows.Style to use.

Inherited Members

  • System.Object.ToString()
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()