-
Notifications
You must be signed in to change notification settings - Fork 3
ColorPickerDialog
Back to home | Back to Reference | View raw text
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
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 |
Returns | Name |
---|---|
void |
InitializeComponent ()InitializeComponent |
Returns | Name |
---|---|
Delegate |
_CreateDelegate (Type delegateType, string handler) |
IComponentConnector
-
FlatWindow
public ColorPickerDialog()
Create a ColorPickerDialog. Please use the constructor with the ColorScheme argument.
public ColorPickerDialog(ColorScheme cs)
Type | Name | Description |
---|---|---|
ColorScheme |
cs | The ColorScheme to use with this dialog. |
Create a ColorPickerDialog.
public ColorPickerDialog(ColorScheme cs, Color color)
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). |
Create a ColorPickerDialog.
public virtual void InitializeComponent()
InitializeComponent
internal Delegate _CreateDelegate(Type delegateType, string handler)
Type | Name | Description |
---|---|---|
Type |
delegateType | |
string |
handler |
public Color SelectedColor { get; }
Get or set the color that is selected in the dialog.
public bool DialogResult { get; set; }
Get or set the result of this dialog when closed. Set to true when the user clicks OK.
public bool ShowSwatchesTab { get; set; }
Get or set if the Swatches tab is visible in the dialog.
public bool ShowSlidersTab { get; set; }
Get or set if the Sliders tab is visible in the dialog.
public bool ShowImageTab { get; set; }
Get or set if the From Image tab is visible in the dialog.
public bool ShowPaletteFileTab { get; set; }
Get or set if the Palette File tab is visible in the dialog.
public string SwatchesTabTitle { get; set; }
Get or set the title of the Swatches tab. Default is "Swatches".
public string SlidersTabTitle { get; set; }
Get or set the title of the Sliders tab. Default is "Sliders".
public string ImageTabTitle { get; set; }
Get or set the title of the From Image tab. Default is "From Image".
public string PaletteFileTabTitle { get; set; }
Get or set the title of the Palette File tab. Default is "Palette File".
public bool ShowTransparencyControls { get; set; }
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.
public bool SwatchesResetTransparency { get; set; }
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.
public string TransparencyLabel { get; set; }
Get or set the label to display next to the Transparency slider. Default is "Transparency:".
public string SelectedColorLabel { get; set; }
Get or set the label to display next to the currently selected color. Default is "Selected Color:".
public string CurrentColorLabel { get; set; }
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:".
public string InvertButtonLabel { get; set; }
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".
public string OkButtonLabel { get; set; }
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".
public string CancelButtonLabel { get; set; }
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