WPF
Writing a custom Main() method for WPF applications
Creating a new WPF project in Visual Studio gives you the following pretty simple application markup and code:
<Application x:Class="WpfApplication2.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="Window1.xaml">
</Application>
namespace WpfApplication2
{
public partial class App : Application
{
}
}
Understanding how it really works, and how [...]
Fixing a bug can cause bugs
Microsoft apparently fixed something in .NET Framework 3.5 Service Pack 1 that previously didn’t work, or somehow worked differently. As a result, Milkify will crash if used on a machine that doesn’t have this service pack installed.
What you get is a XamlParseException that says that a ContentStringFormat property cannot be converted into a TemplateBindingExtension. This [...]
WPF application patterns continued: convention over configuration
In my previous post on WPF application patterns, I went over a few of the most common patterns available, and gave some pointers on how to implement them in WPF. I mentioned how you could use a dependency injection framework to decouple the implementation of your views and controllers from each other. However, the problem [...]
WPF application patterns
There's quite a few articles about using the MVC, MVP, MVVM and other MSomethingSomething patterns with WPF applications out there, but I think there's still quite a few things to say on the subject before we can implement all those wonderful acronyms from A to Z without too much worry.
The goal of each of those [...]
XAML markup is for real men
The Visual Studio designer for WPF is quite lame as it stands now, and although it will get a lot better when Visual Studio 2008 SP1 is released, if you're a WPF developer, you really need to know how to read and write XAML by hand, much like web developers and designers know how to [...]