WpfCommonValueConverters 1.0.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package WpfCommonValueConverters --version 1.0.0.4                
NuGet\Install-Package WpfCommonValueConverters -Version 1.0.0.4                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WpfCommonValueConverters" Version="1.0.0.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WpfCommonValueConverters --version 1.0.0.4                
#r "nuget: WpfCommonValueConverters, 1.0.0.4"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WpfCommonValueConverters as a Cake Addin
#addin nuget:?package=WpfCommonValueConverters&version=1.0.0.4

// Install WpfCommonValueConverters as a Cake Tool
#tool nuget:?package=WpfCommonValueConverters&version=1.0.0.4                

WPF Converters

Status

This project is no longer actively maintained for two reasons:

  1. I rarely do WPF development.
  2. When I do, I rarely require WPF converters.

My recommendation these days is to avoid converters wherever possible. Instead, put conversion logic in your view models where it can be tested and written in a platform-agnostic manner. In those cases where conversion is required purely to support the view (not business logic), converters are still a viable option and those provided by this project are very useful.

What?

This project contains a set of generic binding converters that can be used in most any WPF (or Silverlight) application.

Why?

Just about every non-trivial WPF application requires some custom binding converters. A set of dependable, general-purpose converters greatly reduces the number of converters that you must write yourself.

Where?

The easiest way to get WPF Converters is to install via NuGet:

Install-Package Kent.Boogaart.Converters

How?

<TextBox x:Name="nameTextBox"/>
<TextBlock>
    <Run>Your name in upper case is </Run>
    <Run Text="{Binding Text, ElementName=amountTextBox, Converter={con:CaseConverter Upper}}"/>
</TextBlock>

Please see the documentation for more details. The source code download also includes sample projects for both WPF and Silverlight.

Who?

WPF Converters was created by Kent Boogaart.

Primary Features

  • WPF 3.5/4.0/4.5 support
  • Silverlight 4.0 and 5.0 support
  • Extensively unit tested
  • Many converters including ExpressionConverter, which allows arbitrary C# expressions to be applied to bound values, and MapConverter, which maps input values to corresponding outputs.
Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0.6 104 9/5/2024
1.0.0.5 94 9/5/2024
1.0.0.4 97 9/4/2024
1.0.0.3 124 5/20/2024
1.0.0.2 135 2/5/2024