Skip to main content

AppBarToggleButton.GroupName Property

Gets or sets the name of the group of mutually exclusive toggle buttons to which the current button belongs. This is a dependency property.

Namespace: DevExpress.Xpf.WindowsUI

Assembly: DevExpress.Xpf.Controls.v24.1.dll

NuGet Package: DevExpress.Wpf.Controls

Declaration

public string GroupName { get; set; }

Property Value

Type Description
String

A String value specifying the name of the mutually exclusive toggle button group to which the current button belongs.

Remarks

The AppBarToggleButton objects can be combined into groups in which only one button can be in the checked state (see AppBarToggleButton.IsChecked) at one time. If a button in the group is checked, the previously checked button automatically becomes unchecked. You can specify the name of the group to which the current button belongs using the GroupName property. In the code snippet below, three AppBarToggleButton objects are combined into a group of mutually exclusive toggle buttons.

<dxwui:AppBar HorizontalAlignment="Stretch" VerticalAlignment="Top">
    <dxwui:AppBarToggleButton Label="Left" GroupName="Alignment"/>
    <dxwui:AppBarToggleButton Label="Center" GroupName="Alignment"/>
    <dxwui:AppBarToggleButton Label="Right" GroupName="Alignment"/>
</dxwui:AppBar>
See Also