You can create the Meun Bar in a UserControl, then use it the page which need the Meun Bar.
For example, you can create a UserControl named
MyMenuBar like below:
<DockPanel> <Menu DockPanel.Dock="Top"> <MenuItem Header="_File"> <MenuItem Header="_Open"/> <MenuItem Header="_Close"/> <MenuItem Header="_Save"/> </MenuItem> </Menu> <StackPanel></StackPanel> </DockPanel>
Then you can use it in
Window1 like below:
The Window1 will show the Meun Bar. Did I misunderstand your question? If I did, could you give me more description of your question for me to anlyze.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.