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

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");

}

 

你可能感兴趣的:(VSTO,C#)