MonoGame/MonoGame

Property changes with multiple objects selected is not undo-able.

Open

#4,502 opened on Feb 5, 2016

View on GitHub
 (7 comments) (0 reactions) (0 assignees)C# (3,071 forks)batch import
Help Wantedbughelp wantedscope: content-builderscope: tooling

Repository metrics

Stars
 (13,886 stars)
PR merge metrics
 (Avg merge 25d 3h) (22 merged PRs in 30d)

Description

The winforms propertygrid natively supports selecting more than one object, and being able to set a given property on them all at the same time if that property is the same type/name.

However, the only event it exposes for responding to such a change is OnPropertyValueChanged which occurs after the new value is already set, and does not pass what the previous value was, if there is more than one object selected.

So, implementing this means we probably need to store the state of all objects in the selection, whenever the selection is changed, then push THAT state into the undo/redo object when OnPropertyValueChanged occurs.

Contributor guide