An open API service indexing awesome lists of open source software.

https://github.com/chrispulman/xamlconverters

Converters for WPF
https://github.com/chrispulman/xamlconverters

converters wpf xaml

Last synced: 3 months ago
JSON representation

Converters for WPF

Awesome Lists containing this project

README

        

# XamlConverters
Converters for WPF

![Nuget](https://img.shields.io/nuget/v/CP.Xaml.Converters) ![Nuget](https://img.shields.io/nuget/dt/CP.Xaml.Converters)

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:

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

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

```xaml

```

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

```xaml

```