Export (0) Print
Expand All

Stroke.OnInvalidated Method

Raises the Invalidated event.

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

abstract OnInvalidated : 
        e:EventArgs -> unit  
override OnInvalidated : 
        e:EventArgs -> unit

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft