WPFwiki, wpf, wiki, .net 3.0, windows presentation foundation, FAQ, free resources, solution, development, microsoft Home of the world's largest WPF FAQ
Edit

Category

Routed Commands

Edit

Question

What is a Routed Command?

Edit

Answer

A RoutedCommand provides the signaling mechanism that indicates that a particular action is required.

A RoutedCommand does not provide the actual execution of the command, that is, perform the actions for the command. It is simply a messaging mechanism.

A RoutedCommand behaves similarly to a RoutedEvent in the way that they route through the Visual Tree as long as they are not "Handled".

RoutedCommands can be triggered on an element through gestures (attached to the command), through an InputBinding on a specific element or explicitly (invoked directly).

Edit

Keywords

RoutedCommand, gestures

All content is Copyright ©2007 Xceed Software Inc. unless otherwise indicated. See the Terms of Service. Contributors must read and agree to the Contribution Policy. WPFwiki is brought to you by Xceed, makers of the powerful yet free Xceed DataGrid for WPF.