[]
        
(Showing Draft Content)

C1.WPF.Extended.C1ColorButton

C1ColorButton Class

Button that shows a color, This control is used in the C1BasicColorPickerPart.

Namespace: C1.WPF.Extended
Assembly: C1.WPF.Extended.4.6.2.dll
Syntax
[TemplateVisualState(Name = "Selected", GroupName = "CommonStates")]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
public class C1ColorButton : ContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild

Constructors

Name Description
C1ColorButton()

Initializes a new instance of a C1ColorButton.

Fields

Name Description
ColorProperty

Identifies the Color dependency property.

IsSelectedProperty

Identifies the IsSelected dependency property.

Properties

Name Description
Color

Gets or sets the color shown in this button.

IsSelected

Gets or sets whether the color that represent the button is the selected or not.

Methods

Name Description
ChangeVisualStateCommon(bool)

Updates the current visual state of the Common visual state group to match the object's properties.

OnApplyTemplate()

Builds the visual tree for the C1ColorButton control when a new template is applied.

OnPropertyChanged(DependencyPropertyChangedEventArgs)

Invoked whenever the effective value of any dependency property has been updated.

Events

Name Description
Click

Raises the click event.

IsMouseOverChanged

Event raised when the IsMouseOver property has changed.

IsSelectedChanged

Event raised when the IsSelected property has changed.