/ Published in: C#
Add this code inside of the tags in the code behind.
Each Header is what you see. Command is the method that will be run when this menu item is selected. Image Source is an image that shows to the left of the word.
Each Header is what you see. Command is the method that will be run when this menu item is selected. Image Source is an image that shows to the left of the word.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<Menu IsMainMenu="True"> <MenuItem Header="_File" /> <MenuItem Header="_Edit"> <MenuItem Header="_Cut" Command="Cut"> <MenuItem.Icon> <Image Source="Images/cut.png" /> </MenuItem.Icon> </MenuItem> <MenuItem Header="_Copy" Command="Copy"> <MenuItem.Icon> <Image Source="Images/copy.png" /> </MenuItem.Icon> </MenuItem> <MenuItem Header="_Paste" Command="Paste"> <MenuItem.Icon> <Image Source="Images/paste.png" /> </MenuItem.Icon> </MenuItem> </MenuItem> </Menu>