private void InfoWindow_Closed(object sender, EventArgs e) { infoWindow.IsVisibleChanged -= InfoWindow_IsVisibleChanged; infoWindow.Closed -= InfoWindow_Closed; infoWindow = null; }
private void ShowInfoWindow() { if (infoWindow == null) { infoWindowViewModel.UpdateInfo(); infoWindow = new InfoWindow(infoWindowViewModel); infoWindow.IsVisibleChanged += InfoWindow_IsVisibleChanged; infoWindow.Closed += InfoWindow_Closed; infoWindow.Show(); } else { infoWindow.WindowActivate(); } }