Files
ThreadPilot/Converters/NullToBoolConverter.cs
2026-06-24 17:52:45 +02:00

20 lines
533 B
C#

namespace ThreadPilot.Converters
{
using System;
using System.Globalization;
using System.Windows.Data;
public class NullToBoolConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return value != null;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}