Class MultiPropertyChangedCommand
An undo command that handles multiple changed properties.
[RequiresUnreferencedCode("Performs reflection to get and set property values.")]
public class MultiPropertyChangedCommand : PreExecutedCommand, IUndoCommand
- Inheritance
-
objectMultiPropertyChangedCommand
- Implements
- Inherited Members
- Extension Methods
Constructors
MultiPropertyChangedCommand(object[], PropertyDescriptor, object?[], object?)
Initializes the command after the properties were first changed.
public MultiPropertyChangedCommand(object[] targets, PropertyDescriptor property, object?[] oldValues, object? newValue)
Parameters
targetsobject[]The objects the property belongs to.
propertyPropertyDescriptorThe property that was changed.
oldValuesobject[]The property's old values.
newValueobjectThe property's current value.
Properties
Property
The property that was changed.
public PropertyDescriptor Property { get; }
Property Value
Targets
The objects the property belongs to.
public IReadOnlyList<object> Targets { get; }
Property Value
- IReadOnlyList<object>
Methods
OnRedo()
Set the changed property value again.
protected override void OnRedo()
OnUndo()
Restore the original property values.
protected override void OnUndo()