DataGridColorColumn Class
Represents a data-bound column for use in a DataGrid
that utilizes the ColorEditBox control.
public class DataGridColorColumn : DataGridPartEditBoxColumnBase<Color?>
- Inheritance:
- Object DispatcherObject DependencyObject DataGridColumn DataGridBoundColumn DataGridBoundColumnBase DataGridPartEditBoxColumnBase<Nullable<Color>> Object
Constructors
DataGridColorColumn()
Initializes an instance of the DataGridColorColumn class.
public DataGridColorColumn()
Properties
DefaultValue
Gets or sets the value to set when incrementing/decrementing from a null value.
public Color DefaultValue { get; set; }
Property Value
- Color:
The value to set when incrementing/decrementing from a null value. The default value is
Red
.
HasSwatch
Gets or sets whether the edit box should display a swatch that previews the Value
.
public bool HasSwatch { get; set; }
Property Value
- Boolean:
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
- Boolean:
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 color value is enabled.
public bool IsAlphaEnabled { get; set; }
Property Value
- Boolean:
true
if the alpha channel (transparency) of the color value is enabled; otherwise,false
. The default value istrue
.
Remarks
When disabled, no transparency is supported.
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
DefaultValueProperty
Identifies the DefaultValue dependency property. This field is read-only.
public static readonly DependencyProperty DefaultValueProperty
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
Inherited Members
- DataGridPartEditBoxColumnBase<Nullable<Color>>.CommitTriggersProperty
- DataGridPartEditBoxColumnBase<Nullable<Color>>.HasPopupProperty
- DataGridPartEditBoxColumnBase<Nullable<Color>>.IsArrowKeyPartNavigationEnabledProperty
- DataGridPartEditBoxColumnBase<Nullable<Color>>.IsEditableProperty
- DataGridPartEditBoxColumnBase<Nullable<Color>>.IsNullAllowedProperty
- DataGridPartEditBoxColumnBase<Nullable<Color>>.IsUndoEnabledProperty
- DataGridPartEditBoxColumnBase<Nullable<Color>>.PlaceholderTextProperty
- DataGridPartEditBoxColumnBase<Nullable<Color>>.SpinnerVisibilityProperty
- DataGridPartEditBoxColumnBase<Nullable<Color>>.SpinWrappingProperty
- DataGridPartEditBoxColumnBase<Nullable<Color>>.TextAlignmentProperty
- DataGridPartEditBoxColumnBase<Nullable<Color>>.GenerateEditBox(Boolean, DataGridCell)
- DataGridPartEditBoxColumnBase<Nullable<Color>>.GenerateEditingElement(DataGridCell, Object)
- DataGridPartEditBoxColumnBase<Nullable<Color>>.GenerateElement(DataGridCell, Object)
- DataGridPartEditBoxColumnBase<Nullable<Color>>.PrepareCellForEdit(FrameworkElement, RoutedEventArgs)
- DataGridPartEditBoxColumnBase<Nullable<Color>>.DefaultEditingElementStyle
- DataGridPartEditBoxColumnBase<Nullable<Color>>.DefaultElementStyle
- DataGridPartEditBoxColumnBase<Nullable<Color>>.CommitTriggers
- DataGridPartEditBoxColumnBase<Nullable<Color>>.HasPopup
- DataGridPartEditBoxColumnBase<Nullable<Color>>.IsArrowKeyPartNavigationEnabled
- DataGridPartEditBoxColumnBase<Nullable<Color>>.IsEditable
- DataGridPartEditBoxColumnBase<Nullable<Color>>.IsNullAllowed
- DataGridPartEditBoxColumnBase<Nullable<Color>>.IsUndoEnabled
- DataGridPartEditBoxColumnBase<Nullable<Color>>.PlaceholderText
- DataGridPartEditBoxColumnBase<Nullable<Color>>.SpinnerVisibility
- DataGridPartEditBoxColumnBase<Nullable<Color>>.SpinWrapping
- DataGridPartEditBoxColumnBase<Nullable<Color>>.TextAlignment
- DataGridBoundColumnBase.ApplyBinding(FrameworkElement, DependencyProperty)
- DataGridBoundColumnBase.ApplyValue(DependencyProperty, FrameworkElement, DependencyProperty)
- DataGridBoundColumnBase.RefreshCellContent(FrameworkElement, String)
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()