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

Adding an image

Modern applications often contain attractive designs that include images. In this recipe, you will learn how to present images in your application using the Image control.

Getting ready

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

How to do it...

To add a .jpg file to the project, add the Image control, and handle the Tapped event, perform the following steps:

  1. Add the Image.jpg file to the Assets directory within the project. To do so, refer to these steps:
    1. Navigate to Add | Existing Item... from the context menu of the Assets node in the Solution Explorer window.
    2. Choose the file in the Add Existing Item window.
    3. Click on the Add button.

  2. Place the Image control on the page and adjust its appearance by ...

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