Export (0) Print
Expand All

Surface Toolkit for Windows Touch Beta Overview

The Microsoft Surface Toolkit for Windows Touch Beta provides a collection of resources that enable you to create touch-enabled applications using Windows Presentation Foundation (WPF). Before you can use the toolkit to create an application, you must have the following software installed on your computer:

  • Microsoft Windows 7 operating system

  • Microsoft Visual Studio 2010 or Microsoft Visual C# 2010 Express Edition

  • Microsoft .NET 4.0

The .NET 4.0 framework and the Surface Toolkit support various input methods such as mouse, stylus, and touch. With the Surface Toolkit , you can develop an application that supports various types of input. However, to test your application in a touch-enabled environment, your computer must have a touch-screen digitizer.

Toolkit Contents

The Surface Toolkit contains the following resources:

 

Resource Description

Reference assemblies

These assemblies provide the classes that you need to create a touch-enabled application.

Visual Studio project and item templates

These templates enable you to quickly create a touch-enabled application. When you create a project by selecting the Surface template, your project automatically includes all of the necessary references and resources.

Sample applications

Sample applications are fully functional applications that you can build and run. These applications showcase various features of the Surface environment. You can run these applications to see Surface functionality in action, and examine the source code to see how the applications perform certain tasks.

Documentation

The documentation for the Surface Toolkit includes short examples of how to perform various programming tasks, longer and more detailed examinations of various programming scenarios, and a detailed API reference. For more information, see Surface Toolkit for Windows Touch Beta.

noteNote
When you are ready to distribute an application that you have created with the Surface Toolkit , download the Microsoft Surface Toolkit Runtime for Windows Touch Beta and include it with your installation package. The Surface Toolkit Runtime contains the reference assemblies that are required to run your application.

Surface Controls

Your touch-enabled application will usually contain one or more Surface controls. Some of these controls are specialized counterparts to WPF controls, and others enable you to include functionality in your application in ways that have no WPF counterpart. The following table summarizes the controls that are included in the Surface Toolkit .

 

Control Description

LibraryBar

The LibraryBar control enables you to list items horizontally, group items into several groups, and scroll groups. By default, the LibraryBar control supports drag-and-drop operations. For more information, see Using the LibraryBar Control and Using Drag-and-Drop with the LibraryBar and LibraryStack Controls.

LibraryContainer

The LibraryContainer control is a dual-view control that enables you to arrange items in a horizontal bar or in a vertical stack and enables you to switch between the two views. For more information, see Using the LibraryContainer Control.

LibraryStack

The LibraryStack control enables you to display items that are stacked on each other. Users can view the individual items by rearranging the order of the stack or by removing items from the stack. By default, the LibraryStack control supports drag-and-drop operations. For more information, see Using the LibraryStack Control and Using Drag-and-Drop with the LibraryBar and LibraryStack Controls.

ScatterView

The ScatterView control is a container for any other user interface (UI) element. When you place a UI element inside a ScatterView control, users can move, rotate, and resize that element by using one or multiple touches. For more information, see Using ScatterView.

SurfaceButton

The SurfaceButton control is a specialized version of the WPF Button control. SurfaceButton provides a different default look and feel, adds support for Touch Visualizations, and customizes the handling of input device events so that if multiple touches target the control, the Click event is raised only after all touches are lifted.

SurfaceCheckBox

The SurfaceCheckBox control is a specialized version of the WPF CheckBox control. SurfaceCheckBox provides a different default look and feel, adds support for Touch Visualizations, and customizes the handling of input device events so that if multiple touches target the control, the Click event is raised only after all touches are lifted.

SurfaceInkCanvas

The SurfaceInkCanvas control provides a drawing canvas that you can use with touch input to create, modify, and delete drawing strokes.

SurfaceListBox

The SurfaceListBox control is a specialized version of the WPF ListBox control. SurfaceListBox adds support for panning, the ability to move the content by direct contact with the content itself, instead of using a scroll bar.

SurfaceRadioButton

The SurfaceRadioButton control is a specialized version of the WPF RadioButton control. SurfaceRadioButton provides a different default look and feel, adds support for Touch Visualizations, and customizes the handling of input device events so that if multiple touches target the control, the Click event is raised only after all touches are lifted.

SurfaceScrollViewer

The SurfaceScrollViewer control is a specialized version of the WPF ScrollViewer control. SurfaceScrollViewer adds support for panning, the ability to move the content by direct contact with the content itself, instead of using a scroll bar.

SurfaceSlider

The SurfaceSlider control is a specialized version of the WPF Slider control. SurfaceSlider provides a different default look and feel, and adds support for Touch Visualizations.

SurfaceWindow

The SurfaceWindow control is a specialized version of the WPF Window control. SurfaceWindow provides and activates the necessary event handlers to make sure that it receives touch events.

Community Additions

Show:
© 2014 Microsoft