我们已经给出了所有所需尺寸(16,32,64)的图标,甚至 url 都是正确的,但是当未加载插件时,所有图标仍然显示为默认图像,如在 office 365 word 中完美加载的图像中所示。清单文件
<Control xsi:type="Button" id="Contoso.setting">
<Label resid="Contoso.setting.Label" />
<Supertip>
<Title resid="Contoso.setting.Label" />
<Description resid="Contoso.setting.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Contoso.setting.Icon16" />
<bt:Image size="32" resid="Contoso.setting.Icon32" />
<bt:Image size="64" resid="Contoso.setting.Icon64" />
<bt:Image size="80" resid="Contoso.setting.Icon80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<TaskpaneId>Button2Id1</TaskpaneId>
<!--Provide a url resource id for the location that will be displayed on the task pane -->
<SourceLocation resid="Contoso.Taskpane5.Url" />
</Action>
</Control>