RibbonView occasionally fails to render when IsAutoSize=True and used in Prism region

3 posts, 0 answers
  1. Greg
    Greg avatar
    22 posts
    Member since:
    Aug 2011

    Posted 13 Dec 2012 Link to this post

    This is a (somewhat) obscure issue that has been driving us nuts for months now, but we finally seem to have narrowed it down. The issue is that when we used the RibbonView as a Prism region and activated RibbonTabs in that region, the RibbonTab would occasionally fail to render. What I mean by "fail to render" is that the RibbonTab would get added, but would be completely empty; just a blank, grey tab.

    We fought this for months assuming that we had a bug somewhere in our region management code. The problem even went away for some unknown reason, but came back just this week. After scratching our heads for a while, we figured out that if we set IsAutoSize=False on all our RadRibbon elements and made sure to set Size=<somevalue> then the problem would go away. If we tried to use auto-sizing then the problem would come back and even get worse as we made more and more elements use auto-sizing.

    This appears to be a similar issue: http://www.telerik.com/community/forums/wpf/ribbonview/ribbongroups-not-visible-issue.aspx

    So the good news is that we figured out a viable work-around. The bad news is that there appears to be an issue with how size is calculated. I'm sure the folks at Telerik can whip up their own sample to see what's happening. Meanwhile, we're just glad to have identified a solution that will let us roll into production.

    Greg
  2. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 18 Dec 2012 Link to this post

    Hello Greg,

     The auto-sizing feature is very tough to implement and to make sure it works in every case - like Prism, MEF and so on. This week we made major improvements on the whole logic and I think is headed to the very right direction. The major changes are exactly in the field of calculating the best sizes for every group.
    Can you try the Internal build that will be available in your account next Monday? It will be great if you get back to us with your feedback and especially if you still have any issues with the sizing.
    Thank you very much for your cooperation.

    Greetings,
    Miro Miroslavov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Greg
    Greg avatar
    22 posts
    Member since:
    Aug 2011

    Posted 18 Dec 2012 Link to this post

    That's great news, Miro. I'm sure that's pretty hairy code. I'd be happy to pull the internal build next week and let you know.

    Thanks!
    Greg
Back to Top