Disable delete button on active surface

Resize real-time now that UI FPS is fixed
This commit is contained in:
SpoinkyNL committed 2019-11-22 23:14:42 +01:00
1 parent 6719a36c50
commit ee61d6f33b
5 files changed
+69 -35

No files matched your search

@@ -0,0 +1,29 @@
using System;
using System.Globalization;
using System.Windows.Data;
namespace Artemis.UI.Converters
{
[ValueConversion(typeof(bool), typeof(bool))]
public class InverseBooleanConverter : IValueConverter
{
#region IValueConverter Members
public object Convert(object value, Type targetType, object parameter,
CultureInfo culture)
{
if (targetType != typeof(bool))
throw new InvalidOperationException("The target must be a boolean");
return !(bool) value;
}
public object ConvertBack(object value, Type targetType, object parameter,
CultureInfo culture)
{
throw new NotSupportedException();
}
#endregion
}
}