public bool ShowImportWizard(ImportDataOptions options = null) { var vm = IoC.Get <ImportDataWizardViewModel>(); vm.Init(options); var dialogOptions = new DialogOptions { Width = 800, MinWidth = 600, Height = 700, MinHeight = 500, SizeToContent = SizeToContent.Manual, ResizeMode = ResizeMode.CanResizeWithGrip } .SizeToFit(); return(_windowManager.ShowDialog(vm, null, dialogOptions.Value) == true); }
public bool OpenDatabaseProperties(DatabaseReference database) { var vm = IoC.Get <IDatabasePropertiesView>(); vm.Init(database); var dialogOptions = new DialogOptions { Width = 480, MinWidth = 480, MinHeight = 740, MaxHeight = SystemParameters.VirtualScreenHeight - 160, SizeToContent = SizeToContent.Height, ResizeMode = ResizeMode.CanResize, ShowMaxRestoreButton = false } .SizeToFit(); return(_windowManager.ShowDialog(vm, null, dialogOptions.Value) == true); }