Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloseEvent #84

Closed
maurosampietro opened this issue Jan 17, 2019 · 0 comments · Fixed by #100
Closed

CloseEvent #84

maurosampietro opened this issue Jan 17, 2019 · 0 comments · Fixed by #100
Milestone

Comments

@maurosampietro
Copy link

maurosampietro commented Jan 17, 2019

It would be nice if a event would be raised when the window closes via the close button or esc or if a flag could state that happend.

This way if in a wizard multiple windows are chained we can break the chain of windows to show the user:

   await ChildWindowManager.ShowChildWindowAsync( this, child0, ChildWindowManager.OverlayFillBehavior.FullWindow );
  
   if( !child0.WasClosedByEscOrCloseButton )
   {
         await ChildWindowManager.ShowChildWindowAsync( this, child1, ChildWindowManager.OverlayFillBehavior.FullWindow );
        
         if( !child1.WasClosedByEscOrCloseButton )
         {
             await ChildWindowManager.ShowChildWindowAsync( this, child2, childWindowManager.OverlayFillBehavior.FullWindow );
         }
  }

@punker76 punker76 added this to the 2.0.0 milestone Sep 13, 2019
punker76 added a commit that referenced this issue Sep 13, 2019
The new property ClosedBy indicates now which close reason occured. It's also possible to grab this directly as the result of the ShowMessageAsync method.
punker76 added a commit that referenced this issue Sep 13, 2019
(GH-84) Introduce new ClosedBy property with a close reason enumeration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants