mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 09:06:04 +02:00
* Reset branch for WPF changes * Convert BMP to PNG; fix link-out-of-scope err * Add snippets for WPF... 6794 files!!!! * Add missing snippets * update file updated between migration * Fix paths to include * update breadcrumb and toc * fix index links * fix index links * fix index links * fix markdown
1.2 KiB
1.2 KiB
title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
| title | ms.date | dev_langs | helpviewer_keywords | ms.assetid | ||||
|---|---|---|---|---|---|---|---|---|
| How to: Erase Ink on a Custom Control | 03/30/2017 |
|
|
d88c50f9-b4d8-4962-a28b-67d6a15a5fe0 |
How to: Erase Ink on a Custom Control
The xref:System.Windows.Ink.IncrementalStrokeHitTester determines whether the currently drawn stroke intersects another stroke. This is useful for creating a control that enables a user to erase parts of a stroke, the way a user can on an xref:System.Windows.Controls.InkCanvas when the xref:System.Windows.Controls.InkCanvas.EditingMode%2A is set to xref:System.Windows.Controls.InkCanvasEditingMode.EraseByPoint.
Example
The following example creates a custom control that enables the user to erase parts of strokes. This example creates a control that contains ink when it is initialized. To create a control that collects ink, see Creating an Ink Input Control.
[!code-csharpHowToEraseInk#1] [!code-vbHowToEraseInk#1]