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(); }
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(); }
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(); }
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(); }