VSTO Addin for Outlook 2010 中的自定义功能区不显示 [英] Custom Ribbon in VSTO Addin for Outlook 2010 doesn't display

查看:27
本文介绍了VSTO Addin for Outlook 2010 中的自定义功能区不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有功能区的用于 Outlook 2010 的最小 VSTO 插件.我唯一的目标是显示一个没有功能的功能区(通过设计器创建).从我从 MSDN 功能区中可以看出的一点点,默认情况下应该会自动显示,也许需要调整选项卡的 ControlIdType/CustomId 属性.

I've got a minimal VSTO Addin for Outlook 2010 with a ribbon. My only goal is to display a ribbon (created via designer) with no functionality. From what little I can tell from MSDN ribbons should just automatically be displayed by default, perhaps with tweaking ControlIdType/CustomId properties for tabs.

唉,调整这些属性没有任何作用——Outlook 加载和显示没有选项卡.功能区加载器中显示的一个简单消息框显示它从未被触发.此外,我还没有看到任何关于需要手动告诉 Outlook 显示选项卡的信息资源(教程、演练、概述等).

Alas, tweaking these properties does nothing -- Outlook loads and displays no tab. A simple message box displayed in the ribbon loader reveals it never is triggered. Additionally, I haven't seen any information resources (tutorials, walkthroughs, overviews, etc..) that say anything about needing to manually tell Outlook to display tabs.

  1. 如何显示标签?
  2. 除了 MSDN 之外,还有其他适合 VSTO 新手的好资源吗?

推荐答案

要显示功能区,请在代码的基础功能区上将 RibbonType 属性更改为 Microsoft.Outlook.资源管理器.

To get your ribbon displayed, on the base ribbon in your code change the RibbonType property to be Microsoft.Outlook.Explorer.

这篇关于VSTO Addin for Outlook 2010 中的自定义功能区不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆