문제

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.

도움이 되었습니까?

해결책

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top