WPF Data Templates Part 6 – Visualizing Data Differently – a Simple WPF Bar Graph

One of the main strengths of WPF is the ability to visualize ordinary data in a different way.  In this post, I’ll go over how we can represent the 5 star rating of our images defined in this post as a simple WPF bar graph.  Also demonstrated is the use of the Tooltip item in WPF that will...

Continue reading →

WPF Data Templates Part 5 – Editing data in a Data Template and Switching a template on a Single item programmatically

The beauty of WPF is that it contains the ability to provide the user enhanced usability along with enhanced user experience. Too often today, you see applications that sport “admin” functions, which are functions for things like maintaining values that should be displayed in a list box,...

Continue reading →

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...

Continue reading →

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 application...

Continue reading →

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...

Continue reading →

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...

Continue reading →

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...

Continue reading →