In This Article

BrushPropertyEditor Class

Represents a PropertyEditor for editing a Brush value with a BrushEditBox.

public class BrushPropertyEditor : PartEditBoxPropertyEditorBase
Inheritance:
object ObservableObjectBase PropertyEditor PropertyEditorBase PartEditBoxPropertyEditorBase object

Constructors

BrushPropertyEditor()

Initializes an instance of the class.

public BrushPropertyEditor()

BrushPropertyEditor(Type)

Initializes an instance of the class.

protected BrushPropertyEditor(Type propertyType)
Parameter Type Description
propertyType Type

The type of the property.

Properties

CanSwatchStretch

Gets or sets whether the swatch can stretch when HasText is false.

public bool CanSwatchStretch { get; set; }

Property Value

bool:

true if the swatch can stretch when HasText is false; otherwise, false. The default value is true.

HasSwatch

Gets or sets whether the edit box should display a swatch that previews the Value.

public bool HasSwatch { get; set; }

Property Value

bool:

true if the edit box should display a swatch that previews the Value; otherwise, false. The default value is true.

HasText

Gets or sets whether the edit box should display a text representation of the Value.

public bool HasText { get; set; }

Property Value

bool:

true if the edit box should display a text representation of the Value; otherwise, false. The default value is true.

IsAlphaEnabled

Gets or sets whether the alpha channel (transparency) of the brush value colors are enabled.

public bool IsAlphaEnabled { get; set; }

Property Value

bool:

true if the alpha channel (transparency) of the brush value colors are enabled; otherwise, false. The default value is true.

Remarks

When disabled, no transparency is supported.

IsArrowKeyPartNavigationEnabled

Indicates whether the left/right arrow keys can be used to move between and select editable parts.

public bool IsArrowKeyPartNavigationEnabled { get; set; }

Property Value

bool:

true if the left/right arrow keys can be used to move between and select editable parts; otherwise false. The default value is false.

IsGradientAllowed

Gets or sets whether gradient brush values can be entered.

public bool IsGradientAllowed { get; set; }

Property Value

bool:

true if gradient brush values can be entered; otherwise, false. The default value is true.

IsNullAllowed

Indicates whether null values are allowed to be entered by the user.

public bool IsNullAllowed { get; set; }

Property Value

bool:

true if null values are allowed to be entered by the user; otherwise false. The default value is true.

PredefinedValueTemplateKey

The resource key that references a pre-defined DataTemplate within internal resources to use for editing the property value.

protected override object PredefinedValueTemplateKey { get; }

Property Value

object

Inherited Members

Extension Methods