1

在潜在客户表单功能区中,我在 VisualRibbonEditor 的帮助下添加了两个按钮。之后我在 VisualRibbonEditor 的帮助下删除了。但是当我看到 RibbonDiffXML 时,两个按钮仍然存在,即使它们在 Ribbon 中不可见。

这是我的问题

  1. 如何删除这两个按钮条目?我必须创建一个新的解决方案吗?

  2. 我想添加一个新按钮并自定义 ConvertLead 功能。如果没有 VisualRibbonEditor,我该如何手动实现,即借助解决方案文件。

4

1 回答 1

2

The xml is just that, xml. So if you have an element in it you no longer want, edit the xml by following these steps.

  1. Create a new solution with just the lead entity in it (or if the ribbon editor created one, you can reuse that one, it's just easier to work with less xml rather than more).
  2. Open the solution zip, find the lead entity xml file, and edit it with you're favorite xml editor, deleting the elements you no longer want/need.
  3. Save your changes back to the zip file, then import the solution.

As far as editing the ribbon, here is a great site to get you started:

于 2012-07-19T20:11:55.107 回答