BrushEdit Class

Represents a brush editor.

Namespace: DevExpress.Xpf.PropertyGrid

Assembly: DevExpress.Xpf.PropertyGrid.v20.1.dll

Declaration

public class BrushEdit :
    BrushEditBase
Public Class BrushEdit
    Inherits BrushEditBase

Remarks

The BrushEdit control provides numerous options to pick a color and includes the gradient support.

WPF_BrushEdit

TIP

The BrushEdit class inherits its features from the BaseEdit class.

Refer to the BaseEdit class description for information on derived features and API.

The BrushEdit control offers the following features.

  • Multiple brush types

    The BrushEdit control allows end-users to edit the following brush types.

    • SolidColorBrush
    • LinearGradientBrush
    • RadialGradientBrush
  • Multiple color models

    End-users can specify the desired color by entering the precise values. The BrushEdit control supports the following color models.

    • RGB
    • CMYK
    • HLS
    • HSB

    Additionally, an Alpha value can be specified in each of the listed color models.

  • Visual color selection

    End-users can edit a brush visually using the color field and the color slider. The Color SelectorColorEdit Visual Elements Color Selector tool makes it possible to select any color on the screen.

  • Empty brush

    End-users can select the null value from the BrushEdit's None tab.

  • Complementary popup control

    DevExpress WPF Editors library contains a popup variation of the BrushEdit control. To learn more, see PopupBrushEdit.

Create a BrushEdit

<Window ...
 xmlns:dxprg="http://schemas.devexpress.com/winfx/2008/xaml/propertygrid">
 ...
 <dxprg:BrushEdit/>
 ...

Editor Value

The EditValue property contains an editor's current value which is valid. If an end user has entered an invalid value, it is not posted to EditValue until it is corrected.

The EditValueChanged event occurs after the edit value has been validated and changed.

Inheritance

See Also