Class ColorPickerDialog
- Namespace
- Myra.Graphics2D.UI.ColorPicker
- Assembly
- Myra.dll
A dialog window for selecting colors with a color picker panel.
public class ColorPickerDialog : Dialog, IItemWithId, INotifyAttachedPropertyChanged, IContent
- Inheritance
-
ColorPickerDialog
- Implements
- Inherited Members
Constructors
ColorPickerDialog()
Initializes a new instance of the ColorPickerDialog class.
public ColorPickerDialog()
ColorPickerDialog(Stylesheet, string)
Initializes a new instance of the ColorPickerDialog class with the specified stylesheet and style.
public ColorPickerDialog(Stylesheet stylesheet, string styleName = "")
Parameters
stylesheetStylesheetThe stylesheet to use for applying the style.
styleNamestringThe name of the style to apply. Defaults to the default stylesheet style.
Properties
Color
Gets or sets the selected color.
public Color Color { get; set; }
Property Value
- Color
ColorPickerPanel
Gets the color picker panel contained in this dialog.
public ColorPickerPanel ColorPickerPanel { get; }
Property Value
Methods
ApplyStyle(WidgetStyle)
Applies the specified widget style to this color picker dialog.
protected override void ApplyStyle(WidgetStyle style)
Parameters
styleWidgetStyleThe widget style to apply.
Close()
Closes the color picker dialog and saves user colors.
public override void Close()