Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How to reference System.Windows.Interactivity.dll from a nuget package in ResourceDictionary

$
0
0

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:

  1. Remove reference to “Microsoft.Expression.Interactions” and “System.Windows.Interactivity”
  2. Install the Microsoft.Xaml.Behaviors.Wpf NuGet package.XAML files
  3. 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
  4. 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


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>