Libraries · Patterns · Uncategorized

MVVM Starter Kit (Part 3 of 3)

In this 3rd and final part of the MVVM series we tie everything together by looking at the Views and how to bind controls and actions to their ViewModels. We show that by putting most UI logic in the ViewModel, we can easily create both an FMX and VCL version of the same application with… Continue reading MVVM Starter Kit (Part 3 of 3)

Libraries · Patterns · Uncategorized

MVVM Starter Kit (Part 2 of 3)

In this second part of our MVVM mini series we look at ViewModels and how they can be unit tested. We assume you already read the first part, where we talked about the MVVM pattern and data binding. We discuss ViewModels and Views separately, leaving the discussion of Views to the part 3. Usually, you… Continue reading MVVM Starter Kit (Part 2 of 3)

Libraries · Patterns · Uncategorized

MVVM Starter Kit (Part 1 of 3)

We present a framework to help you get started separating user interface from code using the Model-View-ViewModel pattern. In this first part, I will briefly introduce the MVVM pattern, talk about data binding and start building out the Models for a sample application. In part 2 we will focus on the ViewModels and how these… Continue reading MVVM Starter Kit (Part 1 of 3)