In This Article

DataGridBrushColumn Class

Represents a data-bound column for use in a DataGrid that utilizes the BrushEditBox control.

public class DataGridBrushColumn : DataGridPartEditBoxColumnBase<Brush>
Inheritance:
object DataGridColumn DataGridBoundColumn DataGridBoundColumnBase DataGridPartEditBoxColumnBase<Brush> object

Constructors

DataGridBrushColumn()

Initializes an instance of the class.

public DataGridBrushColumn()

Properties

CanSwatchStretch

Indicates 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

Indicates 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

Indicates 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

Indicates 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 is enabled; otherwise, false. The default value is true.

Remarks

When disabled, no transparency is supported.

IsGradientAllowed

Indicates 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.

Methods

ApplyStandardValues(FrameworkElement)

Applies standard values to the specified target element.

protected override void ApplyStandardValues(FrameworkElement targetElement)
Parameter Type Description
targetElement FrameworkElement

The target element.

GetEditBoxType()

The type of the associated PartEditBoxBase-derived control.

protected override Type GetEditBoxType()

Returns

Type

Fields

CanSwatchStretchProperty

Defines the CanSwatchStretch property.

public static readonly DependencyProperty CanSwatchStretchProperty

HasSwatchProperty

Defines the HasSwatch property.

public static readonly DependencyProperty HasSwatchProperty

HasTextProperty

Defines the HasText property.

public static readonly DependencyProperty HasTextProperty

IsAlphaEnabledProperty

Defines the IsAlphaEnabled property.

public static readonly DependencyProperty IsAlphaEnabledProperty

IsGradientAllowedProperty

Defines the IsGradientAllowed property.

public static readonly DependencyProperty IsGradientAllowedProperty

Inherited Members

Extension Methods