Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 9. The Intricacies of Layout > The Canvas and Touch

9.13. The Canvas and Touch

In Chapter 8 I showed you how to move elements around the screen in response to touch by altering transform objects set to the RenderTransform property. You can also move elements around a Canvas by setting the Left and Top attached properties in code.

Here’s a simple program called TouchCanvas. A Canvas hosts three Ellipse elements colored red, green, and blue:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial