Quantcast
Channel: 2,000 Things You Should Know About WPF » CommandTarget
Browsing all 2 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

#1,091 – Using a CommandTarget to Change the Source of a Routed Command

The source of a routed command is the element that is invoking the command.  The sender parameter in the Executed or CanExecute handlers is the object that owns the event handler.  Setting the Command...

View Article



Image may be NSFW.
Clik here to view.

#1,092 – An Example of Using a CommandTarget

Setting the CommandTarget property allows an element executing a routed command to initiate the routing of a command with a different element. In the example below, clicking on the Button initiates a...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images