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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.