3

I am developing an addin to Microsoft Outlook.

The following code works fine if I use an winforms UserControl:

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

How can I do it with a WPF UserControl, instead? Does anybody know how I would achieve similar functionality?

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

Robaticus
  • 22,857
  • 5
  • 54
  • 63
Luis
  • 2,665
  • 8
  • 44
  • 70

1 Answers1

2

Just found a solution, https://stevepietrekweblog.wordpress.com/2009/03/24/vsto-display-wpf-user-control-in-custom-task-pane/

This update was just to update the link.

Luis
  • 2,665
  • 8
  • 44
  • 70