Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PreviewMouseMove vs MouseMove

Tags:

c#

events

xaml

I've had my fair share of XAML experience, but recently I noticed that most of my colleagues use PreviewMouseMove insead of MouseMove event. I've always used MouseMove and it has served me well, but I can't help but ask when should I use PreviewMouseMove and when MouseMove. What's the difference, what pros and cons do each have, etc...?

like image 357
Mario Stoilov Avatar asked Jan 03 '14 08:01

Mario Stoilov


1 Answers

PreviewMouseMove is a Tunneling event that is event start from parent container to child and MouseMove is a Bubble event that is it move from child element to parent cotainer. for more detail see this

like image 65
Heena Avatar answered Sep 28 '22 20:09

Heena