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 ArticleWPF 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 ArticleWPF 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 ArticleWPF / 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 ArticleFX 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 ArticleWPF, 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 ArticleWPF / 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 ArticleWPF – 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 ArticleMulti-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 ArticleF# 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 ArticleWPF 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 ArticleSimple 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 ArticleViewModel 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 ArticleFX 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 ArticleWPF & 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 ArticleINotifyPropertyChanged – 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 ArticleWPF / 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 ArticleMVVM – 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 ArticleWPF / 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 ArticleMVVM – 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