diff --git a/VECTO3GUI2020/Helper/WindowHelper.cs b/VECTO3GUI2020/Helper/WindowHelper.cs index 1e56f7c2a28c96993ea963584e8b4a016b3eaf9b..b155d6f8e3b6ea61c98abd55667c5994e934f134 100644 --- a/VECTO3GUI2020/Helper/WindowHelper.cs +++ b/VECTO3GUI2020/Helper/WindowHelper.cs @@ -14,14 +14,17 @@ namespace VECTO3GUI2020.Helper Content = viewModel, Width = 800, Height = 600, + SizeToContent = SizeToContent.WidthAndHeight, WindowStartupLocation = WindowStartupLocation.CenterScreen }; + if (viewModel is IViewModelBase vmBase) { window.Title = vmBase.Title; } window.Show(); + window.SizeToContent = SizeToContent.Manual; }