[]
        
(Showing Draft Content)

C1.WPF.Ribbon.C1ToggleButtonTool

C1ToggleButtonTool Class

Control that represents a toggle button.

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

Constructors

Name Description
C1ToggleButtonTool()

Initializes a new instance of the C1ToggleButtonTool class.

Fields

Name Description
CommandParameterProperty

Identifies the CommandParameter dependency property.

CommandProperty

Identifies the Command dependency property.

CommandTargetProperty

Identifies the CommandTarget dependency property.

IsCheckedProperty

Identifies the IsChecked 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.

IsChecked

Gets or sets whether the button is checked.

Methods

Name Description
Dispose(bool)
Execute(object)

Called when the tool is executed.

OnApplyTemplate()
OnClick()

Events

Name Description
Checked

Occurs when a System.Windows.Controls.Primitives.ToggleButton is checked.

Click

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

Unchecked

Occurs when a System.Windows.Controls.Primitives.ToggleButton is unchecked.