Skip to content

ColorPickerDialog

JaykeBird edited this page Feb 21, 2023 · 8 revisions

Back to home | Back to Reference | View raw text

ColorPickerDialog class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph SolidShineUi
  SolidShineUi.ColorPickerDialog[[ColorPickerDialog]]
  SolidShineUi.FlatWindow[[FlatWindow]]
  end
  subgraph System.Windows.Markup
System.Windows.Markup.IComponentConnector[[IComponentConnector]]
  end
System.Windows.Markup.IComponentConnector --> SolidShineUi.ColorPickerDialog
SolidShineUi.FlatWindow --> SolidShineUi.ColorPickerDialog
Loading

Members

Properties

Public properties

Type Name Methods
string CancelButtonLabel
Get or set the label to display on the "Invert" button in the Sliders tab; clicking this button inverts the current color. Default is "Invert".
get, set
string CurrentColorLabel
Get or set the label to display next to the current/preset color (as in, the color that the dialog was loaded with). Default is "Current Color:".
get, set
bool DialogResult
Get or set the result of this dialog when closed. Set to true when the user clicks OK.
get, set
string ImageTabTitle
Get or set the title of the From Image tab. Default is "From Image".
get, set
string InvertButtonLabel
Get or set the label to display on the "Invert" button in the Sliders tab; clicking this button inverts the current color. Default is "Invert".
get, set
string OkButtonLabel
Get or set the label to display on the "Invert" button in the Sliders tab; clicking this button inverts the current color. Default is "Invert".
get, set
string PaletteFileTabTitle
Get or set the title of the Palette File tab. Default is "Palette File".
get, set
Color SelectedColor
Get or set the color that is selected in the dialog.
get
string SelectedColorLabel
Get or set the label to display next to the currently selected color. Default is "Selected Color:".
get, set
bool ShowImageTab
Get or set if the From Image tab is visible in the dialog.
get, set
bool ShowPaletteFileTab
Get or set if the Palette File tab is visible in the dialog.
get, set
bool ShowSlidersTab
Get or set if the Sliders tab is visible in the dialog.
get, set
bool ShowSwatchesTab
Get or set if the Swatches tab is visible in the dialog.
get, set
bool ShowTransparencyControls
Get or set if transparency controls should be shown in the dialog. If true, then the user will be able to select and change the transparency (alpha) value of the selected color.
get, set
string SlidersTabTitle
Get or set the title of the Sliders tab. Default is "Sliders".
get, set
bool SwatchesResetTransparency
Get or set if clicking on a swatch in the Swatches tab resets the transparency (alpha) value to 255, or totally opaque. If not, the transparency value remains unchanged.
get, set
string SwatchesTabTitle
Get or set the title of the Swatches tab. Default is "Swatches".
get, set
string TransparencyLabel
Get or set the label to display next to the Transparency slider. Default is "Transparency:".
get, set

Methods

Public methods

Returns Name
void InitializeComponent()
InitializeComponent

Internal methods

Returns Name
Delegate _CreateDelegate(Type delegateType, string handler)

Details

Inheritance

Constructors

ColorPickerDialog [1/3]

public ColorPickerDialog()
Summary

Create a ColorPickerDialog. Please use the constructor with the ColorScheme argument.

ColorPickerDialog [2/3]

public ColorPickerDialog(ColorScheme cs)
Arguments
Type Name Description
ColorScheme cs The ColorScheme to use with this dialog.
Summary

Create a ColorPickerDialog.

ColorPickerDialog [3/3]

public ColorPickerDialog(ColorScheme cs, Color color)
Arguments
Type Name Description
ColorScheme cs The ColorScheme to use with this dialog.
Color color The Color to preset as the selected color (i.e. as an existing or default value).
Summary

Create a ColorPickerDialog.

Methods

InitializeComponent

public virtual void InitializeComponent()
Summary

InitializeComponent

_CreateDelegate

internal Delegate _CreateDelegate(Type delegateType, string handler)
Arguments
Type Name Description
Type delegateType
string handler

Properties

SelectedColor

public Color SelectedColor { get; }
Summary

Get or set the color that is selected in the dialog.

DialogResult

public bool DialogResult { get; set; }
Summary

Get or set the result of this dialog when closed. Set to true when the user clicks OK.

ShowSwatchesTab

public bool ShowSwatchesTab { get; set; }
Summary

Get or set if the Swatches tab is visible in the dialog.

ShowSlidersTab

public bool ShowSlidersTab { get; set; }
Summary

Get or set if the Sliders tab is visible in the dialog.

ShowImageTab

public bool ShowImageTab { get; set; }
Summary

Get or set if the From Image tab is visible in the dialog.

ShowPaletteFileTab

public bool ShowPaletteFileTab { get; set; }
Summary

Get or set if the Palette File tab is visible in the dialog.

SwatchesTabTitle

public string SwatchesTabTitle { get; set; }
Summary

Get or set the title of the Swatches tab. Default is "Swatches".

SlidersTabTitle

public string SlidersTabTitle { get; set; }
Summary

Get or set the title of the Sliders tab. Default is "Sliders".

ImageTabTitle

public string ImageTabTitle { get; set; }
Summary

Get or set the title of the From Image tab. Default is "From Image".

PaletteFileTabTitle

public string PaletteFileTabTitle { get; set; }
Summary

Get or set the title of the Palette File tab. Default is "Palette File".

ShowTransparencyControls

public bool ShowTransparencyControls { get; set; }
Summary

Get or set if transparency controls should be shown in the dialog. If true, then the user will be able to select and change the transparency (alpha) value of the selected color.

SwatchesResetTransparency

public bool SwatchesResetTransparency { get; set; }
Summary

Get or set if clicking on a swatch in the Swatches tab resets the transparency (alpha) value to 255, or totally opaque. If not, the transparency value remains unchanged.

TransparencyLabel

public string TransparencyLabel { get; set; }
Summary

Get or set the label to display next to the Transparency slider. Default is "Transparency:".

SelectedColorLabel

public string SelectedColorLabel { get; set; }
Summary

Get or set the label to display next to the currently selected color. Default is "Selected Color:".

CurrentColorLabel

public string CurrentColorLabel { get; set; }
Summary

Get or set the label to display next to the current/preset color (as in, the color that the dialog was loaded with). Default is "Current Color:".

InvertButtonLabel

public string InvertButtonLabel { get; set; }
Summary

Get or set the label to display on the "Invert" button in the Sliders tab; clicking this button inverts the current color. Default is "Invert".

OkButtonLabel

public string OkButtonLabel { get; set; }
Summary

Get or set the label to display on the "Invert" button in the Sliders tab; clicking this button inverts the current color. Default is "Invert".

CancelButtonLabel

public string CancelButtonLabel { get; set; }
Summary

Get or set the label to display on the "Invert" button in the Sliders tab; clicking this button inverts the current color. Default is "Invert".

Generated with ModularDoc

Clone this wiki locally