[]
        
(Showing Draft Content)

C1.WPF.Ribbon.C1ButtonTool

C1ButtonTool Class

Control tool that represents a button that performs an action.

Inheritance
C1ButtonTool
Implements
Namespace: C1.WPF.Ribbon
Assembly: C1.WPF.Ribbon.dll
Syntax
[TemplatePart(Name = "Button", Type = typeof(Button))]
public class C1ButtonTool : C1Tool, ICommandSource

Constructors

Name Description
C1ButtonTool()

Initializes a new instance of the C1ButtonTool class.

Fields

Name Description
CommandParameterProperty

Identifies the CommandParameter dependency property.

CommandProperty

Identifies the Command dependency property.

CommandTargetProperty

Identifies the CommandTarget dependency property.

Properties

Name Description
Command

Gets or sets the command that can be bound to the tool.

CommandParameter

Gets or sets command parameter.

CommandTarget

Gets or sets command target.

Methods

Name Description
Dispose(bool)
Execute(object)

Called when the tool is executed.

OnApplyTemplate()
OnClick()

Events

Name Description
Click

Occurs when the tool is clicked, either through the menu or the control itself.