/// <summary> /// Constructor for ToolWindowPane. /// Initialization that depends on the package or that requires access /// to VS services should be done in OnToolWindowCreated. /// </summary> public DynamicWindowPane() : 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; // Creating the user control that will be displayed in the window control = new DynamicWindowWPFControl(); 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 DynamicWindowPane() : 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 = 1; // Creating the user control that will be displayed in the window control = new DynamicWindowWPFControl(); this.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 DynamicWindowPane() : base(null) { Trace.WriteLine(String.Format(CultureInfo.CurrentCulture, "Entering constructor for class {0}.", this.GetType().Name)); // 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 = 1; // Creating the user control that will be displayed in the window control = new DynamicWindowWPFControl(); this.Content = control; }