Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF Ribbon Application Menu Question

$
0
0

Hi All,

I would like to kindly ask you for advice. I'm trying to make a ApplicationMenu which will be visible or not, depends which page is loaded to the form.

<ribbon:Ribbon x:Name="Ribbon"><ribbon:Ribbon.ApplicationMenu><ribbon:RibbonApplicationMenu x:Name="Kaizen"><ribbon:RibbonApplicationMenuItem x:Name="Main" Header="Close"/><ribbon:RibbonApplicationMenuItem x:Name="KaizenSaveItem" Header="Save"/><ribbon:RibbonApplicationMenuItem x:Name="KaizenSaveItem1" Header="Clear"/><ribbon:RibbonApplicationMenuItem x:Name="KaizenSaveItem2" Header="Close"/></ribbon:RibbonApplicationMenu></ribbon:Ribbon.ApplicationMenu>

This is my code for the first page - code for Menu. But what I want to do is to allow user to use that menu, whatever page he will load (I have 3 pages - Kaizen, Question, Upload). So for each I have to create this kind of menu, to for example save the data to the database from loaded page, or there is something to run the code, depends which page is loaded? 

Thank you in advance


Mathh


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>