| 12345678910111213141516171819202122 |
- using System;
- using System.Windows;
- using System.Windows.Data;
- namespace Muchinfo.PC.Common.Converter
- {
- public class IsShowConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- if (value.Equals(true))
- return Visibility.Visible;
- else return Visibility.Collapsed;
- }
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
- }
|