C# Class Microsoft.Windows.Controls.ColorCanvas

Inheritance: System.Windows.Controls.Control
Show file Open project: Invenietis/ck-certified Class Usage Examples

Public Properties

Property Type Description
AProperty System.Windows.DependencyProperty
BProperty System.Windows.DependencyProperty
GProperty System.Windows.DependencyProperty
HexadecimalStringProperty System.Windows.DependencyProperty
RProperty System.Windows.DependencyProperty
SelectedColorChangedEvent System.Windows.RoutedEvent
SelectedColorProperty System.Windows.DependencyProperty

Public Methods

Method Description
OnApplyTemplate ( ) : void

Protected Methods

Method Description
OnAChanged ( byte oldValue, byte newValue ) : void
OnBChanged ( byte oldValue, byte newValue ) : void
OnGChanged ( byte oldValue, byte newValue ) : void
OnHexadecimalStringChanged ( string oldValue, string newValue ) : void
OnPreviewKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
OnRChanged ( byte oldValue, byte newValue ) : void
OnSelectedColorChanged ( Color oldValue, Color newValue ) : void

Private Methods

Method Description
CalculateColor ( Point p ) : void
ColorCanvas ( ) : System.Windows
ColorShadingCanvas_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
ColorShadingCanvas_MouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
ColorShadingCanvas_MouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
ColorShadingCanvas_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
OnAChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnBChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnGChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnHexadecimalStringChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnRChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnSelectedColorChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SpectrumSlider_ValueChanged ( object sender, RoutedPropertyChangedEventArgs e ) : void
UpdateColorShadeSelectorPosition ( Color color ) : void
UpdateColorShadeSelectorPositionAndCalculateColor ( Point p, bool calculateColor ) : void
UpdateRGBValues ( Color color ) : void
UpdateSelectedColor ( ) : void
UpdateSelectedColor ( Color color ) : void

Method Details

OnAChanged() protected method

protected OnAChanged ( byte oldValue, byte newValue ) : void
oldValue byte
newValue byte
return void

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnBChanged() protected method

protected OnBChanged ( byte oldValue, byte newValue ) : void
oldValue byte
newValue byte
return void

OnGChanged() protected method

protected OnGChanged ( byte oldValue, byte newValue ) : void
oldValue byte
newValue byte
return void

OnHexadecimalStringChanged() protected method

protected OnHexadecimalStringChanged ( string oldValue, string newValue ) : void
oldValue string
newValue string
return void

OnPreviewKeyDown() protected method

protected OnPreviewKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs
return void

OnRChanged() protected method

protected OnRChanged ( byte oldValue, byte newValue ) : void
oldValue byte
newValue byte
return void

OnSelectedColorChanged() protected method

protected OnSelectedColorChanged ( Color oldValue, Color newValue ) : void
oldValue System.Windows.Media.Color
newValue System.Windows.Media.Color
return void

Property Details

AProperty public static property

public static DependencyProperty,System.Windows AProperty
return System.Windows.DependencyProperty

BProperty public static property

public static DependencyProperty,System.Windows BProperty
return System.Windows.DependencyProperty

GProperty public static property

public static DependencyProperty,System.Windows GProperty
return System.Windows.DependencyProperty

HexadecimalStringProperty public static property

public static DependencyProperty,System.Windows HexadecimalStringProperty
return System.Windows.DependencyProperty

RProperty public static property

public static DependencyProperty,System.Windows RProperty
return System.Windows.DependencyProperty

SelectedColorChangedEvent public static property

public static RoutedEvent,System.Windows SelectedColorChangedEvent
return System.Windows.RoutedEvent

SelectedColorProperty public static property

public static DependencyProperty,System.Windows SelectedColorProperty
return System.Windows.DependencyProperty