In my project I want to open a new window whenever the user click on a menu link. There is no click
event in ModernUI
menu link. The menu link have only one option Source
. Is there any way to open a new window clicking on a menu link.
Menu link code snippet is here:
<mui:ModernWindow.MenuLinkGroups >
<mui:LinkGroup DisplayName="File" x:Name="FileMenuGroup" >
<mui:LinkGroup.Links >
<mui:Link DisplayName="New Project" Source="/NewProjectUC.xaml" />
<mui:Link DisplayName="Open Recent" Source="/RecentItems.xaml" />
</mui:LinkGroup.Links>
</mui:LinkGroup>
</mui:ModernWindow.MenuLinkGroups>
I had found a way to open a new dialogue in modern window. Here is the code First create an empty
UserControl