The following XML adds a new button on Backstage. The button will be added at the end as we didn't specify a location.






















Visual Studio .NET Tips and Tricks, VB.NET Code Samples, C# Code Snippets, ASP.NET Code Samples, .NET Tips and Tricks, C# Tips & Tricks, Visual Studio 2010, .NET Framework Code Samples, VB.NET Tips & Tricks
int iWindowWidth = Screen.PrimaryScreen.Bounds.Width; int iWindowHeight = Screen.PrimaryScreen.Bounds.Height; this.Size = new Size(iWindowWidth, iWindowHeight ) ;
public System.Drawing.Bitmap GetButtonImage(Office.IRibbonControl control) { switch(control.Id) { case "btnmoscow": return Properties.Resources.moscow; . . , default: return null; } }