[]
        
(Showing Draft Content)

C1.WPF.Toolbar.C1ToolbarButton

C1ToolbarButton Class

C1ToolbarButton control represents a button on the C1ToobarStrip.

Namespace: C1.WPF.Toolbar
Assembly: C1.WPF.Toolbar.4.6.2.dll
Syntax
[TemplatePart(Name = "MediumText", Type = typeof(TextBlock))]
[TemplatePart(Name = "LargeText", Type = typeof(TextBlock))]
public class C1ToolbarButton : Button, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource

Constructors

Name Description
C1ToolbarButton()

Initializes a new instance of a C1ToolbarButton.

Fields

Name Description
ActualForegroundProperty

The ActualForeground dynamic property.

LabelTitleProperty

Using a DependencyProperty as the backing store for LabelTitle.
This enables animation, styling, binding, etc...

LargeImageSourceProperty

Using a DependencyProperty as the backing store for LargeImageSource. This enables animation, styling, binding, etc...

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

MouseOverForegroundBrushProperty

Mouseover foreground color dependency property

PressedBrushProperty

Identifies the PressedBrush dependency property.

PressedForegroundBrushProperty

Pressed foreground color dependency property

SmallImageSourceProperty

Using a DependencyProperty as the backing store for SmallImageSource.
This enables animation, styling, binding, etc...

Properties

Name Description
ActualForeground

The ActualForeground CLR property - wrapper for ActualForegroundProperty.

LabelTitle

Gets or sets the label title of control.

LargeImageSource

Gets or sets the large image source of the control.

MouseOverBrush

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

MouseOverForegroundBrush

Mouseover foreground color

PressedBrush

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

PressedForegroundBrush

Pressed foreground color

SmallImageSource

Gets or sets the small image source of the control.

Methods

Name Description
MeasureOverride(Size)

Called when measuring a control.

OnApplyTemplate()

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

OnPropertyChanged(DependencyPropertyChangedEventArgs)