Exemplo n.º 1
0
        public ExtensionWindow() : base(null)
        {
            Caption = "TestR Extension";

            // This is the user control hosted by the tool window; Note that, even if this class implements IDisposable,
            // we are not calling Dispose on this object. This is because ToolWindowPane calls Dispose on
            // the object returned by the Content property.
            Content = new ExtensionWindowControl();
        }
Exemplo n.º 2
0
        public ExtensionWindow()
            : base(null)
        {
            Caption = "TestR Extension";

            // This is the user control hosted by the tool window; Note that, even if this class implements IDisposable,
            // we are not calling Dispose on this object. This is because ToolWindowPane calls Dispose on
            // the object returned by the Content property.
            Content = new ExtensionWindowControl();
        }
Exemplo n.º 3
0
 public static void TestWindow()
 {
     var window = new Window();
     var control = new ExtensionWindowControl();
     control.HorizontalContentAlignment = HorizontalAlignment.Stretch;
     control.VerticalContentAlignment = VerticalAlignment.Stretch;
     window.Content = control;
     window.Width = 450;
     window.Height = 600;
     window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     window.ShowDialog();
 }
Exemplo n.º 4
0
        public static void TestWindow()
        {
            var window  = new Window();
            var control = new ExtensionWindowControl();

            control.HorizontalContentAlignment = HorizontalAlignment.Stretch;
            control.VerticalContentAlignment   = VerticalAlignment.Stretch;
            window.Content = control;
            window.Width   = 450;
            window.Height  = 600;
            window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            window.ShowDialog();
        }