当前位置: 动力学知识库 > 问答 > 编程问答 >

wpf - .Click handler for child menu items

问题描述:

Ok so this should be a basic thing, but I'm having a very difficult time figuring it out.

I'm making a WPF window in visual basic express 2012, using vb.net. I have a Menu added to the window with "File, Edit, etc..." My question is how do I add event handlers to the child menu items?

Lets say I want to add .Click event handler to the "Open" menuitem, which is under "File" in the menu. How do I go about adding the handler in my code? Basically I've figured out how to add events to the Parent menu items, but not the child items.

分享给朋友:
您可能感兴趣的文章:
随机阅读: