2010-09-01 65 views
2

我正在开发一个插件到Microsoft Outlook。如果我使用的WinForms用户控件将WPF UserControl添加到TaskPane

下面的代码工作正常:

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

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

据我可以告诉CustomTaskPanes只允许将Winforms控件添加到它。

回答

相关问题