Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit ff9f7baf authored by Harald Martini's avatar Harald Martini
Browse files

Updated WindowHelper to size to content of usercontrol on creation

parent 89857533
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment