Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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