Export (0) Print
Expand All

SurfaceInkCanvas Class



Represents a control that users draw on when they move their fingers over the control.

Namespace: Microsoft.Surface.Presentation.Controls
Assembly: Microsoft.Surface.Presentation (in Microsoft.Surface.Presentation)

'Usage

public class SurfaceInkCanvas : FrameworkElement
public class SurfaceInkCanvas extends FrameworkElement
public class SurfaceInkCanvas extends FrameworkElement

In the following example, a SurfaceInkCanvas control is declared.


<Grid>
    <s:SurfaceInkCanvas UsesTouchShape="True"/>
</Grid>

A SurfaceInkCanvas control provides functionality similar to an InkCanvas control. A SurfaceInkCanvas control receives and displays ink input as the user touches the control. As a touch moves, the control creates strokes, which are represented as Stroke objects and which can be manipulated either programmatically or based on user input. After a Stroke object is created, the SurfaceInkCanvas control enables users to modify or delete it.

For more information, see SurfaceInkCanvas Control.

The Photo Paint sample application demonstrates the use of the SurfaceInkCanvas control.


System.Object
   System.Windows.Threading.DispatcherObject
     System.Windows.DependencyObject
       System.Windows.Media.Visual
         System.Windows.UIElement
           System.Windows.FrameworkElement
            Microsoft.Surface.Presentation.Controls.SurfaceInkCanvas

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Requirements

Operating System (OS)Windows 7
Software Developer Kit (SDK)Surface 2.0
.NET Framework 4
Developer environmentVisual Studio 2010, Express or full edition
Microsoft Expression Blend 4.0 (optional)
End-user hardwareDevices made for Surface 2.0, or
Windows Touch computers

Did you find this information useful? Please send us your suggestions and comments.

© Microsoft Corporation. All rights reserved.
Show:
© 2015 Microsoft