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

RadRibbonView.Backstage open in Windows but not in Page

4 Answers 153 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Saykor
Top achievements
Rank 2
Saykor asked on 04 May 2014, 08:04 PM
Dear customer support,
I am not sure if this is a bug or it is suppose to work by this way. Here is the code of whole RadRibbonView:
http://pastebin.com/eLKRbZba

And please see this video: https://www.youtube.com/watch?v=m_s0HSMgpK4&feature=youtu.be

First time when I run the project I open the code above in Window and as you see it works.
Then I change it to what I need. The structure is Windows with RadBusyIndicator + Frame where I navigate to Login Page. When user is login the frame navigate to the main program again it is Page. This is the exactly same code in pastebin. As you see when I click ApplicationButton the Backstage not open anymore.

This is a bug or it is suppose to not work in Page?

Best regards,
Saykor

4 Answers, 1 is accepted

Sort by
0
Kiril Vandov
Telerik team
answered on 07 May 2014, 08:26 AM
Hello Saykor,

We have tried to reproduce the behavior that you have reported but with no success. The RadRibbonView and its Backstage component are displayed as expected on our side, regardless of their host element (Page/UserControl/Window).
I have attached a sample project in which I am using a button to navigate to a Page holding the RadRibbonView control. Could you please take a look at the project and attach us a modified version in order to reproduce the issue on our side.

Kind regards,
Kiril Vandov
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
Saykor
Top achievements
Rank 2
answered on 08 May 2014, 02:06 PM
Dear Kiril,
You are right it works on this sample and when I make a clear project, add the structure that I have too works... but I found in what case Ribbon Backstage not work: https://mega.co.nz/#!w1hADIaJ!rvbnVI_OEMfEzJPTcP2b-D4KEXlxdGefNEr5ykAPjs8

You can download this project and will see that I use a ModalDialogPopup Control in the navigation page. I don't know why but seems when remove the ModalDialogPopup Backstage works.

Seems ModalDialogPopup override something that is used for Backstage. If you see the lines 366 and 377 in file ModalDialogPopup.cs when I comment them Backstage works again:

//myAdorner.Visibility = Visibility.Hidden;
//myAdorner.Add(this.Shader);

Regards,
Saykor
0
Accepted
Kiril Vandov
Telerik team
answered on 09 May 2014, 11:19 AM
Hello Saykor,

The RadRibbonView Backstage control in WPF is an adorner. An Adorner is a custom FrameworkElement that is bound to a UIElement. Adorners are rendered in an AdornerLayer, which is a rendering surface that is always on top of the adorned element or a collection of adorned elements. You can find more information about the Adorners in this article.

The AdornerLayer is used to host the RadRibbonBackstageAdorner in order to be visualized. In the sample project that you have provided, your ModalDialogPopup class changes the visibility of that Adorner to Hidden. That is why the Backstage is never displayed its parent element is not visible.
Hiding the AdornerLayer element is not a good practice as it may be used by various controls to display some of their element, like the Backstage. Instead of hiding the entire layer, you could simply make the visibility of the elements which are hosted inside the AdornerLayer. In your case your could change the visibility of the "this.Shader" instead.

I hope this information helps.

Kind regards,
Kiril Vandov
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
Saykor
Top achievements
Rank 2
answered on 09 May 2014, 11:26 AM
I not know what is Adorner, thank you for your good explanation. I fix the modal control so now both controls works.

Tags
RibbonView and RibbonWindow
Asked by
Saykor
Top achievements
Rank 2
Answers by
Kiril Vandov
Telerik team
Saykor
Top achievements
Rank 2
Share this question
or