Setting up a basic plugin architecture with WPF in .NET

One of the end goals with these recent posts was to outline a basic plugin architecture for WPF. At it’s core it uses reflection to load the plugins but there were a few gotchas along the way. The first was just getting the assemblies to output the required files and finally was loading those assemblies. […]

.

Read more

Integrating SignalR into WPF

Now that we have SignalR integrated into our API, I want to start using it from WPF. So to do this we’re going to add a SignalR chat handler. One of the ideas behind this application was to support multiple types of methods for sending chats using the IMessenger interface provided by CommunityToolkit.Mvvm. That way, […]

.

Read more

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
FormatException

928 East Plymouth Drive Asbury Park, NJ 07712