Saturday, November 14, 2009

AvalonDock Layout Persistance

Persisting layout using AvalonDock is quite simple. Just call the following methods:

  • DockingManager.SaveLayout(path)
  • DockingManager.RestoreLayout(path)

It’s simple, but it did not work for me. My fault was also simple. You must define the x:Name=”name attribute on the DockableContents and everything will work fine.