/// <summary> /// Constructor for ToolWindowPane. /// Initialization that depends on the package or that requires access /// to VS services should be done in OnToolWindowCreated. /// </summary> public PersistedWindowPane() : base(null) { // Set the image that will appear on the tab of the window frame when docked with another window. // KnownMonikers is a set of image monkiers that are globablly recognized by VS. These images can be // used in any project without needing to include the source image. BitmapImageMoniker = Microsoft.VisualStudio.Imaging.KnownMonikers.Search; // Add the toolbar by specifying the Guid/MenuID pair corresponding to // the toolbar definition in the vsct file. ToolBar = new CommandID(GuidsList.guidClientCmdSet, PkgCmdId.IDM_MyToolbar); // Specify that we want the toolbar at the top of the window ToolBarLocation = (int)VSTWT_LOCATION.VSTWT_TOP; // Creating the user control that will be displayed in the window - change this to content control = new PersistedWindowWPFControl(); Content = control; }
/// <summary> /// Constructor for ToolWindowPane. /// Initialization that depends on the package or that requires access /// to VS services should be done in OnToolWindowCreated. /// </summary> public PersistedWindowPane() : base(null) { // Set the image that will appear on the tab of the window frame when docked with another window. // KnownMonikers is a set of image monkiers that are globablly recognized by VS. These images can be // used in any project without needing to include the source image. BitmapImageMoniker = Microsoft.VisualStudio.Imaging.KnownMonikers.Search; // Add the toolbar by specifying the Guid/MenuID pair corresponding to // the toolbar definition in the vsct file. ToolBar = new CommandID(GuidsList.guidClientCmdSet, PkgCmdId.IDM_MyToolbar); // Specify that we want the toolbar at the top of the window ToolBarLocation = (int)VSTWT_LOCATION.VSTWT_TOP; // Creating the user control that will be displayed in the window - change this to content control = new PersistedWindowWPFControl(); Content = control; }
/// <summary> /// Constructor for ToolWindowPane. /// Initialization that depends on the package or that requires access /// to VS services should be done in OnToolWindowCreated. /// </summary> public PersistedWindowPane() : base(null) { // Set the image that will appear on the tab of the window frame // when docked with another window. // The resource ID corresponds to the one defined in Resources.resx // while the Index is the offset in the bitmap strip. Each image in // the strip is 16x16. this.BitmapResourceID = 301; this.BitmapIndex = 3; // Add the toolbar by specifying the Guid/MenuID pair corresponding to // the toolbar definition in the vsct file. this.ToolBar = new CommandID(GuidsList.guidClientCmdSet, PkgCmdId.IDM_MyToolbar); // Specify that we want the toolbar at the top of the window this.ToolBarLocation = (int)VSTWT_LOCATION.VSTWT_TOP; // Creating the user control that will be displayed in the window - change this to content control = new PersistedWindowWPFControl(); this.Content = control; }