I have a WPF window that I am launching from inside of a winform app. I only want to allow once instance of that WPF window to be open at a time, and not warn that user if t
Here's something that's working for me.
private About aboutWin; private void AboutOpenClicked(object sender, RoutedEventArgs e) { if(aboutWin == null) { aboutWin = new About(); aboutWin.Closed += (a, b) => aboutWin = null; aboutWin.Show(); } else { aboutWin.Show(); } }