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
365
ArgumentException with XamDockManager 14.1
posted

Hello, we've just updated to 14.1 and the XamDockManager throws when you click a resizer bar. It's easy to recreate, just dock a window below another one then click a horizontal resizer.

Just configure window with two splitpanes as such:

<d:XamDockManager>
<d:XamDockManager.Panes>
<d:SplitPane>
<d:ContentPane Header="Pane1"></d:ContentPane>
</d:SplitPane>
<d:SplitPane>
<d:ContentPane Header="Pane2"></d:ContentPane>
</d:SplitPane>
</d:XamDockManager.Panes>
</d:XamDockManager>

Dock one of the windows below the other and click the resizer. You get the following exception.

An unhandled exception of type 'System.ArgumentException' occurred in WindowsBase.dll Additional information: '100,NaN' is not a valid value for property 'RelativeSize'.

Parents
  • 138253
    Offline posted

    Hello Mark,

     

    Thank you for your post. I have been looking into it and I created a sample project for you using your code and everything seems to work ok on my side. I tested the sample with the RTM (1015) and the latest (2027) service release of 14.1. I also attached a video of the result. Please let me know if you are able to reproduce the issue with the sample and what version are you using.

     

    Looking forward for your reply.

    XamDockManagerSample.zip
Reply Children