开发者

MenuItem in Compact Framework 3.5

开发者 https://www.devze.com 2022-12-10 13:59 出处:网络
Is there anyway to programmatically force a MenuItem to raise their popup event?Basically, if you click on it with your stylus or finger, it shows the MenuItem collection for that specific MenuItem.I\

Is there anyway to programmatically force a MenuItem to raise their popup event? Basically, if you click on it with your stylus or finger, it shows the MenuItem collection for that specific MenuItem. I'd like to be abl开发者_JAVA百科e to do by using a button that I capture.


If you add your menu items to a ContextMenu you can then call ContextMenu.Show with a position and it will show the context menu at that position.

So you could do that in your button click event. Or did you want to 'fake' taps on the menu buttons on the soft menu bar?

0

精彩评论

暂无评论...
验证码 换一张
取 消