Home >Backend Development >C++ >How Can I Add System.Windows.Interactivity to My Project Without Expression Blend?
How to add System.Windows.Interactivity without using Expression Blend?
The System.Windows.Interactivity library is often associated with Expression Blend. However, you encounter a situation where this library is missing from your project.
Solution:
While older methods may have recommended installing Expression Blend, Microsoft now offers an open source alternative.
Migration steps:
Remove references to "Microsoft.Expression.Interactions" and "System.Windows.Interactivity".
Install the Microsoft.Xaml.Behaviors.Wpf NuGet package.
XAML file: Replace the following namespace:
http://schemas.microsoft.com/expression/2010/interactivity
http://schemas.microsoft.com/expression/2010/interactions
...replaced with http://schemas.microsoft.com/xaml/behaviors
C# files: Replace the following using statement:
using Microsoft.Xaml.Interactivity;
using Microsoft.Xaml.Interactions;
...replaced with using Microsoft.Xaml.Behaviors;
The above is the detailed content of How Can I Add System.Windows.Interactivity to My Project Without Expression Blend?. For more information, please follow other related articles on the PHP Chinese website!