mirror of
https://github.com/BlossomiShymae/Needlework.Net.git
synced 2025-12-07 10:40:48 +01:00
WIP
This commit is contained in:
19
Needlework.Net.Desktop/Converters/NullBoolConverter.cs
Normal file
19
Needlework.Net.Desktop/Converters/NullBoolConverter.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Avalonia.Data.Converters;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Needlework.Net.Desktop.Converters
|
||||
{
|
||||
public class NullBoolConverter : 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user