Sic.Framework-Nanjing-Baishi/MECF.Framework.UI.Client/DataGridTransform/ExtendedGrid/Converter/RowSummaryVisibiltyConverte...

22 lines
622 B
C#
Raw Normal View History

2023-04-13 11:51:03 +08:00
using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
namespace ExtendedGrid.Converter
{
class RowSummaryVisibiltyConverter:IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
var showRowSummaries = (bool)value;
return showRowSummaries ? Visibility.Visible : Visibility.Collapsed;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}