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

Keep the Backstage open when Escape key is pressed

2 Answers 64 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Maurício
Top achievements
Rank 1
Maurício asked on 17 Jun 2014, 02:08 PM
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 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 19 Jun 2014, 07:03 AM
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.
 
0
Maurício
Top achievements
Rank 1
answered on 24 Jun 2014, 11:05 AM
Ok, I got it.
Thank you Martin
Tags
RibbonView and RibbonWindow
Asked by
Maurício
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Maurício
Top achievements
Rank 1
Share this question
or