Skip to content

Commit ebc2acb

Browse files
committed
Add BreadcrumbBar Sample
1 parent a24ecd8 commit ebc2acb

File tree

6 files changed

+54
-0
lines changed

6 files changed

+54
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ Install-Package DevWinUI
135135
## 🔥 DevWinUI.Controls 🔥
136136
### ⚡ What’s Inside? ⚡
137137

138+
- ✨ BreadcrumbBar
138139
- ✨ ThemedIcon
139140
- ✨ SamplePanel
140141
- ✨ SpectrumAnalyzer
@@ -325,6 +326,9 @@ Install-Package DevWinUI.ContextMenu
325326

326327
## 🕰️ History 🕰️
327328

329+
### BreadcrumbBar
330+
![BreadcrumbBar](https://raw.githubusercontent.com/ghost1372/DevWinUI-Resources/refs/heads/main/DevWinUI-Docs/BreadcrumbBar.png)
331+
328332
### ThemedIcon
329333
![ThemedIcon](https://raw.githubusercontent.com/ghost1372/DevWinUI-Resources/refs/heads/main/DevWinUI-Docs/ThemedIcon.gif)
330334

4.16 KB
Loading

dev/DevWinUI.Gallery/Assets/NavViewMenu/AppData.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@
162162
"ImagePath": "ms-appx:///Assets/Fluent/RatingControl.png",
163163
"IsSpecialSection": false,
164164
"Items": [
165+
{
166+
"UniqueId": "DevWinUIGallery.Views.BreadcrumbBarPage",
167+
"Title": "BreadcrumbBar",
168+
"Subtitle": "A BreadcrumbBar provides the direct path of pages or folders to the current location.",
169+
"IsNew": true,
170+
"ImagePath": "ms-appx:///Assets/Fluent/BreadcrumbBar.png"
171+
},
165172
{
166173
"UniqueId": "DevWinUIGallery.Views.ThemedIconPage",
167174
"Title": "Themed Icon",

dev/DevWinUI.Gallery/T4Templates/NavigationPageMappings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public partial class NavigationPageMappings
3636
{"DevWinUIGallery.Views.ExtensionPage", typeof(DevWinUIGallery.Views.ExtensionPage)},
3737
{"DevWinUIGallery.Views.ThemeManagerPage", typeof(DevWinUIGallery.Views.ThemeManagerPage)},
3838
{"DevWinUIGallery.Views.CheckUpdatePage", typeof(DevWinUIGallery.Views.CheckUpdatePage)},
39+
{"DevWinUIGallery.Views.BreadcrumbBarPage", typeof(DevWinUIGallery.Views.BreadcrumbBarPage)},
3940
{"DevWinUIGallery.Views.ThemedIconPage", typeof(DevWinUIGallery.Views.ThemedIconPage)},
4041
{"DevWinUIGallery.Views.SamplePanelPage", typeof(DevWinUIGallery.Views.SamplePanelPage)},
4142
{"DevWinUIGallery.Views.SpectrumAnalyzerPage", typeof(DevWinUIGallery.Views.SpectrumAnalyzerPage)},
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<Page x:Class="DevWinUIGallery.Views.BreadcrumbBarPage"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6+
xmlns:dev="using:DevWinUI"
7+
xmlns:local="using:DevWinUIGallery"
8+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9+
mc:Ignorable="d">
10+
11+
<ScrollViewer>
12+
<StackPanel Margin="10" dev:PanelAttach.ChildrenTransitions="Default" Spacing="10">
13+
<local:ControlExample DocPage="controls/breadcrumbBar">
14+
<local:ControlExample.Xaml>
15+
&lt;dev:BreadcrumbBar ItemsSource="{x:Bind Items}" /&gt;
16+
</local:ControlExample.Xaml>
17+
<dev:BreadcrumbBar EllipsisButtonToolTip="More folders"
18+
ItemsSource="{x:Bind Items, Mode=OneWay}"
19+
RootItemToolTip="Root Folder" />
20+
</local:ControlExample>
21+
</StackPanel>
22+
</ScrollViewer>
23+
24+
</Page>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using BreadcrumbBarItem = DevWinUI.BreadcrumbBarItem;
2+
3+
namespace DevWinUIGallery.Views;
4+
5+
public sealed partial class BreadcrumbBarPage : Page
6+
{
7+
public ObservableCollection<BreadcrumbBarItem> Items { get; set; } = new ObservableCollection<BreadcrumbBarItem>
8+
{
9+
new BreadcrumbBarItem { Content = "Home" },
10+
new BreadcrumbBarItem { Content = "Documents" },
11+
new BreadcrumbBarItem { Content = "Projects" },
12+
new BreadcrumbBarItem { Content = "2026" }
13+
};
14+
public BreadcrumbBarPage()
15+
{
16+
InitializeComponent();
17+
}
18+
}

0 commit comments

Comments
 (0)