Version

DependencyPropertyChangeUndoUnit Constructor

Syntax
'Declaration
 
Public Function New( _
   ByVal target As DependencyObject, _
   ByVal oldValue As Object, _
   ByVal newValue As Object, _
   ByVal property As DependencyProperty, _
   ByVal propertyDisplayName As String, _
   ByVal targetDisplayName As String _
)
public DependencyPropertyChangeUndoUnit( 
   DependencyObject target,
   object oldValue,
   object newValue,
   DependencyProperty property,
   string propertyDisplayName,
   string targetDisplayName
)

Parameters

target
The object whose property was changed
oldValue
The old value of the property that is to be restored when an undo is performed.
newValue
The new value of the property.
property
The DependencyProperty of the target to restore
propertyDisplayName
The name of the property as it should be displayed to the end user or null to use the name of the DependencyProperty. Note, in Silverlight it may not be possible to obtain the name of the property so it is recommended that this be provided.
targetDisplayName
A string representing the target as it should be displayed to the end user or null to obtain the string representation from the target itself.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also