I have a window that has some tabs,in each tab i can create a new item.
I want define a short key for create new item.But i want my short Key work on active tab.
For example, when Tab1 was active my short key work on create item in Tab1 or when Tab2 was active my short key work on create item in Tab2. How can i use from one short key on active tab?
I have a window that has some tabs,in each tab i can create a
Share
There are many ways to accomplish this. The most common is to use a command. First, here’s the XAML I used:
Here’s the code-behind:
I wouldn’t consider this production code, but hopefully it points you in the right direction.