InkPresenter.StrokesCollected Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when one or more ink strokes are processed ("wet" to "dry") by the application thread.
By default, an ink stroke is processed on a low-latency background thread and rendered wet as it is drawn. When the stroke is completed (pen or finger lifted, or mouse button released), the stroke is processed on the UI thread and rendered dry to the InkCanvas layer (above the application content). If the UI thread is busy, more than one ink stroke might be processed (collected) when the thread becomes available.
// Register
event_token StrokesCollected(TypedEventHandler<InkPresenter, InkStrokesCollectedEventArgs const&> const& handler) const;
// Revoke with event_token
void StrokesCollected(event_token const* cookie) const;
// Revoke with event_revoker
InkPresenter::StrokesCollected_revoker StrokesCollected(auto_revoke_t, TypedEventHandler<InkPresenter, InkStrokesCollectedEventArgs const&> const& handler) const;
public event TypedEventHandler<InkPresenter,InkStrokesCollectedEventArgs> StrokesCollected;
function onStrokesCollected(eventArgs) { /* Your code */ }
inkPresenter.addEventListener("strokescollected", onStrokesCollected);
inkPresenter.removeEventListener("strokescollected", onStrokesCollected);
- or -
inkPresenter.onstrokescollected = onStrokesCollected;
Public Custom Event StrokesCollected As TypedEventHandler(Of InkPresenter, InkStrokesCollectedEventArgs)
Event Type
Applies to
See also
- Pen and stylus interactions
- Get started: Support ink in your UWP app
- Ink analysis sample (basic) (C#)
- Ink handwriting recognition sample (C#)
- Save and load ink strokes from an Ink Serialized Format (ISF) file
- Save and load ink strokes from the clipboard
- Ink toolbar location and orientation sample (basic)
- Ink toolbar location and orientation sample (dynamic)
- Coloring book sample
- Family notes sample
- Inking sample (JavaScript)
- Simple inking sample (C#/C++)
- Complex inking sample (C++)
- Ink analysis sample
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: