title: How to Bind command to Loaded event of form
body: <p>I am trying to run some code when the main form is loaded. I used the code <a href="https://stackoverflow.com/questions/17933102/bind-command-to-loaded-event-of-view">here</a>. I am using wpf with .NET core 3.1 using the MVVM pattern. When I try to add the nuget package <code>System.Windows.Interactivity</code> I get an error <code>This package may not be fully compatible with your project</code>. I am assuming the issue is the version of .NET I am using. Is there a way to make this work for .NET Core 3.1?</p>