These are chat archives for punker76/MahApps.Metro.SimpleChildWindow

2nd
Sep 2015
Jon Alza
@jonny123d
Sep 02 2015 07:47

I have changed the code:

private async void ConnectClick(object sender, RoutedEventArgs e)
{
    if (this.connectWindow == null)
    {
        this.connectWindow = new ConnectWindow();
        this.connectWindow.UserLoggedIn += this.ConnectWindowUserLoggedIn;
        this.connectWindow.ClosingFinished += this.ConnectWindowClosingFinished;
    }
    await this.ShowChildWindowAsync(this.connectWindow, ChildWindowManager.OverlayFillBehavior.FullWindow);
}
private void ConnectWindowClosingFinished(object sender, RoutedEventArgs e)
{
    if (this.connectWindow.SuccessfulResult)
    {
        this.connect();
    }
}

Now I can get the SuccessfulResult property when the SimpleChildWindow is closed.