If you are using the native NavigationView
control, what you need is to create a default style of the NavigationView
control.
Open the DocumentOutline windows from the Visual Studio, it will show all the controls that you've added to the Xaml page, then choose the target NavigationView
, right click it and choose Edit Template -> Edit a copy . Then the Visual Studio will automatically generate a default style of the NavigationView
.
In the style, there is a Grid called PaneContentGrid
inside a SplitView.Pane, that's the place where the NavigationViewItems are listed. You could add another button as you want.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.