Call menu on canvas problem in WPF
I have the tree of my tree outline show be开发者_运维技巧low:
From the picture, I have to touch at scaleCanvas for 2 second, then the wsMenu will appear at this touch point. But when menu appeared, I hope the TouchEventArgs to found wsMenu which appear on my finger but it still found scaleCanvas at lower level. I want that finger to routed again and found wsMenu which shown in the red line. If it still like this I can choose menu at the next touch only.
Best Regards, C.PorawatI cannot test this with a touch device, it works with a mouse -
Try calling wsMenu.CaptureMouse()
after the menu has appeared.
精彩评论