如何使用 XML 在 Outlook 快速访问工具栏中显示按钮
How do you display buttons in the Outlook Quick Access Toolbar using XML
我在 VS 2012 中创建了一个新的 Outlook 2013 插件 C# VSTO 项目。我添加了一个 XML 文件来自定义功能区以添加一个带有 2 个现有按钮的新选项卡。但是我无法让按钮出现在快速访问工具栏 (QAT) 中。
下面是我写的XML。它显示新的选项卡和按钮。但不显示快速访问工具栏中的指定按钮。
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
<ribbon>
<qat>
<sharedControls>
<button idMso="NewMailMessage" visible="true" />
<button idMso="NewTask" visible="true" />
</sharedControls>
</qat>
<tabs>
<tab id="newTab" label="New Tab" insertBeforeMso="TabCalendarTableView">
<group id="newGroup" label="New">
<button idMso="NewMailMessage" size="large"/>
<button idMso="NewAppointment" size="large"/>
<button idMso="NewContact" size="large"/>
<button idMso="NewDistributionList" size="large"/>
<button idMso="NewTask" size="large"/>
<button idMso="MailNewItemMenu" size="large"/>
</group>
</tab>
</tabs>
</ribbon>
我需要更改什么才能显示快速访问工具栏中的按钮?
您需要将 startFromScratch 属性添加到功能区属性。
看看 MSDN 中的以下系列文章:
- Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
- Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
- Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
它们包含以下文本:
The Quick Access Toolbar. Can be authored only in start from scratch mode.
You can customize the Quick Access Toolbar by setting the startFromScratch attribute of the Ribbon element to true.
我在 VS 2012 中创建了一个新的 Outlook 2013 插件 C# VSTO 项目。我添加了一个 XML 文件来自定义功能区以添加一个带有 2 个现有按钮的新选项卡。但是我无法让按钮出现在快速访问工具栏 (QAT) 中。
下面是我写的XML。它显示新的选项卡和按钮。但不显示快速访问工具栏中的指定按钮。
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
<ribbon>
<qat>
<sharedControls>
<button idMso="NewMailMessage" visible="true" />
<button idMso="NewTask" visible="true" />
</sharedControls>
</qat>
<tabs>
<tab id="newTab" label="New Tab" insertBeforeMso="TabCalendarTableView">
<group id="newGroup" label="New">
<button idMso="NewMailMessage" size="large"/>
<button idMso="NewAppointment" size="large"/>
<button idMso="NewContact" size="large"/>
<button idMso="NewDistributionList" size="large"/>
<button idMso="NewTask" size="large"/>
<button idMso="MailNewItemMenu" size="large"/>
</group>
</tab>
</tabs>
</ribbon>
我需要更改什么才能显示快速访问工具栏中的按钮?
您需要将 startFromScratch 属性添加到功能区属性。
看看 MSDN 中的以下系列文章:
- Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
- Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
- Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
它们包含以下文本:
The Quick Access Toolbar. Can be authored only in start from scratch mode.
You can customize the Quick Access Toolbar by setting the startFromScratch attribute of the Ribbon element to true.