在之前的文章中讲过如何实现撤消重做栈:https://gyrojeff.top/index.php/archives/wpf-implement-undo-redo/
问题引入
之前,我们每定义一个支持撤消重做的属性都要写很多代码:
private string _text;
public string Text
{
get => _text;
set => U...