MVVM Light and Undo / Redo?

I probably mix some responsibilities (and maybe even terminology) here, but I can't completely wrap this around.

Is there any connection between the Command pattern and the commands found in MVVM Light (and therefore also in WPF)? I would really like to implement some kind of undo / redo mechanism, but I can’t understand if there is a way for “MVVM Light” to do this.

And if this does not apply to MVVM Light, how can I approach the command with Undo / Redo in "raw" without working with MVVM Light WPF?

+3
source share
3 answers

MVVM Light WPF , .

/, .

, WPF ( Prism).

, , ,

, , http://undo.codeplex.com/, , Visual Studio.

+5

undo/redo WPF / http://muf.codeplex.com/.

, Command . , , , / . "" . , " ". "" .

, / , . MUF , .

codeplex (http://muf.codeplex.com/). .

NuGet. "MUF" "Monitored Undo Framework". Silverlight 4.0, .NET 3.5, 4.0 WP7.

+2

I do not know any inherent undo / redo functions in MVVM or WPF, I'm afraid.

MVVM Light is a very good lightweight toolkit for quickly implementing MVVM. Any additional templates that you intend to implement yourself.

+1
source

Source: https://habr.com/ru/post/1762430/


All Articles