Skip to content
Browse files

Changed the OnClosed event handler to OnClosing, otherwise the window…

… is already closed and the WindowPlacement variables are all 0.
  • Loading branch information...
1 parent 2208a88 commit 9c00862a685297b01fd29bef8823c523e7fa43e1 @jbubriski jbubriski committed Apr 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/WindowPlacementRxDemo/MainWindow.xaml.cs
View
4 src/WindowPlacementRxDemo/MainWindow.xaml.cs
@@ -34,10 +34,10 @@ protected override void OnSourceInitialized(EventArgs e)
this.RestorePlacement();
}
- protected override void OnClosed(EventArgs e)
+ protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
{
this.SavePlacement();
- base.OnClosed(e);
+ base.OnClosing(e);
}
}
}

0 comments on commit 9c00862

Please sign in to comment.
Something went wrong with that request. Please try again.