Stroke::OnInvalidated Method (EventArgs^)

 

Raises the Invalidated event.

Namespace:   System.Windows.Ink
Assembly:  PresentationCore (in PresentationCore.dll)

protected:
virtual void OnInvalidated(
	EventArgs^ e
)

Parameters

e
Type: System::EventArgs^

An EventArgs that contains the event data.

If you inherit from the Stroke class and your stroke's appearance is based on a custom state, you must call the OnInvalidated method to raise the Invalidated event. The InkPresenter handles the Invalidated event and calls the DrawCore method.

The following example draws a Stroke either as a solid stroke or as a series of StylusPoint objects, depending on the Mode property. The example calls the OnInvalidated method, which in turn calls the DrawCore where the stroke is drawn.

No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: