Now, I got a Installation Window, which have a cancel button to 1) pause the storyboarding 2) popout my Cancel Window
For Cancel Window, there will be an "OK" button for me to be prompted to Failed Window.
So now I want to know how to track when the User closes the window (X) button, so I can close the Cancel Window and thus returning to Installation Window and resume my storyboarding.
So far, I've done this
private void cancel_btn_Click(object sender, RoutedEventArgs e)
{
Storyboard SB = (Storyboard)FindResource("Install");
SB.Pause();
popout_Cancel MyApp = new popout_Cancel();
MyApp.Show();
if (MyApp.OK.IsMouseCaptured == false)
{
MyApp.Close();
SB.Resume();
}
}