Hello, I'm trying to deal with the add-in application. I want to make a small application on the plugins. Isolating each add-in to the new AppDomain. I load wpf-controls through:
FrameworkElementAdapters.ViewToContractAdapter FrameworkElementAdapters.ContractToViewAdapter
but when AppDomain.unload () the memory is not unloaded (and when closing the application, the error falls: The final application domain is unloaded), probably somewhere there is a connection. If the plugin is done without wpf control, then everything is fine - the memory is unloaded and there are no errors when closing the application.
Question: how to load wpf controls from one AppDomain to another correctly?
PS: not using AddInStore from framework System.AddIn