Quantcast
Channel: MVVM – Dean Chalk
Browsing all 26 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

F# And MVVM – A Simple ViewModel

For many years, OOP abstractions and design patterns have been the cornerstones of my development methodology as a senior C# developer in investment banking. However, over the last year or so I have...

View Article



Image may be NSFW.
Clik here to view.

WPF MVVM – Simple ‘MessageBox.Show’ With Action & Func

In the MVVM world, things like message boxes (MessageBox.Show) and Dialogs (open file, save file etc), don’t naturally fit. These popups are closely tied to the ‘View’ part of MVVM, but they can only...

View Article

Image may be NSFW.
Clik here to view.

WPF MVVM – Simple Property Rules Engine

I’m currently working on a large legacy WPF project where my ViewModels often have a large number of properties, and those properties have some complex inter-relationships that need to be reflected in...

View Article

Image may be NSFW.
Clik here to view.

WPF / MVVM – Extending ViewModel Functionality Via ValueConverters

In a Model-View-ViewModel (MVVM) project, the ViewModel can easily become a large and unwieldy piece of code. You can break this down by creating a hierarchy of ViewModels that exist in a parent-child...

View Article

Image may be NSFW.
Clik here to view.

FX Trading & Reactive Extensions (Rx) – Part 1 – Getting a Feel

My current contract is within FX trading, supporting a front-office team with high-performance, low latency applications. We are currently doing a refactoring exercise around our currency pair data...

View Article


Image may be NSFW.
Clik here to view.

WPF, MVVM and Background Threads – Common Misunderstandings

Just a quickie You have MVVM and you have properties that notify via INotifyPropertyChanged. Question : Do I have to use Dispatcher.BeginInvoke in order to change my bound properties in my ViewModel...

View Article

Image may be NSFW.
Clik here to view.

WPF / MVVM – INotifyPropertyChanged – Not Required 95% Of The Time

Here’s another quickie Question : Does your DataContext (or ViewModel if you’re doing MVVM) have to implement INotifyPropertyChanged in order to participate in XAML data binding and change...

View Article

Image may be NSFW.
Clik here to view.

WPF – Automatic ViewModel Resolution with Autofac

In MVVM there are lots of elaborate ways to make sure our XAML’s DataContext is correctly instantiated, and if you are using IoC then you should be letting the IoC container instantiate your viewmodel,...

View Article


Image may be NSFW.
Clik here to view.

Multi-threading, ObservableCollection, Reactive Extensions

We are all familiar with the MVVM scenario where we add items to WPF control via an ObservableCollection in our ViewModel. Here’s a quick set of simple code to demonstrate our starting point for this...

View Article


F# And MVVM – A Simple ViewModel

For many years, OOP abstractions and design patterns have been the cornerstones of my development methodology as a senior C# developer in investment banking. However, over the last year or so I have...

View Article

Image may be NSFW.
Clik here to view.

WPF MVVM – Simple ‘MessageBox.Show’ With Action & Func

In the MVVM world, things like message boxes (MessageBox.Show) and Dialogs (open file, save file etc), don’t naturally fit. These popups are closely tied to the ‘View’ part of MVVM, but they can only...

View Article

Simple Property Rules Engine With MVVM

I’m currently working on a large legacy WPF project where my ViewModels often have a large number of properties, and those properties have some complex inter-relationships that need to be reflected in...

View Article

ViewModel Functionality Via ValueConverters

In a Model-View-ViewModel (MVVM) project, the ViewModel can easily become a large and unwieldy piece of code. You can break this down by creating a hierarchy of ViewModels that exist in a parent-child...

View Article


Image may be NSFW.
Clik here to view.

FX Trading & Reactive Extensions (Rx) – Part 1 – Getting a Feel

My current contract is within FX trading, supporting a front-office team with high-performance, low latency applications. We are currently doing a refactoring exercise around our currency pair data...

View Article

WPF & Background Threads – Have You Got It Wrong?

Just a quickie You have MVVM and you have properties that notify via INotifyPropertyChanged. Question : Do I have to use Dispatcher.BeginInvoke in order to change my bound properties in my ViewModel...

View Article


INotifyPropertyChanged – Not Required!

Here’s another quickie Question : Does your DataContext (or ViewModel if you’re doing MVVM) have to implement INotifyPropertyChanged in order to participate in XAML data binding and change...

View Article

WPF / MVVM – Property Changed To Command Behavior

Ok, its been a while since my last post, so Ive got a lot of saved-up article ideas to write – so here comes the first (many more to follow). MVVM – its now ubiquitous in WPF ‘line of business’...

View Article


MVVM – DataContext Outside The Visual Tree With Freezables

Often in WPF development I am looking for ingenious ways to maximise my data usage opportunities within XAML. I try hard not to add additional code or inflate my ViewModel if I can use XAML to achieve...

View Article

WPF / MVVM – Property Changed To Command Behavior

Ok, its been a while since my last post, so Ive got a lot of saved-up article ideas to write – so here comes the first (many more to follow). MVVM – its now ubiquitous in WPF ‘line of business’...

View Article

MVVM – DataContext Outside The Visual Tree With Freezables

Often in WPF development I am looking for ingenious ways to maximise my data usage opportunities within XAML. I try hard not to add additional code or inflate my ViewModel if I can use XAML to achieve...

View Article
Browsing all 26 articles
Browse latest View live




Latest Images