tags:

views:

24

answers:

0

If we have a button as the commandSource of ,for example, The Applicationcommand.Paste, which is a RoutedCommand, this means that the RoutedCOmmand.Executed, CanExecuted, PreviewExecuted and PreviewCanExecuted events will raise when the command is invoked by the Button, it will raise on the CommandTarget (TextBox For example) and start Bublling and tunlling from it ,so how this commandTarget raises this events, is it registred on these events by default? and how the commandingSystem knows that the CommpandTarget has focus and this command Can be executed if we don't reference it explicitly by using the CommandTarget Property of the ICommandSource (Button here)? thank you.