One of the most daunting things about getting up to speed on Windows® Presentation Foundation (WPF) is that there are so many new constructs to master. Even simple things like Microsoft®
.NET Framework properties and events have new counterparts in WPF with
added capabilities and associated complexity—specifically dependency
properties and routed events. Then there is all the brand new stuff,
such as animations, styling, control templates, and routed commands.
There is a lot to learn.
In
this article I am going to focus on two very important items in the
list of new WPF elements to master. These items—routed events and
routed commands—are related to each other. They form the basis for
communication among the various parts of your user interface—whether
those parts are individual controls on one big Window class or whether
they are controls and their supporting code in separate, decoupled
parts of your user interface. For this article I am assuming you are
already familiar with the fundamentals of WPF, such as how to construct
a UI using built-in WPF controls and declaring the layout of your UI in
XAML.
Read complete article here:
Advanced WPF: Understanding Routed Events And Commands In WPF