Class BorderEyeDrop
Represent a control which serves as EyeDropper in ColorPicker
Inheritance
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.Wpf.dll
Syntax
public class BorderEyeDrop : Border
Constructors
BorderEyeDrop()
Declaration
public BorderEyeDrop()
Fields
BeginColorPickingEvent
Routed event that is raised when the color-picking is started.
Declaration
public static readonly RoutedEvent BeginColorPickingEvent
Field Value
Type |
---|
System.Windows.RoutedEvent |
CancelColorPickingEvent
Routed event that is raised when the color-picking is canceled.
Declaration
public static readonly RoutedEvent CancelColorPickingEvent
Field Value
Type |
---|
System.Windows.RoutedEvent |
ColorProperty
Specifies color, that is currently under the mouse cursor. This is a dependency property.
Declaration
public static readonly DependencyProperty ColorProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | Type: Color |
EndColorPickingEvent
Routed event that is raised when the color-picking is successfully ended.
Declaration
public static readonly RoutedEvent EndColorPickingEvent
Field Value
Type |
---|
System.Windows.RoutedEvent |
Properties
Color
Gets or sets the value of the Color, that is currently under the mouse cursor. This is a dependency property.
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Color | Type: Color |
Methods
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The System.Windows.RoutedEventArgs that contains the event data. |
OnMouseDown(MouseButtonEventArgs)
Processes pressings on the mouse buttons on the control, puts control into the color-picking mode.
Declaration
protected override void OnMouseDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | Data for mouse button related event. |
OnMouseUp(MouseButtonEventArgs)
Puts control out of the color-picking mode.
Declaration
protected override void OnMouseUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | Data for mouse button related event. |
OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)
Raises the PreviewMouseLeftButtonDown event.
Declaration
protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The MouseButtonEventArgs that contains the event data. |