RadRibbonView.Backstage open in Windows but not in Page

5 posts, 1 answers
  1. Saykor
    Saykor avatar
    70 posts
    Member since:
    Feb 2011

    Posted 04 May 2014 Link to this post

    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
  2. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 07 May 2014 Link to this post

    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Saykor
    Saykor avatar
    70 posts
    Member since:
    Feb 2011

    Posted 08 May 2014 Link to this post

    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
  5. Answer
    Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 09 May 2014 Link to this post

    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.
     
  6. Saykor
    Saykor avatar
    70 posts
    Member since:
    Feb 2011

    Posted 09 May 2014 Link to this post

    I not know what is Adorner, thank you for your good explanation. I fix the modal control so now both controls works.

Back to Top
UI for WPF is Visual Studio 2017 Ready