mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-13 19:53:56 +08:00
20 lines
519 B
C#
20 lines
519 B
C#
using System;
|
|
using System.Globalization;
|
|
using System.Windows.Data;
|
|
|
|
namespace BetterGenshinImpact.View.Converters
|
|
{
|
|
public class NotNullConverter : 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();
|
|
}
|
|
}
|
|
}
|