locked
How to close the PopUp In another Page RRS feed

  • Question

  • Hi,

    Say I have 2 pages : P1 and P2  and in P2 I have a PopUp1.

    in P2 , I open the popup thru a condition which requires to access data thru internet. If I quickly press the Back Button after I launch the PopUp, this PopUp wont close when P2 is opened even I have implement the following in P2

    protected override void GoBack(object sender, RoutedEventArgs e)
            {
                base.GoBack(sender, e);

                PopUp1.IsOpen = false;          

            }

    How do I close this PopUp1 in P2 ?

    Thanks

            }


    • Edited by FireDance Thursday, May 22, 2014 5:44 AM
    Thursday, May 22, 2014 5:43 AM

Answers

  • Try reversing the lines to close the popup before navigating.

    --Rob

    • Marked as answer by Anne Jing Thursday, May 29, 2014 3:44 AM
    Thursday, May 22, 2014 1:45 PM
    Moderator