Coding Bandit

{Binding Path=OnlyTheGoodStuff}

November, 2008

WPF Data Templates Part 4 – Template Selectors

*Note – Class Definition and sample data used in this example are provided in this previous blog post. Template Selectors allow you to switch the Data Template used on an item being bound based on some logic.  For instance, in a banking application, you may wish an account that has a negative balance to be [...]

 

WPF Data Templates Part 3 – Switching Data Templates at Runtime

*Note – Class Definition and sample data used in this example are provided in this previous blog post. It’s a known fact that users like to have options.  Sometimes one user is more familiar with the data being displayed than another, and would to see only a summary of the data. New users of the [...]

 

WPF Data Templates Part 2 – Value Converters

Sometimes the value you want to display needs to be transformed from the original data before being bound to a XAML element. For instance, formatting a telephone number, or adding brackets to a negative balance on an account.  To accomplish this task a Value Converter is used.  A Value Converter is simply a class that [...]

 

WPF Data Templates Part 1 – Introduction to WPF Data Templates

Look Ma!  WPF can look like Windows Forms too! WPF contains many similar controls that you will find in your Windows Forms toolbox.  If you really wanted your app to look and feel like Windows Forms, it is quite possible… but why?  There are other tools and techniques to provide users (and developers for that [...]

 

Defining your Objects with XAML in Resources to enhance your Design Time Experience

XAML is an extremely powerful markup tool.  A less known fact is that it is possible to instantiate instances of your classes directly in markup.  This is useful in more than one way it allows you to define sample data for use in your application without reliance on external data sources. it gives you a [...]