|
@@ -10,7 +10,8 @@ namespace Avalonia.Diagnostics
|
|
|
{
|
|
|
public static class DevTools
|
|
|
{
|
|
|
- private static readonly Dictionary<TopLevel, Window> s_open = new Dictionary<TopLevel, Window>();
|
|
|
+ private static readonly Dictionary<TopLevel, MainWindow> s_open =
|
|
|
+ new Dictionary<TopLevel, MainWindow>();
|
|
|
|
|
|
public static IDisposable Attach(TopLevel root, KeyGesture gesture)
|
|
|
{
|
|
@@ -52,6 +53,7 @@ namespace Avalonia.Diagnostics
|
|
|
Width = options.Size.Width,
|
|
|
Height = options.Size.Height,
|
|
|
};
|
|
|
+ window.SetOptions(options);
|
|
|
|
|
|
window.Closed += DevToolsClosed;
|
|
|
s_open.Add(root, window);
|