Condividi tramite


InkPresenter (Silverlight)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

The InkPresenter element provides a drawing surface to support ink features. InkPresenter derives from Canvas and can display one or more UIElement objects and a StrokeCollection.

Run this sample

In This Section

Term

Definition

Ink Overview

Describes and demonstrates various uses of ink in Silverlight-based applications.

Tasks

You can accomplish the following tasks with the example code at the specified location.

Task

Example location

Using the InkPresenter element.

InkPresenter

Applying DrawingAttributes to a Stroke.

DrawingAttributes

Demonstrating the GetBounds method of Stroke.

GetBounds

Iterating through the stylus points and manipulating the StrokeCollection.

StylusPoints

Demonstrating the HitTest method of Stroke.

HitTest

Demonstrating the GetBounds method of StrokeCollection.

GetBounds

Demonstrating the HitTest method of StrokeCollection.

HitTest

Demonstrating the properties of StylusPoint.

StylusPoint