diff --git a/src/Wpf.Ui.Gallery/App.xaml.cs b/src/Wpf.Ui.Gallery/App.xaml.cs index 9aad7b509..47793c1be 100644 --- a/src/Wpf.Ui.Gallery/App.xaml.cs +++ b/src/Wpf.Ui.Gallery/App.xaml.cs @@ -143,6 +143,7 @@ public partial class App : Application services.AddTransient(); // Navigation + services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); diff --git a/src/Wpf.Ui.Gallery/ViewModels/Pages/Navigation/NavigationViewModel.cs b/src/Wpf.Ui.Gallery/ViewModels/Pages/Navigation/NavigationViewModel.cs index e86082f00..d154a6e23 100644 --- a/src/Wpf.Ui.Gallery/ViewModels/Pages/Navigation/NavigationViewModel.cs +++ b/src/Wpf.Ui.Gallery/ViewModels/Pages/Navigation/NavigationViewModel.cs @@ -3,10 +3,7 @@ // Copyright (C) Leszek Pomianowski and WPF UI Contributors. // All Rights Reserved. -using System.Collections.Generic; using System.Collections.ObjectModel; -using CommunityToolkit.Mvvm.ComponentModel; -using Wpf.Ui.Common; using Wpf.Ui.Gallery.Models; namespace Wpf.Ui.Gallery.ViewModels.Pages.Navigation; @@ -16,6 +13,13 @@ public partial class NavigationViewModel : ObservableObject [ObservableProperty] private ICollection _navigationCards = new ObservableCollection { + new() + { + Name = "BreadcrumbBar", + Icon = SymbolRegular.Navigation24, + Description = "Shows the trail of navigation taken to the current location.", + Link = "BreadcrumbBar" + }, new() { Name = "NavigationView", diff --git a/src/Wpf.Ui.Gallery/ViewModels/Windows/MainWindowViewModel.cs b/src/Wpf.Ui.Gallery/ViewModels/Windows/MainWindowViewModel.cs index b1d809898..3a64ec25c 100644 --- a/src/Wpf.Ui.Gallery/ViewModels/Windows/MainWindowViewModel.cs +++ b/src/Wpf.Ui.Gallery/ViewModels/Windows/MainWindowViewModel.cs @@ -89,6 +89,7 @@ public MainWindowViewModel(IServiceProvider serviceProvider) }}, new NavigationViewItem {Content = "Navigation", Icon = new SymbolIcon { Symbol = SymbolRegular.Navigation24 }, TargetPageType = typeof(NavigationPage), MenuItems = new ObservableCollection { + new NavigationViewItem { Content = "BreadcrumbBar", TargetPageType = typeof(BreadcrumbBarPage) }, new NavigationViewItem { Content = "NavigationView", TargetPageType = typeof(NavigationViewPage) }, new NavigationViewItem { Content = "TabControl", TargetPageType = typeof(TabControlPage) }, }}, diff --git a/src/Wpf.Ui.Gallery/Views/Pages/Navigation/BreadcrumbBarPage.xaml b/src/Wpf.Ui.Gallery/Views/Pages/Navigation/BreadcrumbBarPage.xaml new file mode 100644 index 000000000..aafb3a249 --- /dev/null +++ b/src/Wpf.Ui.Gallery/Views/Pages/Navigation/BreadcrumbBarPage.xaml @@ -0,0 +1,89 @@ + + + + + https://github.com/lepoco/wpfui/blob/development/src/Wpf.Ui/Styles/Controls/BreadcrumbBar.xaml + https://github.com/dotnet/wpf/blob/main/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/BreadcrumbBar.cs + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +