using System; using System.Globalization; using System.Windows.Data; using System.Windows.Media; namespace Dominion.NET_WPF.Converters { public class DropShadowConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (Equals(value, Brushes.Black)) return Brushes.White; if (Equals(value, Brushes.White)) return Brushes.Black; return value; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { // Not needed throw new NotImplementedException(); } } }