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

Keep backstage open after an event within it ?

1 Answer 6 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Barry
Top achievements
Rank 1
Barry asked on 18 Jul 2019, 05:06 PM

Hi,

We have an option to close our app in our Backstage panel:

var result = MessageBox.Show(unsavedChangesMsg, Properties.Resources.MessageBoxTitle_Confirmation, MessageBoxButton.OKCancel, MessageBoxImage.Question);

...if the user selected "Cancel" then the ribbon goes to last tab selected instead of staying in the backstage. The backstage isn't considered to be a tab it seems, so keeping it open is problematic it seems. 

I've tried:

- Hiding all tabs.

- Unselecting all tabs.

- MasterRadRibbonView.SelectedIndex = -1;

- MasterRadRibbonView.SelectedItem = MasterRadRibbonView.Backstage;

- IsBackstageOpen = true; //databinding

...and a few other things, but when the screen comes back after the user exits out of the pop-up window, the last tab is loaded, when we want it to stay on the Backstage until the user selects a tab themselves.

Barry

 

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 23 Jul 2019, 08:45 AM
Hi Barry,

Can you please specify how exactly you're displaying the MessageBox and handling the closing of the application?

I've prepared a small sample project where canceling the operation keeps the backstage open at my end. If possible, please modify it to better resemble your setup and send it back to me so that I can further assist you.

Thank you in advance for your cooperation on the matter.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
RibbonView and RibbonWindow
Asked by
Barry
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or