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

Placing a control

The automatically generated page does not contain any content that could be interesting to a user. For this reason, it is important to learn how to place a new control.

By default, you have access to many controls that are available out of the box, such as a button, textbox, checkbox, list view, progress bar, calendar, or web view. Of course, these are only examples of the available controls. You can browse the full list in the Toolbox window within the IDE.

In this recipe, you will learn how to add the first button to the page.

Getting ready

To step through this recipe, you only need the automatically generated project.

How to do it...

To place a control on the page, you need to perform the following steps:

  1. Double-click on the MainPage.xaml ...

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