Edit

ToolbarButton Class

Definition

An Interactive button in the TextToolbar, to perform a formatting task.

public class ToolbarButton : Microsoft.UI.Xaml.Controls.AppBarButton, CommunityToolkit.WinUI.UI.Controls.TextToolbarButtons.IToolbarItem, System.ComponentModel.INotifyPropertyChanged
type ToolbarButton = class
    inherit AppBarButton
    interface IToolbarItem
    interface ICommandBarElement
    interface INotifyPropertyChanged
Public Class ToolbarButton
Inherits AppBarButton
Implements INotifyPropertyChanged, IToolbarItem
Inheritance
Microsoft.UI.Xaml.Controls.AppBarButton
ToolbarButton
Implements
IToolbarItem Microsoft.UI.Xaml.Controls.ICommandBarElement INotifyPropertyChanged

Constructors

Name Description
ToolbarButton()

Initializes a new instance of the ToolbarButton class.

Fields

Name Description
IsToggledProperty

Identifies the IsToggled dependency property.

ShortcutFancyNameProperty

Identifies the ShortcutFancyName dependency property.

ShortcutKeyProperty

Identifies the ShortcutKey dependency property.

ToolTipProperty

Identifies the ToolTip dependency property.

Properties

Name Description
Activation

Gets or sets the designated formatting task.

IsToggled

Gets or sets a value indicating whether the ToolbarButton is Toggled

Position

Gets or sets the position in the Toolbar to place this Button.

ShiftActivation

Gets or sets the designated formatting task when pressing shift at the same time.

ShortcutFancyName

Gets or sets the name that represents the ShortcutKey as the Keyboard Character

ShortcutKey

Gets or sets a key to activate this button from the keyboard.

ToolTip

Gets or sets the Tooltip message, explaining what the button does.

Methods

Name Description
OnApplyTemplate() Microsoft.UI.Xaml.Controls.AppBarButton.OnApplyTemplate

Events

Name Description
PropertyChanged

Occurs when a property value changes.

Applies to