CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
IsNotConverter.cs
Go to the documentation of this file.
1#if !NETFX_CORE && !XAMARIN
2//-----------------------------------------------------------------------
3// <copyright file="IsNotConverter.cs" company="Marimer LLC">
4// Copyright (c) Marimer LLC. All rights reserved.
5// Website: https://cslanet.com
6// </copyright>
7// <summary>Converts a Boolean value into its inverse.</summary>
8//-----------------------------------------------------------------------
9using System;
10using System.Collections.Generic;
11using System.Linq;
12using System.Text;
13using System.Windows.Data;
14
15namespace Csla.Xaml
16{
20 public class IsNotConverter : IValueConverter
21 {
29 public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
30 {
31 return !(bool)value;
32 }
33
41 public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
42 {
43 return !(bool)value;
44 }
45 }
46}
47#endif
Converts a Boolean value into its inverse.
object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
Converts a value.
object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
Converts a value.