This is a migrated thread and some comments may be shown as answers.

Hot Key for RadTabItem

2 Answers 139 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Kam
Top achievements
Rank 2
Kam asked on 04 Nov 2011, 08:31 PM
I want to assign a keyboard shortcut for direct and easy navigation to a specific tab item (just like in old days, MS provided a mechanism to Captionized the UI item with &) and I do know the WPF has an alternative to that (ampersand) form Windows Forms world.. but for some reason, renaming Header elements of my tabitem with _ (underscore) does not yield anything!

 

 

 

<telerik:RadTabItem Header="_Main" />

 

<telerik:RadTabItem Header="_Customer" />

 

<telerik:RadTabItem Header="_Employee" />

What's the secret behind this? :-) Please reply ASAP. We are looking into how flexible the tool is to support quick keyboard navigations..

Cheers

 

2 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 09 Nov 2011, 04:18 PM
Hi Kam,

 You can set Label as a Header of the RadTabItems like so;

<telerik:RadTabItem>
                        <telerik:RadTabItem.Header>
                            <Label Content="_A Tab" />
                        </telerik:RadTabItem.Header>
                    </telerik:RadTabItem>
Please check out the attached solution. Pressing Alt + A, B or C will switch the tabs. Is this suitable for you? All the best,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Kam
Top achievements
Rank 2
answered on 09 Nov 2011, 05:46 PM
That works for me :-)

Great and thanks again for your prompt response.

Cheers
Kam
Tags
TabControl
Asked by
Kam
Top achievements
Rank 2
Answers by
Petar Mladenov
Telerik team
Kam
Top achievements
Rank 2
Share this question
or