Feed on
Posts
Comments

Category Archive for 'Tips'

Value Converters are a useful addition to a WPF. If a value converter is specified in a binding, the source data is funneled to the converter before arriving at the binding destination. Before you can use the converter in your XAML you need to add an instance of the converter to your XAML, usually in [...]

Read Full Post »

Use the WPF Blur effect to focus attention

WPF has had bitmap effects since the first release. With WPF 3.5 SP1 Microsoft has rewritten the effects framework and dramatically improved their performance at the same time. If you want to start using the effects API without creating your own effects classes, you can use the built-in DropShadow or Blur effects. In this tip, [...]

Read Full Post »

Getting a DialogResult from a WPF window

A frequent scenario in UI applications is gathering information for later use. Dialog windows are a common way to solicit this information. Modal dialogs have an advantage over other types of windows in that the user has to answer your questions before they can continue. This benefit can turn into a curse however if use [...]

Read Full Post »

Dig through the .NET class libraries for a few minutes and you’ll find collections (islands) of static data. For example, the Fonts class exposes two static properties, Fonts.SystemFontFamilies and Fonts.SystemTypefaces, which are useful for enumerating the installed fonts on the system. In this tip, I’ll show you how to list font families in WPF by [...]

Read Full Post »