Creating WPF Text Layouts is Hard
I’ve heard many people ask for advice on creating attractive text layouts using WPF – with good reason! There are quite a few challenges, in my opinion, the top difficulties are:
- Differences from HTML/CSS: More than any other part of WPF, the
System.Windows.Documentsnamespace has many similarities with HTML/CSS – but the differences are significant enough to cause real issues. - Lack of good examples: The technology is still new, so there aren’t many role-models out there to learn from. The lack of view-source capability makes it tough to
steallearn from others. - Variable-column layout is hard: Without a doubt, designing a document that looks good when reflowed into a variable-number of columns is difficult.
- Lack of a designer: This is a tough one.
It’s a bit ambitious, but I’m going to do what I can to help fix these problems.
Obviously, this will take many entries – let me know if I’m missing anything, or if you have specific questions you’d like me to address.