using System; using System.Globalization; using System.Windows; using System.Windows.Data; namespace SicUI.Converter { /// /// EngMode转换为主界面背景水印显示状态 /// internal class EngModeToBgWatermarkVisibilityConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value is bool isEngMode) { return isEngMode ? Visibility.Visible : Visibility.Hidden; } return Visibility.Visible; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } }