DefaultDrawingAttributesProperty Field

SurfaceInkCanvas.DefaultDrawingAttributesProperty Field

Identifies a dependency property that specifies the drawing attributes that are applied to new ink strokes on a SurfaceInkCanvas object.

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


public static readonly DependencyProperty DefaultDrawingAttributesProperty
public static final DependencyProperty DefaultDrawingAttributesProperty
public static final var DefaultDrawingAttributesProperty : DependencyProperty

The DefaultDrawingAttributesProperty field is the identifier for the DefaultDrawingAttributes property. You can use the DefaultDrawingAttributes property to establish the color, size, and other aspects of the rendered stroke.

When UsesTouchShape is true, modifying the Height and Width of the DefaultDrawingAttributes property has no effect. When you want to change the size of the rendered stroke by modifying the DefaultDrawingAttributes property, you must also set UsesTouchShape to false.



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.
© 2016 Microsoft