MonoGame/MonoGame

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

Open

#4,502 建立於 2016年2月5日

在 GitHub 查看
 (7 留言) (0 反應) (0 負責人)C# (3,071 fork)batch import
Help Wantedbughelp wantedscope: content-builderscope: tooling

倉庫指標

Star
 (13,886 star)
PR 合併指標
 (平均合併 25天 3小時) (30 天內合併 22 個 PR)

描述

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.

貢獻者指南