-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathConverter.cs
More file actions
29 lines (25 loc) · 791 Bytes
/
Converter.cs
File metadata and controls
29 lines (25 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using Microsoft.Maui.Controls;
using System.Globalization;
namespace DataGridExample
{
public class ValueConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (value is null)
return null;
bool isenable = true;
string test = value.ToString();
if (string.IsNullOrEmpty(value.ToString()))
{
isenable = false;
}
return isenable;
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
}
}
}