Loading...
Loading...
Implement Syncfusion WPF GroupBar (Navigation Pane) for Outlook-style expandable category navigation. Use this when creating a navigation pane, GroupBar, sidebar with collapsible sections, or stack-mode navigation in WPF. Covers item hierarchy, visual modes, data binding, drag-and-drop, orientation, behavior, appearance, and themes.
npx skill4agent add syncfusion/wpf-ui-components-skills syncfusion-wpf-navigation-paneGroupBarSyncfusion.Tools.WPFSyncfusion.Shared.WPFSyncfusion.Windows.Tools.Controlsxmlns:syncfusion="http://schemas.syncfusion.com/wpf"GroupBar ← Root navigation container
└── GroupBarItem ← Category tab/header (e.g., "Mailbox", "Contacts")
├── GroupView ← List container for link-style items
│ └── GroupViewItem ← Clickable item with text and icon
└── Panel / any UIElement ← Or use any WPF panel as contentGroupBarGroupBarItemGroupViewGroupViewItemxmlns:syncfusion="http://schemas.syncfusion.com/wpf"
<syncfusion:GroupBar Height="300" Width="230" VisualMode="StackMode" Name="groupBar">
<syncfusion:GroupBarItem Header="Mailbox" HeaderImageSource="Images/mail.png">
<syncfusion:GroupView>
<syncfusion:GroupViewItem Text="Inbox" ImageSource="Images/inbox.png"/>
<syncfusion:GroupViewItem Text="Sent Items" ImageSource="Images/sent.png"/>
<syncfusion:GroupViewItem Text="Deleted" ImageSource="Images/trash.png"/>
</syncfusion:GroupView>
</syncfusion:GroupBarItem>
<syncfusion:GroupBarItem Header="Contacts">
<syncfusion:GroupView>
<syncfusion:GroupViewItem Text="All Contacts"/>
<syncfusion:GroupViewItem Text="Favorites"/>
</syncfusion:GroupView>
</syncfusion:GroupBarItem>
</syncfusion:GroupBar>using Syncfusion.Windows.Tools.Controls;
GroupBar groupBar = new GroupBar();
groupBar.VisualMode = VisualMode.StackMode;
GroupBarItem item = new GroupBarItem { Header = "Mailbox" };
GroupView view = new GroupView();
view.Items.Add(new GroupViewItem { Text = "Inbox" });
item.Content = view;
groupBar.Items.Add(item);
this.Content = groupBar;| Goal | Approach |
|---|---|
| Outlook-style navigation | |
| Tree-style multi-expand | |
| One-at-a-time expand | |
| Collapsible bar | |
| Data-bound items | |
| Custom item content | Place any |
| List-view style items | |
| Drag-reorder items | |
| Resize navigation popup | |
| Gripper for StackMode | |
| Save/restore bar state | |
| Property | Type | Description |
|---|---|---|
| | Default / MultipleExpansion / StackMode |
| | Allow collapsing (StackMode) |
| | Show resize gripper (StackMode) |
| | Data-bound items |
| | Style applied to each |
| | Enable drag-and-drop reordering |
| | Color of drag insertion marker |
| | Navigation pane popup resize (Both/H/V/None) |
| | Height/width of selected item content area |
| | Style for GroupBar header border |
| | Display text for item header |
| | Icon in item header |
| | Expand this item initially |
| | Rounded corners on item header |
| | List-view style (vs icon style) |
| | Text label for view item |
| | Icon for view item |
| | Auto-save state on load |