123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Windows.Data;
- using System.Windows.Media;
- using System.Windows;
- using DataAnalysisControl.Core;
- namespace Aitex.UI.Charting.Converter
- {
- public class bool2VisibilityConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- try
- {
- if ((bool)value)
- return Visibility.Visible;
- return Visibility.Hidden;
- }
- catch (Exception ex)
- {
- CONTEXT.WriteLog(ex);
- }
- return Visibility.Hidden;
- }
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- return null;
- }
- }
- }
|