Click here to Skip to main content
15,879,239 members
Articles / Desktop Programming / WPF

WPF - Bind to Opposite Boolean Value Using a Converter

Rate me:
Please Sign up or sign in to vote.
4.41/5 (24 votes)
13 Mar 2008CPOL2 min read 159K   1.3K   15  
Learn how to use a value converter for binding to the opposite of a boolean value
<Application x:Class="OppositeValueConverterDemo.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    StartupUri="Window1.xaml">
    <Application.Resources>
         
    </Application.Resources>
</Application>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader TJX
United States United States
James J. Foster is a senior systems consultant at The TJX Companies. He currently is leading teams in client development using .NET 3.5, Visual Studio 2008, WPF and WCF.

James holds a Bachelor's degree in Computer Science from WPI and a Master's degree in Software Engineering from Brandeis University. He also is certified as a .NET Developer and SQL Server DBA.

Comments and Discussions