We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

DockingManager MVVM

Is there a way to use DockingManager in MVVM. I'm trying to bind DesiredWidthInDockedMode to a property which will control the width during runtime.

Something like: sf:DockingManager.DesiredWidthInDockedMode="{Binding MyWidth, Mode=TwoWay}"

When I resize the pane and I close the window I can read MyWidth and save it. When I reopen the window again I set MyWidth back to the saved value, but the actual width of the pane does not match what I set it at.

Thanks...

1 Reply

MM Muthalagu M Syncfusion Team February 25, 2013 12:37 PM UTC

Hi Sanir,

Thanks for using Syncfusion Products.

Since our WPF Docking Manager is not an items control and it is not possible to acheive the MVVM pattern by normal way.But this can be acheived by creating an adapter or wrapper for the Docking Manager.

Could you please refer the below article to acheive the MVVM pattern in Docking Manager.

http://www.syncfusion.com/blogs/post/MVVM-Adapter-for-WPF-Docking-Manager.aspx

Please let us know if you have any queries.

Regards,
Muthalagu

Loader.
Live Chat Icon For mobile
Up arrow icon