[]
        
(Showing Draft Content)

C1.WPF.ColorPicker.C1BrushPicker

C1BrushPicker Class

The brush picker control allows end-users to build solid or gradient brushes by selecting their colors and other properties in an interactive way.

Inheritance
C1BrushPicker
Namespace: C1.WPF.ColorPicker
Assembly: C1.WPF.ColorPicker.dll
Syntax
[StyleTypedProperty(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))]
[StyleTypedProperty(Property = "PopupStyle", StyleTargetType = typeof(C1PopupBorder))]
[TemplatePart(Name = "DropDown", Type = typeof(C1DropDownButton))]
[TemplatePart(Name = "BrushEditor", Type = typeof(C1BrushEditor))]
[TemplatePart(Name = "ValidationDecorator", Type = typeof(C1ValidationDecorator))]
public class C1BrushPicker : C1View
<StyleTypedProperty(Property:="ValidationDecoratorStyle", StyleTargetType:=GetType(C1ValidationDecorator))>
<StyleTypedProperty(Property:="PopupStyle", StyleTargetType:=GetType(C1PopupBorder))>
<TemplatePart(Name:="DropDown", Type:=GetType(C1DropDownButton))>
<TemplatePart(Name:="BrushEditor", Type:=GetType(C1BrushEditor))>
<TemplatePart(Name:="ValidationDecorator", Type:=GetType(C1ValidationDecorator))>
Public Class C1BrushPicker
    Inherits C1View

Constructors

Name Description
C1BrushPicker()

Initializes a new instance of the C1BrushPicker class.

Fields

Name Description
DropDownDirectionProperty

Identifies the DropDownDirection dependency property.

FocusBrushProperty

Identifies the FocusBrush dependency property.

IsDropDownOpenProperty

Identifies the IsDropDownOpen dependency property.

MouseOverBorderBrushProperty

Identifies the MouseOverBorderBrush dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

PopupStyleProperty

Identifies the PopupStyle dependency property.

PressedBrushProperty

Identifies the PressedBrush dependency property.

SelectedBrushProperty

Identifies the SelectedBrush dependency property.

ValidationDecoratorStyleProperty

Identifies the ValidationDecoratorStyle dependency property.

Properties

Name Description
DropDownDirection

Gets or sets the expand direction of the control drop down.

FocusBrush

Gets or sets the Brush used to highlight the focused control.

IsDropDownOpen

Gets or sets a value indicating whether the drop down is opened or closed.

MouseOverBorderBrush

Gets or sets the Brush used to highlight the border of the control when it has the mouse over.

MouseOverBrush

Gets or sets the Brush used to highlight the control when it has the mouse over.

PopupStyle

Gets or sets the Style applied to the popup.

PressedBrush

Gets or sets the Brush used to paint a button when it is pressed.

SelectedBrush

Gets or sets the currently selected color as a Brush.

ValidationDecoratorStyle

Gets or sets the style that is applied to the inner C1.WPF.Input.C1ValidationDecorator.

Methods

Name Description
Dispose(bool)
OnApplyTemplate()
OnGotFocus(RoutedEventArgs)
OnKeyDown(KeyEventArgs)

Events

Name Description
SelectedBrushChanged

Event raised when the SelectedBrush property has changed.