终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PotActionToVisibilityConvert.cs 952 B

1 年之前
1234567891011121314151617181920212223242526272829303132333435
  1. using AlibabaCloud.SDK.Iot20180120.Models;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Globalization;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows;
  9. using System.Windows.Data;
  10. namespace BPASmartClient.MorkF.Convert
  11. {
  12. internal class PotActionToVisibilityConvert : IValueConverter
  13. {
  14. public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
  15. {
  16. Visibility vs = Visibility.Collapsed;
  17. if(value is string action)
  18. {
  19. switch (action)
  20. {
  21. case "":
  22. default:
  23. break;
  24. }
  25. }
  26. return vs;
  27. }
  28. public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
  29. {
  30. throw new NotImplementedException();
  31. }
  32. }
  33. }