Question about VSTA and WPF

Latest post 02-17-2012 9:37 AM by jimg. 1 replies.
  • 02-06-2012 7:02 PM

    Question about VSTA and WPF

    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 !!

     

  • 02-17-2012 9:37 AM In reply to

    • jimg
    • Top 10 Contributor
    • Joined on 04-05-2006
    • Posts 67

    Re: Question about VSTA and WPF

    Summit/Microsoft Partnership Information

    http://www.microsoft.com/visualstudio/vsta

    How will I get the technical support I need?
    For current licensees of these technologies, Microsoft will offer technical support via
    the Microsoft VSTA Technical alias vstatech@microsoft.com.

Page 1 of 1 (2 items) | RSS
Copyright Summit Software Company, 2008. All rights reserved.