I was trying to replace Blend with nuget package Microsoft.Xaml.Behaviors.Wpf so to continue using System.Windows.Interactivity.dll.
Here is the solution I tried.How to add System.Windows.Interactivity to project?
To save you a click, this is the main steps to migrate:
- Remove reference to “Microsoft.Expression.Interactions” and “System.Windows.Interactivity”
- Install the Microsoft.Xaml.Behaviors.Wpf NuGet package.XAML files
- replace the xmlns namespaces http://schemas.microsoft.com/expression/2010/interactivity and http://schemas.microsoft.com/expression/2010/interactions with http://schemas.microsoft.com/xaml/behaviors
- C# files replace the usings in c# files “Microsoft.Xaml.Interactivity” and “Microsoft.Xaml.Interactions” with “Microsoft.Xaml.Behaviors”
after removing reference to “Microsoft.Expression.Interactions” and “System.Windows.Interactivity”, The following code report a error and I don't know how to resolve it. Please advise, thanks.
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" //line 3 xmlns:ei="http://schemas.microsoft.com/xaml/behaviors" >
Severity Code Description Project File Line Suppression StateError XLS0418 Assembly 'System.Windows.Interactivity' was not found. Verify that you are not missing an assembly reference. Also, verify that your project and all referenced assemblies have been built. License C:\GitHub\Dependency\licenseAPI\License\License\Assets\Modern_Resource_Dictionary.xaml 3