Export (0) Print
Expand All

SurfaceInkCanvas.EditingMode Property



Gets or sets the user editing mode that is used for the control.

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

'Usage

public SurfaceInkEditingMode EditingMode { get; set; }
/** @property */
public SurfaceInkEditingMode get_EditingMode ()

/** @property */
public void set_EditingMode (SurfaceInkEditingMode value)

public function get EditingMode () : SurfaceInkEditingMode

public function set EditingMode (value : SurfaceInkEditingMode)

Property Value

Returns SurfaceInkEditingMode.

The following code example demonstrates how to change the EditingMode property of a SurfaceInkCanvas control in response to a button click.


// When these Microsoft Surface buttons are touched, change the editing mode of the SurfaceInkCanvas control.
private void SurfaceButtonInk_Click(object sender, System.Windows.RoutedEventArgs e)
{
    MainInkCanvas.EditingMode = SurfaceInkEditingMode.Ink;
}

private void SurfaceButtonEraseStroke_Click(object sender, System.Windows.RoutedEventArgs e)
{
    MainInkCanvas.EditingMode = SurfaceInkEditingMode.EraseByStroke;
}

private void SurfaceButtonErasePoint_Click(object sender, System.Windows.RoutedEventArgs e)
{
    MainInkCanvas.EditingMode = SurfaceInkEditingMode.EraseByPoint;
}

The EditingMode property is a dependency property that is identified by the EditingModeProperty field.


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:
© 2014 Microsoft