Skip to content

Instantly share code, notes, and snippets.

@stevegreatrex
stevegreatrex / WhenConverter.cs
Created October 4, 2012 19:22
Reusable Conditional WPF Converter
/// <summary>
/// A converter class used to return conditional values based on the binding value.
/// </summary>
public class When : MarkupExtension, IValueConverter
{
#region Public Properties
/// <summary>
/// Gets or sets the value to which the resolved value will be compared.
/// </summary>
/// <value>