Project Description

A collection of useful XAML converters for Windows Phone, Windows 8 and universal app developers alike.

Enough Software
An Enough Software project.

Converters, converters, converters...

Converters are incredibly useful for binding data in a Model, View, ViewModel (MVVM) architecture.
We have lots of converters in our package, for a complete list please refer to the documentation.

In your XAML code, you need to use the Enough.Converter namespace, add a corresponding resource and then use the converter.

The following snippet shows how to integrate the code in a Windows 8 project (Windows Phone integration is shown in the documentation):

<UserControl
    xmlns:xamlconverter="using:Enough.Converter"
    ...
>
    <UserControl.Resources>
        <xamlconverter:WeekdayNameConverter x:Name="WeekdayNameConverter" />
        <xamlconverter:DateAbbreviationConverter x:Name="DateAbbreviationConverter" />
    </UserControl.Resources>
    <StackPanel>
            <TextBlock Text="{Binding Date, Converter={StaticResource WeekdayNameConverter}}" />
            <TextBlock Text="{Binding Date, Converter={StaticResource DateAbbreviationConverter}}" />
    </StackPanel>
</UserControl>

NuGet

Enough.XamlConverter is available as a NuGet package.


Last edited Oct 15, 2013 at 9:00 PM by enoughrob, version 9