Skip to content

Upgrading to V4.0 or later

Dirkster99 edited this page Jun 25, 2020 · 6 revisions

Version 4.0 - Back to the Roots

The release of AvalonDock Version 4.0 introduces 2 breaking changes:

Namespace Change

The release of AvalonDock Version 4.0 introduces a small breaking change, which is that we are going back to using the namespace names and library names as they were used in AvalonDock Version 2.0 and earlier releases.

This breaking change is small because its easy to adjust in a client application. Nevertheless, its relevant for anyone:

  • changing from the Xceed project to this project
  • upgrading to version 4.0 or later from version 2.1 - version 3.6.2 (of this project)

To upgrade on either of the above paths, you should:

You typically want to search and replace these strings in *.cs and *.xaml files. But there may be other files depending on your project. Here are the sample references and search/replace dialogs that I've used to adjust Edi for this breaking change:

I took a note of the above NuGet references, uninstalled them, installed the same references for version 4.0, and implemented the search and replace dialogs as shown below.

Here is the actual commit necessary to implement this upgrade in Edi.

Reference

Here is a reference to the commit that introduced this breaking change:

Serializing Floating Document Windows

AvalonDock version 4.0 introduced a breaking change in which previously serialized layouts containing a floating document window cannot be deserialized in version 4.0. See this issue entry for more details and a an upgrade solution.

Demo Projects

Controls

Layout Models

Interfaces

Class Designs

Bugs

Manual Tests

Clone this wiki locally