Subversion Repositories SoapBoxCore

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
16 scott 1
#region "SoapBox.Utilities License"
2
/// <header module="SoapBox.Utilities"> 
3
/// Copyright (C) 2010 SoapBox Automation Inc., All Rights Reserved.
4
/// Contact: SoapBox Automation Licencing (license@soapboxautomation.com)
5
/// 
6
/// This file is part of SoapBox Utilities.
7
/// 
8
/// Commercial Usage
9
/// Licensees holding valid SoapBox Automation Commercial licenses may use  
10
/// this file in accordance with the SoapBox Automation Commercial License
11
/// Agreement provided with the Software or, alternatively, in accordance 
12
/// with the terms contained in a written agreement between you and
13
/// SoapBox Automation Inc.
14
/// 
15
/// GNU Lesser General Public License Usage
16
/// SoapBox Utilities is free software: you can redistribute it and/or modify 
17
/// it under the terms of the GNU Lesser General Public License
18
/// as published by the Free Software Foundation, either version 3 of the
19
/// License, or (at your option) any later version.
20
/// 
21
/// SoapBox Utilities is distributed in the hope that it will be useful, 
22
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
23
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
/// GNU Lesser General Public License for more details.
25
/// 
26
/// You should have received a copy of the GNU Lesser General Public License 
27
/// along with SoapBox Utilities. If not, see <http://www.gnu.org/licenses/>.
28
/// </header>
29
#endregion
30
 
31
using System;
32
using System.Collections.Generic;
33
using System.Linq;
34
using System.Text;
35
using System.Windows.Data;
36
using System.Windows;
37
 
38
namespace SoapBox.Utilities
39
{
40
    public class ReverseBooleanToVisibilityConverter : IValueConverter
41
    {
42
        #region IValueConverter Members
43
 
44
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
45
        {
46
            var myBool = (bool)value;
47
            return myBool ? Visibility.Collapsed : Visibility.Visible;
48
        }
49
 
50
        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
51
        {
52
            return null;
53
        }
54
 
55
        #endregion
56
    }
57
}