C# Class ColorPicker.HsvControl

Inheritance: System.Windows.Controls.Control
Datei anzeigen Open project: MadoxLabs/NoiseTool Class Usage Examples

Public Properties

Property Type Description
HueProperty System.Windows.DependencyProperty
SaturationProperty System.Windows.DependencyProperty
SelectedColorChangedEvent System.Windows.RoutedEvent
SelectedColorProperty System.Windows.DependencyProperty
ValueProperty System.Windows.DependencyProperty

Public Methods

Method Description
OnApplyTemplate ( ) : void

Protected Methods

Method Description
OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void

Private Methods

Method Description
HsvControl ( ) : System
LimitValue ( double value, double max ) : double
OnHueChanged ( DependencyObject relatedObject, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnSaturationChanged ( DependencyObject relatedObject, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnThumbDragDelta ( System.Windows.Controls.Primitives.DragDeltaEventArgs e ) : void
OnThumbDragDelta ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs e ) : void
OnValueChanged ( DependencyObject relatedObject, System.Windows.DependencyPropertyChangedEventArgs e ) : void
UpdatePositionAndSaturationAndValue ( double positionX, double positionY ) : void
UpdateSelectedColor ( ) : void
UpdateThumbPosition ( ) : void

Method Details

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnMouseLeftButtonDown() protected method

protected OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

OnRenderSizeChanged() protected method

protected OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void
sizeInfo System.Windows.SizeChangedInfo
return void

Property Details

HueProperty public_oe static_oe property

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

SaturationProperty public_oe static_oe property

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

SelectedColorChangedEvent public_oe static_oe property

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

SelectedColorProperty public_oe static_oe property

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

ValueProperty public_oe static_oe property

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