Click here to Skip to main content
15,883,971 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In my wpf project i had seen some wpf handlers (dragdrop handler,mouse behaviour handler)... can anyone please explain me breifly about the handlers in wpf?
Posted
Updated 6-May-15 11:51am
v2

1 solution

Short answer is: and what do you think would be the use of UI without handlers? There is no UI without them. And not only UI. This is the same as asking "what is the use of functions in programming?" :-)

It's not even WPF, this is the general CLR thing, as well as a lot of very similar staff in many technologies outside .NET and CLR.

No, it's hard to make it easier for you than reading of original MSDN documentation:
https://msdn.microsoft.com/en-us/library/edzehd2t%28v=vs.110%29.aspx[^] (what could be more brief that this one?),
https://msdn.microsoft.com/en-us/library/aa645739%28v=vs.71%29.aspx[^].

However, WPF introduces its own twist to events, but, in vast majority of cases, this is advanced stuff, so you can do a lot of work without understanding it all:
https://msdn.microsoft.com/en-us/library/ms753115%28v=vs.110%29.aspx[^],
https://msdn.microsoft.com/en-us/library/ms742806%28v=vs.110%29.aspx[^],
https://msdn.microsoft.com/en-us/magazine/cc785480.aspx[^],
http://www.wpf-tutorial.com/xaml/events-in-xaml[^].

Of course, eventually you would need to learn all this WPF-specific stuff, but not sooner than you understand general event concepts, which are not so trivial as some may think based on basic everyday experience.

—SA
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900