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

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

2 Answers 30 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 13 Dec 2012, 05:47 PM
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 Answers, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 18 Dec 2012, 12:36 PM
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.

0
Greg
Top achievements
Rank 1
answered on 18 Dec 2012, 03:15 PM
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
Tags
RibbonView and RibbonWindow
Asked by
Greg
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Greg
Top achievements
Rank 1
Share this question
or