HowDoI - How Do I Examples 1 Adding a ScatterViewItem...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
How Do I. ..? Examples 1. Adding a ScatterViewItem Control Programmatically A ScatterView control is a container for other controls or objects of any type. It provides the framework for moving and manipulating objects on the Microsoft Surface screen. You can add items to the ScatterView control by using XAML markup or programmatically such as in response to a particular event. This article shows how you can programmatically add items to a ScatterView control. 2. Adding Video to a ScatterViewItem Control A ScatterViewItem control can accept content of any type. This article describes how you can create a ScatterViewItem control with video content. 3. Capturing and Rendering a Raw Image This example shows how to capture and render a raw image using XNA. Note: You must have a Microsoft Surface unit to run the code that is used in this article. You cannot run this code by using a separate workstation and Surface Simulator . 4. Capturing Raw Images by Using WPF This article describes how to capture and persist a raw image from the Microsoft Surface screen by using the Presentation layer of the Microsoft Surface SDK and elements of the Core layer and the System.Drawing assembly. The Microsoft Windows Presentation Foundation (WPF) enables you to create and use custom graphics, and the System.Drawing assembly includes methods for handling bitmap images. The sample application in this topics creates a SurfaceWindow control that contains a single SurfaceButton control. When you place an item on the Microsoft Surface screen and press the button, an image of the item is captured and saved. The Microsoft Surface screen does not indicate that the image has been processed, but the button glows when you press it to indicate that the application responded. The captured image is saved to a local Temp.bmp file, and the sample application is immediately ready to capture another image. The file name of the captured image is always the same (Temp.bmp), so previously saved images are overwritten every time that you press the button. Note: You must have a Microsoft Surface unit to run the code that is used in this article. You cannot run this code by using a separate workstation and Surface Simulator . 5. Combining a User Control with a ScatterViewItem Control When you host a user control in a ScatterViewItem control, your control gains all the manipulation, inertia, and scaling advantages of the ScatterViewItem. When a user performs some task with your control (such as touching a button), you might want to close the control and (optionally) the hosting ScatterViewItem control. This topic describes how to perform these tasks.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6. Creating a Continuously Panning List When you use a SurfaceScrollViewer control to view content that is larger than its viewport area, users can scroll the content by direct contact with the content itself, instead of
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/13/2012 for the course CS 91.550 taught by Professor Yanco during the Spring '11 term at UMass Lowell.

Page1 / 4

HowDoI - How Do I Examples 1 Adding a ScatterViewItem...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online