How to bind to a RoutedCommand (like "Paste") RRS feed

  • Question

  • Let's say I have a Button selected in Blend, and I now select the Bind to the Button's Command property.  If I were to have made a command derived from ICommand inside the same class that I had set as the datacontext for the window the button is in, I would be presented with a designer-friendly method of choosing the command from a list.

    What I'm wondering is how I can make the "built-in" commands (based on RoutedCommand) expose themselves in a simular manner... one where the designer can pick the system's paste command to bind to the button.

    Anybody know how to bind the paste command to a button/menuitem/etc just using Blend?


    Wednesday, March 17, 2010 4:05 AM