Καλώς ορίσατε στο dotNETZone.gr - Σύνδεση | Εγγραφή | Βοήθεια

C# and .NET Tips and Tricks

Quests in programming in .NET

Οκτώβριος 2009 - Δημοσιεύσεις

Going from Model-View-Presenter to MV-VM with WPF Commands (Part #3: MVVM and Commands)
In previous posts ( Part 1 and Part2 ) I have presented the implementation of a toy application using the Model-View-Presenter pattern and Routed Commands. In this final post, I will present the migration to MVVM. In Part2 , we have reached a point where we have managed to partly centralize the logic that is needed to be implemented for each Command but we were not yet fully satisfied with the wiring that needed to be done in the code-behind file. So, we will try to tackle this problem: Approach #4 Our first

Διαβάστε περισσότερα »

Posted: Δευτέρα, 12 Οκτωβρίου 2009 8:44 πμ από iwannis | 0 σχόλια
Δημοσίευση στην κατηγορία:
Going from Model-View-Presenter to MV-VM with WPF Commands (Part #2: Commands with MVP)
In my previous post , I have presented the first two approaches for implementing the GUI and the logic of a toy application: Approach #1: All the logic in the code behind file. Approach #2: The Model-View-Presenter pattern. In this post, we will pick up from where we stopped, in our route to migrate to the benefits of the MVVM model and the use of Commands. It is recommended to take a look at the previous post in order to get an idea of the application and the two previous approaches) Approach #3: A hybrid MVP

Διαβάστε περισσότερα »

Posted: Δευτέρα, 12 Οκτωβρίου 2009 8:25 πμ από iwannis | 0 σχόλια
Δημοσίευση στην κατηγορία:
Going from Model-View-Presenter to MV-VM with WPF Commands (Part #1: MVP)
In this post I will try to show the application of the MVP and MV-VM programming approaches and the use of WPF commands in them. I will start with a simple Window in WPF with all the code intertwined in the code-behind file and transform it to a Window with no code at all at the code-behind file, showing the separation between the view and the logic that is achieved with MV-VM and Commands. The Window is the following: The "Add Client" adds a new client, the "Delete Client" removes the selected

Διαβάστε περισσότερα »

Posted: Τρίτη, 6 Οκτωβρίου 2009 9:01 πμ από iwannis | 0 σχόλια
Δημοσίευση στην κατηγορία: