Keep the Backstage open when Escape key is pressed

3 posts, 0 answers
  1. Maurício
    Maurício avatar
    41 posts
    Member since:
    Jan 2011

    Posted 17 Jun 2014 Link to this post

    Hello

    In the RibbonView group at the Q3-2013 release history, there is a line saying that the possibility to keep the Backstage open when Escape key is pressed was added:
    http://www.telerik.com/support/whats-new/wpf/release-history/q3-2013

    But I didn't find any property to do so, and even when I looked for the RibbonView changes here: http://www.telerik.com/help/wpf/radribbonview-changes.html
    I couldn't find any information about the Q3-2013 release.

    What I am looking for is the possibility to not close the backstage when I hit Escape. The reason is that I have a listbox, and my listboxitems have a textbox allowing the user to change the item's name, and the only way possible for the user to cancel the operation is by pressing Escape.

    Maybe I didn't find the correct property or missed something else.

    Thanks
  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 19 Jun 2014 Link to this post

    Hello Maurício,

    Indeed we added a possibility to keep the Backstage control opened when the Escape key is pressed. In Q3 2013 we exposed the HandleKey() protected method of the RadRibbonBackstage control. In order to achieve your requirement you can create a class that derives from the RadRibbonBackstage and override its HandleKey() method. The following code snippet demonstrates sample implementation that will keep the backstage open even when the Esc key is pressed:

    public class MyBackstage : RadRibbonBackstage
    {
        protected override void HandleKey(KeyEventArgs e)
        {
        }
    }

    <telerik:RadRibbonView>
        <telerik:RadRibbonView.Backstage>
            <local:MyBackstage />
        </telerik:RadRibbonView.Backstage>
    </telerik:RadRibbonView>

    I hope this helps.

    Regards,
    Martin
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Maurício
    Maurício avatar
    41 posts
    Member since:
    Jan 2011

    Posted 24 Jun 2014 in reply to Martin Link to this post

    Ok, I got it.
    Thank you Martin
Back to Top