ApplicationMenu not closing with KeyTip

3 posts, 1 answers
  1. Usman
    Usman avatar
    2 posts
    Member since:
    Mar 2015

    Posted 20 Apr 2016 Link to this post


    I am running the following xaml:

    <Grid><br>        <telerik:RadRibbonView telerik:KeyTipService.IsKeyTipsEnabled="True"><br>            <telerik:RadRibbonView.ApplicationMenu><br>                <telerik:ApplicationMenu telerik:KeyTipService.AccessText="F"><br>                    <telerik:RadRibbonButton Content="New" telerik:KeyTipService.AltAccessText="N"/><br>                </telerik:ApplicationMenu><br>            </telerik:RadRibbonView.ApplicationMenu><br>        </telerik:RadRibbonView><br>    </Grid><br>


    When I do "Alt+F", it opens the main menu like it should, but then if I press "N" alone, it clicks the button but does not close the application menu (and the access key disappears too). If I press "Alt+N", it closes the application menu promptly. My question is how do I close the application menu on just "N" alone?

    Any ideas?


  2. Answer
    Martin Ivanov
    Martin Ivanov avatar
    1442 posts

    Posted 22 Apr 2016 Link to this post

    Hello Usman,

    I can confirm that this is an issue in RadRibbonView. I logged it in our feedback portal where you can track its status and I also updated your Telerik points as a small gesture of gratitude for reporting this.

    As a workaround you can close the ApplicationMenu when the button is activated. You can do that in the KeyDown event handler of the ribbonview control.
    private void xRibbon_KeyDown(object sender, KeyEventArgs e)
        if (xRibbon.IsApplicationMenuOpen && e.Key == Key.N)
            xRibbon.IsApplicationMenuOpen = false;

    Or in the Activate event of the keytip service.

    <telerik:RadRibbonButton Content="New" telerik:KeyTipService.AccessText="N">
            <telerik:KeyTipActivation Activated="KeyTipActivation_Activated"  />

    private void KeyTipActivation_Activated(object sender, Telerik.Windows.RadRoutedEventArgs e)
        this.ribbonView.IsApplicationMenuOpen = false;

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. Usman
    Usman avatar
    2 posts
    Member since:
    Mar 2015

    Posted 22 Apr 2016 in reply to Martin Ivanov Link to this post

    Thanks Martin, will do with the workaround for now then!
Back to Top