Update WPF Interaction Triggers in from .Net Framework 4.8 to .Net 5

 

When migrating the Visual Studio projects from .Net Framework 4.8 to .Net 5, you may encounter  in the following error regarding Interaction.Triggers.

 Error      XDG0008             The name "Interaction" does not exist in the namespace "http://schemas.microsoft.com/xaml/behaviors".

 The one solution to fix it is to install “Microsoft.Xaml.Behaviors.Wpf” from Nuget

And update the namespace ( if needed)

xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"

to

             xmlns:i="http://schemas.microsoft.com/xaml/behaviors"

Comments

Popular posts from this blog

Prevent WPF Global Keyboard Hook from stops working after hitting keys a while C# .NET

Generate ArcGIS Token By URL Request From ArcGIS Portal, Federated Environment , ESRI JS API and Angular snippets

Solution: IntelliJ not recognizing a particular file correctly, instead its stuck as a text file