app.view_name.ShowDialog(); command. If I click the button to open the problem windows and then close it, if I attempt to reopen by clicking the button once again I get this exception:System.InvalidOperationException: 'Cannot set Visibility or call Show, ShowDialog, or WindowInteropHelper.EnsureHandle after a Window has closed.'.