ColorPropertyEditor Class
Represents a PropertyEditor for editing a Color
value with a ColorEditBox.
public class ColorPropertyEditor : PartEditBoxPropertyEditorBase
- Inheritance:
- object ObservableObjectBase PropertyEditor PropertyEditorBase PartEditBoxPropertyEditorBase object
- Derived:
- NullableColorPropertyEditor
Constructors
ColorPropertyEditor()
Initializes an instance of the ColorPropertyEditor class.
public ColorPropertyEditor()
ColorPropertyEditor(Type)
Initializes an instance of the ColorPropertyEditor class.
protected ColorPropertyEditor(Type propertyType)
Parameter | Type | Description |
---|---|---|
propertyType | Type | The type of the property. |
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
0
.
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 color value is enabled.
public bool IsAlphaEnabled { get; set; }
Property Value
- bool:
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.
PredefinedValueTemplateKey
Gets 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:
The resource key that references a pre-defined DataTemplate within internal resources to use for editing the property value.
Inherited Members
- PartEditBoxPropertyEditorBase.BorderThickness
- PartEditBoxPropertyEditorBase.CommitTriggers
- PartEditBoxPropertyEditorBase.HasPopup
- PartEditBoxPropertyEditorBase.IsArrowKeyPartNavigationEnabled
- PartEditBoxPropertyEditorBase.IsEditable
- PartEditBoxPropertyEditorBase.IsNullAllowed
- PartEditBoxPropertyEditorBase.IsUndoEnabled
- PartEditBoxPropertyEditorBase.PlaceholderText
- PartEditBoxPropertyEditorBase.SpinnerVisibility
- PartEditBoxPropertyEditorBase.SpinWrapping
- PartEditBoxPropertyEditorBase.TextAlignment
- PropertyEditorBase.CreateValueTemplate()
- PropertyEditorBase.ValueTemplate
- PropertyEditor.GetIsReadOnly(IPropertyModel)
- PropertyEditor.NameTemplate
- PropertyEditor.NameTemplateKey
- PropertyEditor.NameTemplateSelector
- PropertyEditor.ObjectType
- PropertyEditor.PropertyName
- PropertyEditor.PropertyType
- PropertyEditor.ValueTemplateKey
- PropertyEditor.ValueTemplateKind
- PropertyEditor.ValueTemplateSelector
- ObservableObjectBase.NotifyPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()