diff --git a/src/Wpf.Ui.Gallery/ViewModels/Windows/MainWindowViewModel.cs b/src/Wpf.Ui.Gallery/ViewModels/Windows/MainWindowViewModel.cs
index 43531e71d..e45879a95 100644
--- a/src/Wpf.Ui.Gallery/ViewModels/Windows/MainWindowViewModel.cs
+++ b/src/Wpf.Ui.Gallery/ViewModels/Windows/MainWindowViewModel.cs
@@ -35,7 +35,7 @@ public partial class MainWindowViewModel : ObservableObject
{
Content = "Design guidance",
Icon = new SymbolIcon { Symbol = SymbolRegular.DesignIdeas24 },
- MenuItems = new object[]
+ MenuItemsSource = new object[]
{
new NavigationViewItem("Typography", SymbolRegular.TextFont24, typeof(TypographyPage)),
new NavigationViewItem("Icons", SymbolRegular.Diversity24, typeof(IconsPage)),
@@ -46,7 +46,7 @@ public partial class MainWindowViewModel : ObservableObject
new NavigationViewItemSeparator(),
new NavigationViewItem("Basic Input", SymbolRegular.CheckboxChecked24, typeof(BasicInputPage))
{
- MenuItems = new object[]
+ MenuItemsSource = new object[]
{
new NavigationViewItem(nameof(Anchor), typeof(AnchorPage)),
new NavigationViewItem(nameof(Wpf.Ui.Controls.Button), typeof(ButtonPage)),
@@ -68,7 +68,7 @@ public partial class MainWindowViewModel : ObservableObject
Content = "Collections",
Icon = new SymbolIcon { Symbol = SymbolRegular.Table24 },
TargetPageType = typeof(CollectionsPage),
- MenuItems = new object[]
+ MenuItemsSource = new object[]
{
new NavigationViewItem(nameof(System.Windows.Controls.DataGrid), typeof(DataGridPage)),
new NavigationViewItem(nameof(ListBox), typeof(ListBoxPage)),
@@ -81,7 +81,7 @@ public partial class MainWindowViewModel : ObservableObject
},
new NavigationViewItem("Date & time", SymbolRegular.CalendarClock24, typeof(DateAndTimePage))
{
- MenuItems = new object[]
+ MenuItemsSource = new object[]
{
new NavigationViewItem(nameof(CalendarDatePicker), typeof(CalendarDatePickerPage)),
new NavigationViewItem(nameof(System.Windows.Controls.Calendar), typeof(CalendarPage)),
@@ -91,7 +91,7 @@ public partial class MainWindowViewModel : ObservableObject
},
new NavigationViewItem("Dialogs & flyouts", SymbolRegular.Chat24, typeof(DialogsAndFlyoutsPage))
{
- MenuItems = new object[]
+ MenuItemsSource = new object[]
{
new NavigationViewItem(nameof(Snackbar), typeof(SnackbarPage)),
new NavigationViewItem(nameof(ContentDialog), typeof(ContentDialogPage)),
@@ -102,7 +102,7 @@ public partial class MainWindowViewModel : ObservableObject
#if DEBUG
new NavigationViewItem("Layout", SymbolRegular.News24, typeof(LayoutPage))
{
- MenuItems = new object[]
+ MenuItemsSource = new object[]
{
new NavigationViewItem("Expander", typeof(ExpanderPage)),
new NavigationViewItem("CardControl", typeof(CardControlPage)),
@@ -115,7 +115,7 @@ public partial class MainWindowViewModel : ObservableObject
Content = "Media",
Icon = new SymbolIcon { Symbol = SymbolRegular.PlayCircle24 },
TargetPageType = typeof(MediaPage),
- MenuItems = new object[]
+ MenuItemsSource = new object[]
{
new NavigationViewItem("Image", typeof(ImagePage)),
new NavigationViewItem("Canvas", typeof(CanvasPage)),
@@ -125,7 +125,7 @@ public partial class MainWindowViewModel : ObservableObject
},
new NavigationViewItem("Navigation", SymbolRegular.Navigation24, typeof(NavigationPage))
{
- MenuItems = new object[]
+ MenuItemsSource = new object[]
{
new NavigationViewItem("BreadcrumbBar", typeof(BreadcrumbBarPage)),
new NavigationViewItem("NavigationView", typeof(NavigationViewPage)),
@@ -140,7 +140,7 @@ public partial class MainWindowViewModel : ObservableObject
typeof(StatusAndInfoPage)
)
{
- MenuItems = new object[]
+ MenuItemsSource = new object[]
{
new NavigationViewItem("InfoBadge", typeof(InfoBadgePage)),
new NavigationViewItem("InfoBar", typeof(InfoBarPage)),
@@ -151,7 +151,7 @@ public partial class MainWindowViewModel : ObservableObject
},
new NavigationViewItem("Text", SymbolRegular.DrawText24, typeof(TextPage))
{
- MenuItems = new object[]
+ MenuItemsSource = new object[]
{
new NavigationViewItem(nameof(AutoSuggestBox), typeof(AutoSuggestBoxPage)),
new NavigationViewItem(nameof(NumberBox), typeof(NumberBoxPage)),
@@ -164,7 +164,7 @@ public partial class MainWindowViewModel : ObservableObject
},
new NavigationViewItem("System", SymbolRegular.Desktop24, typeof(OpSystemPage))
{
- MenuItems = new object[]
+ MenuItemsSource = new object[]
{
new NavigationViewItem("Clipboard", typeof(ClipboardPage)),
new NavigationViewItem("FilePicker", typeof(FilePickerPage)),
diff --git a/src/Wpf.Ui.Gallery/Views/Pages/Navigation/NavigationViewPage.xaml b/src/Wpf.Ui.Gallery/Views/Pages/Navigation/NavigationViewPage.xaml
index 2b1d18110..a772a3279 100644
--- a/src/Wpf.Ui.Gallery/Views/Pages/Navigation/NavigationViewPage.xaml
+++ b/src/Wpf.Ui.Gallery/Views/Pages/Navigation/NavigationViewPage.xaml
@@ -197,7 +197,12 @@
+ TargetPageType="{x:Type samples:SamplePage1}">
+
+
+
+
+
{
- MyTestNavigationView.MenuItems = new ObservableCollection