Skip to content

How to make a RightDrawerContent? #3255

Closed Answered by nicolaihenriksen
hxhgxy asked this question in Q&A
Discussion options

You must be logged in to vote

@hxhgxy If I understand your question correctly, you simply want the DrawerHost to open up the right drawer instead of the left drawer?

Setting the RightDrawerContent only tells the drawer host what should be displayed if/when the right drawer is opened. You also need something to actually trigger the opening. In the demo app (MainWindow) this is bound to the MenuToggleButton and the state of that is in turn bound to the DrawerHost.IsLeftDrawerOpen which effectively means when you toggle the button, it will show the left drawer. So you need to change BOTH the content and the "trigger", to get what I think you want. These changes to MainWindow.xaml should do the trick:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by nicolaihenriksen
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants