How to make the "Home" in navigationview already clicked and shows the page content of "Home"when i run the mainwindow #992
-
<ui:NavigationView Grid.Row="1" x:Name="NavMenu" PaneDisplayMode="LeftFluent"> |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey, you can add a Loaded event to your MainWindow. Once the window is loaded, you can tell the navigation to navigate to a specific page. wpfui/src/Wpf.Ui.Gallery/Services/ApplicationHostService.cs Lines 60 to 68 in baaf749 wpfui/src/Wpf.Ui.Demo.Simple/MainWindow.xaml.cs Lines 13 to 25 in baaf749 |
Beta Was this translation helpful? Give feedback.
Hey, you can add a Loaded event to your MainWindow. Once the window is loaded, you can tell the navigation to navigate to a specific page.
wpfui/src/Wpf.Ui.Gallery/Services/ApplicationHostService.cs
Lines 60 to 68 in baaf749
wpfui/src/Wpf.Ui.Demo.Simple/MainWindow.xaml.cs
Lines 13 to 25 in baaf749