(X) Hide this
    • Login
    • Join
      • Generate New Image
        By clicking 'Register' you accept the terms of use .

Windows 8 XAML Tips - Popup.ShowAsync()

(1 votes)
0 comments   /   posted by Silverlight Show on Nov 13, 2013
Tags:   windows-8 , win8dev , fons-sonnemans
Read original post by Fons Sonnemans at Reflection it Blog

In XAML applications you can use a Popup control to displays content on top of existing content. To show a Popup you must set the IsOpen property to true. You can subscribe yourself to the Closed eventhandler which is fired when the IsOpen property is (re)set to false. You can use this event to execute extra logic when the Popup is closed.

To make this easier I have created an ShowAsync() extension method which does this for you. I got my inspiration for this solution from this Awaiting Storyboard completion blog post by Nigel Sampson. He uses this technique to begin a storyboard using a BeginAsync() extension method.


No comments

Add Comment

Login to comment:
  *      *       

Our News on Twitter