This documentation is archived and is not being maintained.

StrokeCollection.PropertyDataChanged Event

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

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

public event PropertyDataChangedEventHandler PropertyDataChanged
<object PropertyDataChanged="PropertyDataChangedEventHandler" .../>

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 " +


Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0