[]
Button that shows a color, This control is used in the C1BasicColorPickerPart.
[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
Name | Description |
---|---|
C1ColorButton() | Initializes a new instance of a C1ColorButton. |
Name | Description |
---|---|
ColorProperty | Identifies the Color dependency property. |
IsSelectedProperty | Identifies the IsSelected dependency property. |
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. |
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. |
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. |