开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜