Summary

This chapter began by looking at the Image element, how to reference image files, and the effect on sizing by the Image.Stretch property. Setting Visual Studio’s Build Action for a file to Resource means it will be located in the assembly, whereas setting it to Content means it will sit outside the assembly in the application’s XAP file.

The chapter then explored the InkPresenter and demonstrated how to create a simple sketch app. You saw how the Background property of the InkPresenter must be assigned to register touch events.

It then moved to the MediaElement, and you saw how audio and video files can be played from the phone or streamed via the Internet. The XNA SoundEffect class is better suited to playing short sound effects. You ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.