O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Passing data between pages

It is often necessary to pass some data from one page to another. It can be accomplished easily using another version of the Navigate method, called on the Frame property, as explained in this recipe.

Getting ready

To complete this recipe, you need the project with two pages, represented by MainPage and ProductsPage classes. The first page should contain the button with the Our products caption, while the other--the list of products and categories as well as the Go back button. The structure of pages is presented as follows:

Getting ready

It is worth mentioning that the page with products requires an identifier of the category, which ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required