tags:

views:

7

answers:

1

Hi... I am making a Excel Addin in VS2010.

The following code work fines if I make a winforms usercontrol

private void ThisAddIn_Startup(object sender, System.EventArgs e)
{            
    var testControlView1 = new UserControl1();
    var MyCustomPane = this.CustomTaskPanes.Add(testControlView, "Hello");
}

However I would like to make my UserControl1 be a WPF UserControl. Does anybody know how I would achieve similar functionality or an alternate approach?

As far as I can tell the CustomTaskPanes only allows Winforms Controls to be added to it.

A: 

I found this blog post that answered it great...

Mark Pearl