Dismissing the MinimizedPopup

5 posts, 0 answers
  1. Trang
    Trang avatar
    11 posts
    Member since:
    Feb 2012

    Posted 25 Apr 2012 Link to this post

    Hi,

    When the RadRibbonView.IsMinimized is set to true the ribbon is minimized. Clicking on a tab opens a popup to display the group and items.  Is there a way to dismiss the popup when a user clicks on an item in the tab, similar to the behavior in Microsoft's ribbon? Currently, only when the user clicks outside of the tab, the popup will go away and return to the minimized ribbon state.  I found the RadRibbonView.IsMinimizedPopupOpen, but this property cannot be set.  Any ideas?

    Thanks,
    Trang
  2. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 26 Apr 2012 Link to this post

    Hello Trang,

    Could you please try these lines of code:
    var popup = ribbon.ChildrenOfType<Popup>().FirstOrDefault();
    if (popup != null)
    {
       popup.IsOpen = false;
    }
    and tell me if this works for you?

    Regards,
    Viktor Tsvetkov
    the Telerik team

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

  3. UI for WPF is Visual Studio 2017 Ready
  4. Trang
    Trang avatar
    11 posts
    Member since:
    Feb 2012

    Posted 27 Apr 2012 Link to this post

    Hi Viktor,

    Thank you for your help.  I was able to do what I needed.  I did notice that even when the ribbon is minimized and the popup is open, the popup.IsOpen would be false.  I had to set it to true and then back to false to force it to close.

    Thanks,
    Trang
  5. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 01 May 2012 Link to this post

    Hi Trang,

    Please accept my apologies for misleading you in my previous post, actually you need to get the second child popup so could you try using:
    var popup = ribbon.ChildrenOfType<Popup>().LastOrDefault();
    instead of:
    var popup = ribbon.ChildrenOfType<Popup>().FirstOrDefault();


    All the best,
    Viktor Tsvetkov
    the Telerik team

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

  6. Trang
    Trang avatar
    11 posts
    Member since:
    Feb 2012

    Posted 01 May 2012 Link to this post

    Thank you Viktor. This approach works much better.
Back to Top
UI for WPF is Visual Studio 2017 Ready