Skip to content

Instantly share code, notes, and snippets.

@seba47
Created February 15, 2018 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seba47/affba2038ca53b547ff4b6603a3dd85b to your computer and use it in GitHub Desktop.
Save seba47/affba2038ca53b547ff4b6603a3dd85b to your computer and use it in GitHub Desktop.
Test #c#
public class BooleanNegationConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return !(bool)value;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return !(bool)value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment