鼠标事件不起作用在UserControl中

要支持鼠标事件,则Background不能为Null,而UserControl默认的Background为Null,所以导致鼠标事件不起作用,而Window默认Background是不为Null的,所以也就支持鼠标事件。

posted @ 2011-12-23 14:53  李董  阅读(225)  评论(0)    收藏  举报