18 lines
453 B
C#
18 lines
453 B
C#
using System.Globalization;
|
|
using System.Windows.Data;
|
|
|
|
namespace ShrlAlgo.Toolkit.Mvvm.Converters;
|
|
|
|
public class HasSelectedItemConverter : IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
return value == null ? false : (object)true;
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|