Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
MyToolWindow.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 using System.Collections;
5 using System.ComponentModel;
6 using System.Drawing;
7 using System.Data;
8 using System.Windows;
9 using System.Runtime.InteropServices;
10 using Microsoft.VisualStudio.Shell.Interop;
11 using Microsoft.VisualStudio.Shell;
12 
13 namespace SiliconStudio.Paradox.VisualStudio
14 {
15  /// <summary>
16  /// This class implements the tool window exposed by this package and hosts a user control.
17  ///
18  /// In Visual Studio tool windows are composed of a frame (implemented by the shell) and a pane,
19  /// usually implemented by the package implementer.
20  ///
21  /// This class derives from the ToolWindowPane class provided from the MPF in order to use its
22  /// implementation of the IVsUIElementPane interface.
23  /// </summary>
24  [Guid("ddd10155-9f63-4694-95ce-c7ba2d74ad46")]
26  {
27  /// <summary>
28  /// Standard constructor for the tool window.
29  /// </summary>
30  public MyToolWindow() :
31  base(null)
32  {
33  // Set the window title reading it from the resources.
34  this.Caption = Resources.ToolWindowTitle;
35  // Set the image that will appear on the tab of the window frame
36  // when docked with an other window
37  // The resource ID correspond to the one defined in the resx file
38  // while the Index is the offset in the bitmap strip. Each image in
39  // the strip being 16x16.
40  this.BitmapResourceID = 301;
41  this.BitmapIndex = 1;
42 
43  // This is the user control hosted by the tool window; Note that, even if this class implements IDisposable,
44  // we are not calling Dispose on this object. This is because ToolWindowPane calls Dispose on
45  // the object returned by the Content property.
46  base.Content = new MyControl();
47  }
48  }
49 }
Interaction logic for MyControl.xaml
MyToolWindow()
Standard constructor for the tool window.
Definition: MyToolWindow.cs:30
This class implements the tool window exposed by this package and hosts a user control.
Definition: MyToolWindow.cs:25