Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
Ribbon Window is resizing in a jarring manner ...
posted

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.

Parents
No Data
Reply
  • 180
    posted

    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.

Children