Click here to Skip to main content
15,891,763 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I'm sorry for not being precise in the subject title, but the problem is as follows

I Have A wpf Window (MainWindow.Xaml)
tab control inside the window
and a user control inside the tab control (added programmatically to the tab control)

my question is

How can i execute routedcommands bound to buttons inside the usercontrol using their input gestures?

say i have a button in the user control called btn_Save

btn_Save has the routed command CMD with keygesture Control + S

I want to execute save function when pressing (Control + S)
when the main window has the focus and the user control is not focused

---
Thanks
Posted
Updated 19-Feb-13 1:14am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900