Adding EntityFramework and Sqlite to ASP.NET Core Web API

So far we’ve covered: Up next is adding an API for our app to talk to and store messages. This will be done with ASP.NET Core Web API, back-ended with a Sqlite database. I’ll start by adding a new ASP.NET Core Web API project to our existing application and call it “ChatterAPI” We’re going to […]

.

Read more

Using Messenger in the CommunityToolkit.Mvvm

As mentioned in my last post I wanted to hit on the IMessenger services included with the CommunityToolkit.Mvvm.  There is a ton of funtionality with the IMessenger but at it’s core it passes messages between an instance that sends a message and any instances that are registered to receive the message. To do this there […]

.

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

Parsing a nullable primitive to a primitive with generics and the Try-Parse pattern

There is a lot to unpack in that title. Let’s start with the Try-Parse pattern. This pattern is defined in Microsoft’s “Exceptions and Performance” article (which itself comes from Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries, 2nd Edition) and is likely one you are very familiar with. Fundamentally the return type […]

.

Read more

Starting over

Starting over by loading the archive of all my old posts.

.

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
FormatException

928 East Plymouth Drive Asbury Park, NJ 07712