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 DataGridBrushColumn class.
public DataGridBrushColumn()
Properties
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 theValue
; otherwise,false
. The default value istrue
.
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 theValue
; otherwise,false
. The default value istrue
.
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 is enabled; otherwise,false
. The default value istrue
.
Remarks
When disabled, no transparency is supported.
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 istrue
.
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()
Gets the type of the associated PartEditBoxBase
-derived control.
protected override Type GetEditBoxType()
Returns
- Type:
The type of the associated
PartEditBoxBase
-derived control.
Fields
HasSwatchProperty
Identifies the HasSwatch dependency property. This field is read-only.
public static readonly DependencyProperty HasSwatchProperty
HasTextProperty
Identifies the HasText dependency property. This field is read-only.
public static readonly DependencyProperty HasTextProperty
IsAlphaEnabledProperty
Identifies the IsAlphaEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsAlphaEnabledProperty
IsGradientAllowedProperty
Identifies the IsGradientAllowed dependency property. This field is read-only.
public static readonly DependencyProperty IsGradientAllowedProperty
Inherited Members
- DataGridPartEditBoxColumnBase<Brush>.CommitTriggersProperty
- DataGridPartEditBoxColumnBase<Brush>.HasPopupProperty
- DataGridPartEditBoxColumnBase<Brush>.IsArrowKeyPartNavigationEnabledProperty
- DataGridPartEditBoxColumnBase<Brush>.IsEditableProperty
- DataGridPartEditBoxColumnBase<Brush>.IsNullAllowedProperty
- DataGridPartEditBoxColumnBase<Brush>.IsUndoEnabledProperty
- DataGridPartEditBoxColumnBase<Brush>.PlaceholderTextProperty
- DataGridPartEditBoxColumnBase<Brush>.SpinnerVisibilityProperty
- DataGridPartEditBoxColumnBase<Brush>.SpinWrappingProperty
- DataGridPartEditBoxColumnBase<Brush>.TextAlignmentProperty
- DataGridPartEditBoxColumnBase<Brush>.GenerateEditBox(bool, DataGridCell)
- DataGridPartEditBoxColumnBase<Brush>.GenerateEditingElement(DataGridCell, object)
- DataGridPartEditBoxColumnBase<Brush>.GenerateElement(DataGridCell, object)
- DataGridPartEditBoxColumnBase<Brush>.PrepareCellForEdit(FrameworkElement, RoutedEventArgs)
- DataGridPartEditBoxColumnBase<Brush>.DefaultEditingElementStyle
- DataGridPartEditBoxColumnBase<Brush>.DefaultElementStyle
- DataGridPartEditBoxColumnBase<Brush>.CommitTriggers
- DataGridPartEditBoxColumnBase<Brush>.HasPopup
- DataGridPartEditBoxColumnBase<Brush>.IsArrowKeyPartNavigationEnabled
- DataGridPartEditBoxColumnBase<Brush>.IsEditable
- DataGridPartEditBoxColumnBase<Brush>.IsNullAllowed
- DataGridPartEditBoxColumnBase<Brush>.IsUndoEnabled
- DataGridPartEditBoxColumnBase<Brush>.PlaceholderText
- DataGridPartEditBoxColumnBase<Brush>.SpinnerVisibility
- DataGridPartEditBoxColumnBase<Brush>.SpinWrapping
- DataGridPartEditBoxColumnBase<Brush>.TextAlignment
- DataGridBoundColumnBase.ApplyBinding(FrameworkElement, DependencyProperty)
- DataGridBoundColumnBase.ApplyValue(DependencyProperty, FrameworkElement, DependencyProperty)
- DataGridBoundColumnBase.RefreshCellContent(FrameworkElement, string)