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

Backstage show event...or similar...

1 Answer 87 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Simone
Top achievements
Rank 1
Simone asked on 14 Mar 2017, 03:01 PM

Hello everybody, I need to do some stuff (change the items depending on what it is shown in that moment on a RadPaneGroup) just before the Backstage of my RadRibbonView is going to be open (every time) but I don't find any event that can handle it.

 

Any help?

 

Thanks,

Simone

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 17 Mar 2017, 02:21 PM
Hello Simone,

You can get used of the PreviewSelectionChanged event of the RibbonView as it will get raised when the tab selection is about to be done or is done. In it you can check whether the bakstage is open (throught the IsBackstageOpen property of the RibbonView). For example:

bool isBackstageOpen = false;
  
private void radRibbonView_PreviewSelectionChanged(object sender, Telerik.Windows.Controls.RadSelectionChangedEventArgs e)
{
    var ribbonView = (sender as RadRibbonView);
    isBackstageOpen = ribbonView.IsBackstageOpen;    
}


Please mind that If you don't have any RibbonTabs in RibbonView, then the event will not be fired.

If this doesn't help please send us any additional information that might help us better understand your scenario and assist you.

Regards,
Evgenia
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
RibbonView and RibbonWindow
Asked by
Simone
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or