I have the following object in App.xaml
class BooleanToWidthConverter :IValueConverter {
public object Convert (object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is bool b)
{
return b ? parameter : 0;
}
return 0;
}
public object ConvertBack (object value, Type targetType, object parameter, CultureInfo culture)
{
return null;
}
}
Unfortunately, there is no "IsVisible" Property in GridViewColumn But, I have a solution can solve this problem by simple and complete way:
Code sample above: