Opening and Closing the Popup

This section describes the APIs that are used to open and close a popup.

Popup.OpenPopup

The following API is used to open a popup and display the page that is defined in the URI object:

Popup.Openpopup(URI object)

For example:

Popup.OpenPopup (new Uri("http://google.co.il"));

Popup.OpenPopup (new Uri("http://cnn.com"));

Currently, as only one popup is available at any given time, opening a popup overrides the content of the former one. In the above example, the CNN page will replace the Google page.

Popup.ClosePopup

The following API is used to close the popup that is currently open:

Popup.ClosePopup();