How do I hide the Backstage in the code behind?

4 posts, 1 answers
  1. Guy
    Guy avatar
    46 posts
    Member since:
    Nov 2008

    Posted 26 Apr 2012 Link to this post

    Hi,

    I have some RadRibbonButton layed out on the Backstage and I want to hide the Backstage when I click on them. Unfortunately, I can not seem to find the way to hide the Backstage in code.

    Thank You
  2. Answer
    Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 27 Apr 2012 Link to this post

    Hi Guy,

     In a typical code behind solution , you can use the RadRibbonView's IsBckstageOpen property.
    In a complex MVVM scenario you should bind this property to boolean property X from your ViewModel. Clicking on your button should activate command and the code for this Command should set the boolean property from your ViewModel to False.

    All the best,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Guy
    Guy avatar
    46 posts
    Member since:
    Nov 2008

    Posted 27 Apr 2012 Link to this post

    Thank You, I had overlooked that property.

    I'd also want to know if there is a way to define the width and height of the BackstageItem Icon? I would like to set a bigger icon for it.
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 01 May 2012 Link to this post

    Hello Guy,

     Yes, you can edit the Style of the RibbonBackstageItem and then edit the Image in the Template.

    Greetings,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top