StrokeCollection.PropertyDataChanged Event


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Occurs when custom property is added or removed from the StrokeCollection.

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

public event PropertyDataChangedEventHandler PropertyDataChanged

The following example demonstrates how to handle the PropertyDataChanged event. This example assumes that there is a Guid called dateTimeGuid and the PropertyDataChanged event is connected to the event handler defined in this example.

void Strokes_PropertyDataChanged(object sender, PropertyDataChangedEventArgs e)
    if ((e.PropertyGuid == dateTimeGuid) && (e.NewValue is DateTime))
        MessageBox.Show("The timestamp for the strokes is " +


.NET Framework
Available since 3.0
Return to top