开发者

Making WPF user control mark click events as handled

开发者_运维百科

I have a custom controls which propagates the mouse click event up the visual tree and I would like to get rid of this behaviour. Is there a way to mark a routed event (which was raised by button click or other mouse event) as handled from xaml in my UserControl.


you can use e.Handled = true; to try and swallow events. Although button click events shouldn't bubble.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜