类型“Microsoft.VisualStudio.Tools.Office.Ribbon.View.GenericRibbonView”没有名为“Factory”的属性。

来源:互联网 发布:mysql区分大小写查询 编辑:程序博客网 时间:2024/05/29 02:24

Far as I know, is known issue of the VS2010 Ribbon designer. The walkaround is to put that logic into the Ribbon constructor; you will need to move this constructor from the designer.cs file to the ribbon.cs file:

 

public YourRibbon()

: base(Globals.Factory.GetRibbonFactory())

{

InitializeComponent();

this.ribExtensions.Position = this.Factory.RibbonPosition.AfterOfficeID("GroupChanges");

}

 

阅读全文
0 0
原创粉丝点击