Start New Discussion within our Software Development Community

Hi all,

i found

<Window.CommandBindings>
        <CommandBinding Command="ApplicationCommands.Paste" Executed="PasteExecuted" />
    </Window.CommandBindings>

to be a very effective and useful.
But I was expecting it to tunnel and not bubble.
I want it to call "PasteExecuted" no matter what control is selected.. Is this possible? Without having to add this to every control in the window?

Thanks
- hmortensen

Ok, so as no one knew or had time to help I, after a lot of googling found what I was looking for at http://shujaatsiddiqi.blogspot.com/2011/03/wpf-binding-inputbindings-to-view-model.html.

This led me to
http://msdn.microsoft.com/en-us/library/ms616826.aspx.. I was sure that I did a msdn search befor posting here... Sorry :/

- hmortensen

The

Hi all,

i found

<Window.CommandBindings>
        <CommandBinding Command="ApplicationCommands.Paste" Executed="PasteExecuted" />
    </Window.CommandBindings>

to be a very effective and useful.
But I was expecting it to tunnel and not bubble.
I want it to call "PasteExecuted" no matter what control is selected.. Is this possible? Without having to add this to every control in the window?

Thanks
- hmortensen

This question has already been answered. Start a new discussion instead.