Hi.
I'm currently evaluating the XamRibbonWindow. I'm not actually using the Ribbon, just using it as a container in order to take advantage of the Office 2013 theme.
I create the RibbonWindow, set it's content to the RibbonContentHost, and then set my user control as the content of the RibbonContentHosts' content (sorry for the nesting !).
Anyway, the window has size to content set to width and height. My usercontrol is 600px wide, but on opening the window, the window is 614 pixels wide. The user control has an expander. When it's expanded, the window height adjusts (as expected), but then the width adjusts to 600 pixels, giving the illusion that the window is skipping a few pixels to the left.
Is this a bug ? The stock WPF window doesn't exhibit this behaviour. I've also been evaluating Telerik's Window, which also doesn't exhibit this.
Quick update :
The User control has a scroll viewer inside it (technically, scroll viewer resides within a content control, which is hosted by a usercontrol, hosted by the RibbonWindowContentHost ...). It seems that the initial dimensions of the window are what they would have been if the scroll bar was visible (accounting for the extra 14 pixels, or thereabouts), but rather than allowing the scroll viewer to shrink its content, the window expanded.
Hi Michael,
Thank you for your post. I have been trying to reproduce your issuer and on side it seems that everything is rendered as expanted.
I am attaching a sample application(RibbonWindow_UserControl.zip) that follows your scenario.
Please let me know, if I am missing something.
Looking forward to hearing from you.