Categorywpf
Lord of the Converters
…One Converter to bring them all and in the XAML bind them…
Last time, I briefly mentioned a WPF converter that I created that helps solve the Cambrian Explosion problem that comes with creating specialized converters. Today I’ll go over that converter and what makes it tick.
A Brief Start with UWP
At work I was recently assigned to a UWP app. This post chronicles my discoveries over the first couple days.Continue reading“A Brief Start with UWP”→
Reinventing the Wheel
It’s an age-old question that just about every WPF developer has asked: How can I bind an event to a command?
Continue reading“Reinventing the Wheel”→WPF Miller Columns, Part 2
Last time, I walked through an implementation of Miller Columns in WPF that I had posted on StackOverflow, but it ended with a few issues.
- It was incomplete. I didn’t post the entire implementation, and much of the context was lost between then and now.
- The implementation wasn’t very MVVM. It required a specific type to be used as a data context, whereas in MVVM proper, the view modelshould be completely decoupled from the view.
- The solution required a code behind. This isn’t necessarily a bad thing, but I’d like to see if we can develop a pure-XAML solution.
WPF Miller Columns, Part 1
Today we’re going to look at a very useful UI element:Miller Columns. If you’ve ever worked in a Mac environment, you’ll probably recognize this from theFinder’s column view.Continue reading“WPF Miller Columns, Part 1”→
WPF Animations and the Async/Await Model
I recently encountered this little gotcha at work, and thought it could benefit others, so… here you go.
When you start an animation in WPF from code and then make an awaitable call, the animation fails to show until the call is complete. Why is this?Continue reading“WPF Animations and the Async/Await Model”→
Static WPF Converters
Most sites and books that teach WPF will tell you to declare all of your converters in XAML and then reference them using theStaticResource markup extension. I disagree. Unless you’re super-careful about it, you’ll end up creating mutliple instances of various converters.Continue reading“Static WPF Converters”→