Hello,
I try to integrate VSTA with a little application I've written. I got some question, because I'm tired to pass all my night without fixing this problems. I want to useWPF UserControl in my WPF App.
Can I use directly WPF types with VSTA (FrameworkElement, UIElement) ?
I declare in Application.cs, which reprensents my running session
public System.Windows.UIElement GetAddInUI02(String UIType)
If I use
(1) AddIn = AddInToken[0].Activate<IEntryPoint>(AddInSecurityLevel.FullTrust);
GetAddInUI02 returns A __TransparentProxy instance, which I can never cast to something.
If I use
(2) AddIn = AddInToken[0].Activate<IEntryPoint>(AppDomain.CurrentDomain);
then everything works finebut I can't unload my assembly with the standard code (from ShapeApp and the same for (1)), so I can't recompile my assembly with VSTA. I've to stopmy app, delete my compiled directory, restart my app, recompile, etc...
Is there a solution for me? I don't understand...
Thanks !!