1
Vote

Trying to get this to run in VS 2015

description

Looking at trying to use Avalon Wizard in a new project (using VS 2015) and when I try to run the sample I get an error that states: "The type 'WizardMvvmBehavior' from assembly 'AvalonWizard.Mvvm' is built with an older version of the Blend SDK, and is not supported in a Windows Presentation Framework 4 project"

The project that I was hoping to use the wizard in is .NET 4.5.2 so I took the source from here and set up the necessary project structure and recompiled.

It all recompiles with minor changes and I get a set of assemblies which I then add to my project. The code looks fine (it gets a green check from R#) but when I run it I receive the error:

Exception thrown: 'System.Windows.Markup.XamlParseException' in PresentationFramework.dll

Additional information: 'Add value to collection of type 'System.Windows.Interactivity.BehaviorCollection' threw an exception.' Line number '38' and line position '21'.

The offending lines are:
<aw:Wizard WizardStyle="{Binding SelectedStyle}">
        <i:Interaction.Behaviors>
            <aw:WizardMvvmBehavior
                ItemsSource="{Binding Pages}"
                Controller="{Binding WizardController}" />
        </i:Interaction.Behaviors>
    </aw:Wizard>
(It breaks on the Controller= line)

comments