BrandGhost
AVOID This Anti-Pattern... But Here's How It Can Help in WPF

AVOID This Anti-Pattern... But Here's How It Can Help in WPF

Here's an anti-pattern you've been told to avoid -- and for good reason. Except... I'm going to show you how it can SAVE YOUR BUTT in WPF. You're going to have to understand WHY it's not great so you can later try to solve this problem in a better way. In my opinion, WPF doesn't do a great job with dependency injection. In fact, many of the patterns in WPF make it feel like a battle against DI frameworks. In this video, I'll show you how we can use the Service Locator anti-pattern to work around this when building value converters. I'll explain why I don't like it, how it will help, and then follow up with what we can do better.
An error has occurred. This application may no longer respond until reloaded. Reload