Outlook加载项+;WPF
有人知道如何在Outlook加载项中使用WPF吗?我读了一些博客文章,意识到可以在Outlook加载项项目中添加WPF控件。我只想在Outlook加载项中承载一个完整的WPF应用程序。简单当outlook功能区按钮单击时,它应该打开一个WPF应用程序,而不是windows窗体中承载的WPF控制器,可以这样做吗 编辑答案:Outlook加载项+;WPF,wpf,wpf-controls,outlook-addin,Wpf,Wpf Controls,Outlook Addin,有人知道如何在Outlook加载项中使用WPF吗?我读了一些博客文章,意识到可以在Outlook加载项项目中添加WPF控件。我只想在Outlook加载项中承载一个完整的WPF应用程序。简单当outlook功能区按钮单击时,它应该打开一个WPF应用程序,而不是windows窗体中承载的WPF控制器,可以这样做吗 编辑答案: 要在outlook加载项项目中使用WPF,请首先将WCF Usercontroller添加到项目中,并将.XAML文件和.CS文件中的“Usercontroller”更改为“W
要在outlook加载项项目中使用WPF,请首先将WCF Usercontroller添加到项目中,并将.XAML文件和.CS文件中的“Usercontroller”更改为“Window”。然后你就完成了,你可以用WCF做任何你想做的事情。 更改此>>
<UserControl x:Class="AccessCachedContactsTest.UserControl2"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
</Grid>
</UserControl>
<UserControl x:Class="AccessCachedContactsTest.UserControl2"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
</Grid>
</UserControl>
对此>>
<Window x:Class="AccessCachedContactsTest.UserControl2"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
</Grid>
</Window>
并将.xaml.cs文件的根类更改为“窗口” 要在outlook加载项项目中使用WPF,请首先将WPF UserControl添加到项目中,并将.XAML文件和.CS文件中的“UserControl”更改为“Window”。然后你就完成了,你可以用WPF做任何你想做的事情。更改此>>
<UserControl x:Class="AccessCachedContactsTest.UserControl2"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
</Grid>
</UserControl>
<UserControl x:Class="AccessCachedContactsTest.UserControl2"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
</Grid>
</UserControl>
对此>>
<Window x:Class="AccessCachedContactsTest.UserControl2"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
</Grid>
</Window>
还可以将.xaml.cs文件的根类更改为“窗口”。所以您只想从Outlook启动应用程序?应用程序是否与Outlook有任何关系?此方法是否有任何警告?它似乎很好用,但我注意到这个问答收到的“分数”是多么少……它对我很好用,我有一个没有任何问题的有效解决方案。没有其他直接的方法可以做到这一点,即使我做了很多研究,最终还是使用了这种方法:)有没有一个最低限度的outlook版本可以使用这种方法?(outlook 2010++或outlook 2013++)