开发者

MouseLeave in silverlight(Windows Phone 7) getting fired event if mouse hasn't moved out

开发者 https://www.devze.com 2023-03-10 11:17 出处:网络
Register for MouseDown and MouseLeave events this开发者_如何学JAVA.MouseLeftButtonDown += new MouseButtonEventHandler(MainPage_MouseLeftButtonDown);

Register for MouseDown and MouseLeave events this开发者_如何学JAVA.MouseLeftButtonDown += new MouseButtonEventHandler(MainPage_MouseLeftButtonDown); this.MouseLeave += new MouseEventHandler(MainPage_MouseLeave);

Click somewhere both events will get fired.

shouldn't mouseleave get fired only when i move outside the boundary of the control?


Because there isn't an actual mouse on a touch based screen then this behaviour is correct.

You probably shouldn't use mouseLeave in a mobile app which doesn't use a mouse. There are a few reason why you may need to but they're not related to clicking.

0

精彩评论

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

关注公众号