lundi 4 janvier 2016

live editing using MVVM pattern C#

I'm currently developping a tool to visualize some models inside a WPF application.

One of my problems is the "live edition" problem using the MVVM pattern.

In the screen shown under, I have my MainWindow with a panel including the MonoGame rendering using: http://ift.tt/1n08eYL

The thing is, when i'm going to turn on/off switches or other controls on my "Edit" window, I want the changes to occur on the MainWindow. If I choose to valide the changes, ok, no problem, changes will be made, but if I cancel the edition, the previous version should be back again. (Basicaly just a have to do a save before...)

enter image description here

Thank you for your help, have a good day and happy new year :)

Aucun commentaire:

Enregistrer un commentaire