Class ColorPicker
Color Picker supporting RGB, HSL, and HSV color models. Supports choosing colors with sliders and color names from the IColorNameResolver.
public class ColorPicker : View, IDisposable, ISupportInitializeNotification, ISupportInitialize, IValue<Color?>, IValue, IDesignable
- Inheritance
-
ColorPicker
- Implements
- Inherited Members
Constructors
- ColorPicker()
Creates a new instance of ColorPicker. Use Style to change color model. Use Value to change initial Color.
Properties
- SelectedColor
The color selected in the picker. Identical to Value but non-nullable.
- Style
Style settings for the color picker. After making changes ensure you call ApplyStyleChanges().
- Value
Gets or sets the selected color. Implements IValue<TValue>.
Methods
- ApplyStyleChanges()
Rebuild the user interface to reflect the new state of Style.
- Dispose(bool)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
- EnableForDesign()
Causes the View to enable design-time mode. This typically means that the view will load demo data and be configured to allow for design-time manipulation.
- OnDrawingContent(DrawContext?)
Called when the View's content is to be drawn. The default implementation does nothing.
- OnValueChanged(ValueChangedEventArgs<Color?>)
Called after Value has changed.
- OnValueChanging(ValueChangingEventArgs<Color?>)
Called before Value changes. Return true to cancel the change.
Events
- ValueChanged
Raised when Value has changed.
- ValueChanging
Raised when Value is about to change. Set Handled to true to cancel the change.