Search

Tutorials, tips&tricks, snippets..

#KISS: KEEP IT SIMPLE, STUPID!

Category

MVVM

DevExpress: save and restore DataGrid layout using xml file(s)

Using DevExpress tool in very helpful. In this case, I’ve used it for my WPF application. I’m using DevExpress 14.2. After some issues, I am able to save&restore my DataGrid layout with xml files. Continue reading “DevExpress: save and restore DataGrid layout using xml file(s)”

Advertisements

WPF MVVM – Binding command to key press

It can be very helpful to create shortkey in your application. How we can do it in a WPF MVVM application? From the .NET Framework 4, it is easy. Let’s see it and how it works!

Continue reading “WPF MVVM – Binding command to key press”

MVVM and WPF: blink an image from View Model

MVVM pattern design is very powerful, but it is also very complex. This is the main feature of this approach, where UI and business logic are splitted: you will love this feature, but sometimes, you will hate it, because it makes harder all the simply UI operation (also the message box… you can use them, but if you want a 100% MVVM application, you can’t).

In this post I will show you how to make an image blinking from the ViewModel, simply changing the value of a boolean variable.

Continue reading “MVVM and WPF: blink an image from View Model”

MVC & MVVM & MVP

A valid and complete explanation of the differences between MVC, MVVM and MVP

Sriramjithendra Nidumolu

Here I have a comparison, pointing out the key differences between the patterns and why MVVM *is* different.

image

View original post 441 more words

Binding a List in a WPF ComboBox

I have written how to write a┬ásimple WPF application in the MVVM design patter, with and without the DevExpress tools. In this post I’ll show to you an interesting feature: how to bind a list to a ComboBox item in the UI. The good thing is you can use a list of string or anything else custom class, with some attribute to show in the selector.

KEEP READING…

Creating a MVVM WPF application with DevExpress tools

The title already said what I’m about to write here, so.. let’s start. Only one note: I’m writing this for DevExpress tool, since almost all tutorials on the web don’t use this (anyway, almost all written here is good for a project without DevExpress).
Keep reading…

Powered by WordPress.com.

Up ↑