StrokeCollection Class
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
'Declaration <TypeConverterAttribute(GetType(StrokeCollectionConverter))> _ Public Class StrokeCollection Inherits Collection(Of Stroke) Implements INotifyPropertyChanged, INotifyCollectionChanged 'Usage Dim instance As StrokeCollection
/** @attribute TypeConverterAttribute(System.Windows.StrokeCollectionConverter) */ public class StrokeCollection extends Collection<Stroke> implements INotifyPropertyChanged, INotifyCollectionChanged
TypeConverterAttribute(System.Windows.StrokeCollectionConverter) public class StrokeCollection extends Collection<Stroke> implements INotifyPropertyChanged, INotifyCollectionChanged
<object>isfString</object>
<object StrokeCollection="isfString"/>
The StrokeCollection allows you to perform functions such as hit testing, clipping, and erasing strokes. The InkCanvas control performs many of these functions, but if you need more control than the InkCanvas allows, the StrokeCollection offers more options.
The following table lists where to learn how to manage digital ink on a custom control.
| To do this… | See this article |
|---|---|
| Create a control that collects digital ink | |
| Create a control that enables the user to select ink | |
| Create a control that enables the user to point-erase ink |
The following example demonstrates how to copy the ink in one InkCanvas onto another InkCanvas. This example assumes:
-
There are two InkCanvas objects called inkCanvas1 and inkCanvas2.
-
The Click event has been connected to the event handler.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.