What is the difference between
this.Loaded += new RoutedEventHandler(MainWindow_Loaded);
and
childWindow.MyEvent += new EventHandler(childWindow_MyEvent);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume you want to know what’s the difference between Events and Routed Events. These 2 articles might help you:
https://msdn.microsoft.com/en-us/library/ms742806(v=vs.100).aspx (a MSDN article)
http://joshsmithonwpf.wordpress.com/2008/03/18/understanding-routed-commands/ (a great article about Routed Commands that also contains a very nice explanation of Routed Events)