Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Changed the OnClosed event handler to OnClosing #7

Merged
merged 1 commit into from

2 participants

John Bubriski Phil Haack
John Bubriski

Otherwise the window already closed and the WindowPlacement variables are all 0.

John Bubriski jbubriski Changed the OnClosed event handler to OnClosing, otherwise the window…
… is already closed and the WindowPlacement variables are all 0.
9c00862
Phil Haack Haacked merged commit 4d28bfb into from
Phil Haack
Owner

Thanks!

John Bubriski

No problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 9, 2012
  1. John Bubriski

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

    jbubriski authored
    … is already closed and the WindowPlacement variables are all 0.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/WindowPlacementRxDemo/MainWindow.xaml.cs
4 src/WindowPlacementRxDemo/MainWindow.xaml.cs
View
@@ -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);
}
}
}
Something went wrong with that request. Please try again.