When migrating the Visual Studio projects from .Net
Framework 4.8 to .Net 5, you may encounter in the following error regarding Interaction.Triggers.
And update the namespace ( if needed)
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
to
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"