Assembly: Microsoft.Surface.Presentation (in microsoft.surface.presentation.dll)
In the following example, a SurfaceInkCanvas control is declared.
<UserControl x:Class="Class_SurfaceInkCanvas.Controls.SurfaceInkCanvas0" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="http://schemas.microsoft.com/surface/2008"> <s:SurfaceInkCanvas Name="SurfaceInkCanvas" Background="WhiteSmoke" UsesContactShape="True"/> </UserControl>
A SurfaceInkCanvas control provides functionality similar to an InkCanvas control. A SurfaceInkCanvas control receives and displays ink input as the user moves a contact or contacts over the control. During contact movement, the Microsoft Surface input system creates strokes, which are represented as Stroke 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.
The Photo Paint sample application demonstrates the use of the SurfaceInkCanvas control.