Hot Key for RadTabItem

3 posts, 0 answers
  1. Kam
    Kam avatar
    3 posts
    Member since:
    Aug 2011

    Posted 04 Nov 2011 Link to this post

    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. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 09 Nov 2011 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Kam
    Kam avatar
    3 posts
    Member since:
    Aug 2011

    Posted 09 Nov 2011 Link to this post

    That works for me :-)

    Great and thanks again for your prompt response.

    Cheers
    Kam
Back to Top