[]
        
(Showing Draft Content)

C1.Blazor.Ribbon.C1ToggleButtonTool

C1ToggleButtonTool Class

Control that represents a toggle button.

Inheritance
C1ToggleButtonTool
Namespace: C1.Blazor.Ribbon
Assembly: C1.Blazor.Ribbon.dll
Syntax
public class C1ToggleButtonTool : C1Tool, IHandleAfterRender, IDependencyObject, IHandleEvent, IDisposable, IComponent
Public Class C1ToggleButtonTool
    Inherits C1Tool
    Implements IHandleAfterRender, IDependencyObject, IHandleEvent, IDisposable, IComponent

Constructors

Name Description
C1ToggleButtonTool()

Initializes a new instance of the C1ToggleButtonTool class.

Fields

Name Description
IsCheckedProperty

Identifies the IsChecked dependency property.

Properties

Name Description
IsChecked

Gets or sets whether the button is checked.

IsCheckedChanged

Gets or sets the callback called when the IsChecked property has changed.

Methods

Name Description
Dispose(bool)
Execute(object)

Called when the tool is executed.

GetContentRenderFragment(C1Style)

Returns a RenderFragment that represents the tool's UI content.

OnAfterRender(bool)
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.