Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个具有撤消/重做机制的应用程序。我使用 Catel MVVM 框架。我使用 Catel.Memento 进行撤消/重做。我得到了它,但我想在列表中显示重做对象列表。
我的问题是:如何从 MementoService 获取重做对象?我想知道每个对象的旧值、新值和属性名。
我认为您正在寻找 IMementoService.RedoBatches 属性,可以在这里找到:
https://github.com/Catel/Catel/blob/5234dcf4f66188ab1cc5c35089375a6bccb139fd/src/Catel.Extensions.Memento/Catel.Extensions.Memento.Shared/MementoService.cs#L155
我同意它在 Confluence (官方 Catel 项目文档)上并没有很好的记录,但是由于您正在研究一个很好的示例,我认为您可以贡献一些 ;-)