A light tutorial of CommunityToolkit.Mvvm and Dependency Injection

The intention here is to cover some simple basics with getting CommunityToolkit.Mvvm going using dependency injection. There are a ton of of tutorials that go much further in-depth with CommunityToolkit including Microsoft’s own introduction. But as a basic intro let’s start with what CommunityToolkit.Mvvm is. It is a package that integrates the MVVM pattern into […]

.

Read more

Adding Host to WPF for Dependency Injection

One of the primary frameworks I used to use for DI was Unity Container. It’s a wonderful project but with support from Microsoft for host.services I’ve abandoned Unity Container in favor of the Microsoft solution. The main reason is that I see it everywhere. Maybe it’s the hot, new thing but using it and asking […]

.

Read more

Live Filter Design Pattern in XAML

I decided I should start titling my posts with XAML instead of WPF as they are applicable regardless of whether you are developing in Windows 7 with WPF or Windows 8. I’m going to take the BreadCrumb design pattern sample and extend it to include the Live Filter design pattern. The premise behind the Live […]

.

Read more

Binding a Dependency Property of a View to its ViewModel, part Deux

I’ve been getting quite a few hits lately on my post, Binding a Dependency Property of a View to its ViewModel. After reviewing it I realized that, while the post isn’t too bad, it doesn’t read as smooth as I would like (though it does have some pretty pictures with arrows and boxes and stuff, […]

.

Read more

BreadCrumb Design Pattern in WPF

This continues my series on ways you’ve probably used design patterns in real-life and may not have even known it. I’m going to go even further outside of the standard software design patterns into UI design patterns. Specifically, I wanted to address the bread crumb, a UI design pattern that concerns navigation. In web development […]

.

Read more

Bind a ComboBox to an enum while using Display attribute

I found a lot of different tutorials on binding a ComboBox to an enum but none of them worked. In every case the ComboBox would not stay selected to the value I chose, instead always reverting back to the previous selected value. Couple that with the fact that I wanted to use the Display attribute […]

.

Read more

Adapter Design Pattern – A Real World Example

I think the simplest design pattern we’ve all used without really calling it a pattern, other than observer, is the adapter design pattern. The adapter design pattern is known more colloquially as a wrapper where you wrap a bunch of functionality from one or more classes into a single class because of incompatibilities between the […]

.

Read more

Observer and Command Design Patterns – A Real World Example

Up next in my series on ways you’ve probably used design patterns in real-life and may not have even known it, the Observer and Command design patterns. This continues on from my post Composite and Memento Design Patterns – A Real World Example. Command pattern is meant to actually decouple the GUI and back-end code. […]

.

Read more

Composite and Memento Design Patterns – A Real World Example

So you don’t need to know software design patterns. But, as I hope got across in my post, knowing and understanding patterns can only benefit you. I wanted to put together a real-life example of some of the instances where I’ve used patterns, even if the use of the patterns was unintentional. Hopefully you will […]

.

Read more

Binding a Dependency Property of a View to its ViewModel

UPDATE 07/30/2014:Please be sure to check out the second part to this at Binding a Dependency Property of a View to its ViewModel, part Deux which contains a working sample solution of the code here. I like MVVM in concept and I had prepared a long, off-topic rant about MVVM because of a bit of […]

.

Read more
FormatException

928 East Plymouth Drive Asbury Park, NJ 07712