Giter Club home page Giter Club logo

wpfconverters's Introduction

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.

wpfconverters's People

Contributors

yazgoo avatar kentcb avatar braincrumbz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.