开发者

WPF Canvas inheritance, mouse events not detected

开发者 https://www.devze.com 2023-03-18 15:26 出处:网络
I made a child class of Canvas WPF class to change rendering function. However, when I try to change its background property in child class to handle mouse events properly

I made a child class of Canvas WPF class to change rendering function. However, when I try to change its background property in child class to handle mouse events properly it is no开发者_运维百科t working. When manually set background in xaml with Background="White" in editor it is not working.

Where am I wrong. Beside that I would prefer adding canvaschild dynamically instead of using editor.

Thanks

0

精彩评论

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