Error loading WPF Custom Control

I am having problems loading a WPF control from a dll generated in Visual Studio. In version 9.2 I have no problem loading this control. I have already added all the dll’s that are used in this control. How should I load a wpf from a dll in version 10?

We use a different .NET Framework in v10 compared to v9.2.
That means you’ll have to compile your .DLL changing the TargetFramework to .NET Standard 2.0 for Windows-only solutions, and .NET 8.0 for multiplatform solutions.