This project has moved and is read-only. For the latest updates, please go here.

Migrate from Version 2.x to 3.x

This topic describes how to upgrade a solution from version 2.x to version 3.x of the WPF Application Framework (WAF). It explains the breaking changes in the API and shows how to solve them.

1. The .NET Framework 4.0 is not supported anymore

The .NET Framework 4.0 is not supported anymore. In order to upgrade to the WAF 3.x libraries you need to ensure that your projects target the .NET Framework 4.5 (or newer).

2. The class ConverterCollection was renamed to SynchronizingCollection

If you have used the ConverterCollection in your solution then you need to rename it to SynchronizingCollection. This can be done via the search and replace tool of Visual Studio.

3. The static StringBuilderExtension class has been removed.

This class has provided only the method AppendInNewLine. It was used to create a multiline text from a list of strings. Please use the .NET method instead:

string.Join(Environment.NewLine, stringList);

4. The isChild argument of the ViewModel constructor has been removed.

It was possible to use a ViewModel constructor with an isChild argument. If the argument was set to true then the constructor has not set itself as DataContext to the associated view. When a class should not set itself as DataContext automatically then inherit from Model instead of ViewModel.

Last edited Aug 25, 2013 at 3:25 PM by jbe2277, version 1

Comments

jbe2277 Aug 25, 2013 at 3:26 PM 
Please use Discussions or Issue Tracker for Feedback.