Tag Archives: WPF

Wiki Markup Hyperlinks for WPF or HTML

This article shows an example of a Wiki-inspired markup for embedding hyperlinks in text – and how to render it as WPF and HTML. When building any kind of content management system, it’s a good idea to give users the … Continue reading

Posted in Tips and Tricks | Tagged , , | Leave a comment

WPF Expander HeaderTemplates – Don’t Forget The Binding!

Every time I customize an Expander in WPF using a HeaderTemplate, I make a critical mistake. I forget to set the binding for the header. Here’s a contrived example to demonstrate the problem – and the solution. Here’s what we’re … Continue reading

Posted in Reference | Tagged , , | 8 Comments

Using Shapes as a Resource in WPF

This post covers how to re-use a collection of WPF shapes by combining them into a resource. Start by creating the drawing using Expression Blend. This example using a combination of Ellipses, Rectangles and Paths to create the rounded triangle: … Continue reading

Posted in Tips and Tricks | Tagged , , | 1 Comment

Griddy – WPF Grid Generator

Download Griddy.zip (21 KB) Lately I’ve been using the very good (and free) Paint.net. Although it has a great variety of features, it doesn’t provide layout guides. To solve this problem I’ve created Griddy. Griddy generates an image of a … Continue reading

Posted in Projects | Tagged , | Leave a comment

Custom ScrollBars in WPF

The following post contains a basic example of how to customise the WPF ScrollView scroll bars. The original XAML was built using Expression Blend, and has been further simplified for clarity. The resulting ScrollView looks like this: Firstly, the ScrollViewerControlTemplate … Continue reading

Posted in Reference | Tagged , | 5 Comments

Smarter Loading Animations in WPF

An example of how to build a loading control that only appears after a delay. Any WPF application will need to handle loading delays gracefully. In most cases this involves showing a loading animation while the user waits for the … Continue reading

Posted in Reference | Tagged , , | Leave a comment

Keyboard Friendly TextBox

Building keyboard-friendly interfaces can be tricky. For screens with multiple fixed-length TextBoxes, users don’t want to constantly press the tab key to move from one TextBox to the next. In addition, when tabbing between TextBoxes it’s reasonable to assume that … Continue reading

Posted in Tips and Tricks | Tagged , , | 1 Comment