C# Class ThemeEditor.WPF.Templating.ColorPickerSharedData

Inheritance: System.Windows.DependencyObject, INotifyPropertyChanged
Exibir arquivo Open project: usagirei/3DS-Theme-Editor

Public Methods

Method Description
CanParseColor ( string colorString ) : bool
ColorFromHsl ( double hue, double sat, double bright, double alpha = 1.0 ) : Color
ColorFromHsv ( double hue, double sat, double value, double alpha = 1.0 ) : Color
ColorToHsl ( Color col, double &h, double &s, double &l ) : void
ColorToHsv ( Color col, double &h, double &s, double &v ) : void
TryParseColor ( string colorString, Color &color ) : bool

Protected Methods

Method Description
OnPropertyChanged ( string propertyName ) : void

Private Methods

Method Description
ColorPickerCopy_Execute ( ColorPicker colorPicker ) : void
ColorPickerPaste_CanExecute ( ColorPicker obj ) : bool
ColorPickerPaste_Execute ( ColorPicker colorPicker ) : void
ColorPickerSharedData ( ) : System

Method Details

CanParseColor() public static method

public static CanParseColor ( string colorString ) : bool
colorString string
return bool

ColorFromHsl() public static method

public static ColorFromHsl ( double hue, double sat, double bright, double alpha = 1.0 ) : Color
hue double
sat double
bright double
alpha double
return Color

ColorFromHsv() public static method

public static ColorFromHsv ( double hue, double sat, double value, double alpha = 1.0 ) : Color
hue double
sat double
value double
alpha double
return Color

ColorToHsl() public static method

public static ColorToHsl ( Color col, double &h, double &s, double &l ) : void
col Color
h double
s double
l double
return void

ColorToHsv() public static method

public static ColorToHsv ( Color col, double &h, double &s, double &v ) : void
col Color
h double
s double
v double
return void

OnPropertyChanged() protected method

protected OnPropertyChanged ( string propertyName ) : void
propertyName string
return void

TryParseColor() public static method

public static TryParseColor ( string colorString, Color &color ) : bool
colorString string
color Color
return bool