LoginBordVis.cs 772 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Globalization;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Data;
  9. namespace PDF_Master.DataConvert
  10. {
  11. public class LoginBordVis : IValueConverter
  12. {
  13. //用于轻会员输入错误变红显示
  14. public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
  15. {
  16. if ((string)value == "")
  17. return Visibility.Collapsed;
  18. else return Visibility.Visible;
  19. }
  20. public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
  21. {
  22. throw new NotImplementedException();
  23. }
  24. }
  25. }