我开发的插件到Microsoft Outlook。

下面的代码工作正常,如果我使用的Winforms用户控件:

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

我如何与一个WPF用户控件做到这一点,而不是?没有任何人知道我会怎样实现类似的功能?

据我可以告诉CustomTaskPanes只允许的Winforms控制要被添加到它。

有帮助吗?

解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top