CP.Xaml.Converters 1.0.2

dotnet add package CP.Xaml.Converters --version 1.0.2
NuGet\Install-Package CP.Xaml.Converters -Version 1.0.2
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="CP.Xaml.Converters" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CP.Xaml.Converters --version 1.0.2
#r "nuget: CP.Xaml.Converters, 1.0.2"
#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 CP.Xaml.Converters as a Cake Addin
#addin nuget:?package=CP.Xaml.Converters&version=1.0.2

// Install CP.Xaml.Converters as a Cake Tool
#tool nuget:?package=CP.Xaml.Converters&version=1.0.2

XamlConverters

Converters for WPF

Nuget Nuget

Converters available are:

  • ArithmeticConverter
  • BackgroundColorToBwForegroundConverter
  • BoolNegationConverter
  • BoolToOpacityConverter
  • BoolToStringTickCrossConverter
  • BoolToVisibilityConverter
  • BoolToVisibilityConverterNegate
  • CollectionSizeToBoolConverter
  • CollectionSizeToVisibilityConverter
  • ColorToBrushConverter
  • DoubleToCurrencyStringConverter
  • EnumConverter
  • HexStringToColorConverter
  • HexStringToSolidColorBrushConverter
  • IntToThicknessConverter
  • IntToVisibilityConverter
  • InverseValueToBoolConverter
  • InvertSignConverter
  • InvertValueConverter
  • InvertVisibilityConverter
  • IsGreaterThanOrEqualToConverter
  • LineStrokeLevelConverter
  • ToLowerConverter
  • MathConverter
  • MultiConverter
  • MultiplierConverter
  • NullToBoolConverter
  • NullToVisibilityConverter
  • ToUpperConverter
  • ValueCompareVisibilityConverter
  • ValueGreaterThanXToBoolConverter
  • ValueGtXConverter
  • ValueLessThanXToBoolConverter
  • ValueNotNullToBoolConverter
  • ValueNotNullToVisibilityConverter
  • ValueToBrushConverter
  • VisibilityFromNumberConverter
  • VisibilityFromNumberEqualsConverter
  • ZeroToVisibilityConverter
  • BrushToColorConverter
  • FallbackBrushConverter

Usage

Add the namespace to your App.xaml file:

xmlns:converters="https://github.com/ChrisPulman/XamlConverters"

Then add the ConvertersDictionary to your resources in App.xaml:

<Application.Resources>
    <converters:ConvertersDictionary />
</Application.Resources>

This will make all of the converters available to your application. Then use it by selecting a Converter={StaticResource #CONVERTER#}} such as:

<TextBlock Text="{Binding MyProperty, Converter={StaticResource ToUpperConverter}}" />
Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net7.0-windows7.0 is compatible.  net8.0-windows was computed.  net8.0-windows7.0 is compatible. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.2

    • No dependencies.
  • net6.0-windows7.0

    • No dependencies.
  • net7.0-windows7.0

    • No dependencies.
  • net8.0-windows7.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on CP.Xaml.Converters:

Package Downloads
CrissCross.WPF.UI

A Reactive Navigation Framework for ReactiveUI

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 324 1/20/2024
1.0.1 121 1/10/2024
1.0.0 85 1/10/2024

Compatability with Net 6/7/8 and netstandard2.0