WPF: How to make an overlay control with transparent canvas and clickable child

前端 未结 1 1071
广开言路
广开言路 2021-02-13 02:48

I want to make a custom control which will be used as an overlay. The control should contain a couple of child controls which should be drawn and should be clickable as usual. B

相关标签:
1条回答
  • 2021-02-13 03:12

    You should set the background of the Canvas to null (or just no background, null is default). Transparent is "visible" to the mouse clicks.

    0 讨论(0)
提交回复
热议问题