To show a pop-up page you can use:
// This will just create an instance of the specified target page type and then call the second overload (see below).await Nav.ShowPopup<TargetPage>();
When you provide a view to be opened in a pop-up, Zebble will wrap your view in an instance of Popup class which is a page with some default style to make it look like a pop-up on top of an existing page.
NOTE: Many of the existing Zebble features such as Alert, ItemPicker, etc, internally use the Popup API.
You can use an anonymous object to send parameters:
On the target pop-up page you will normally have a button to close the pop-up. That button should call the following to close itself:
There are cases where the parent host page needs to open a pop-up page, which in turn gets some input from the user, which should be then passed back to the host page. Zebble provides you with other overloads of the Nav pop-up methods to help you achieve that.
// Now you can use "result".