ObjectConvert.cs 962 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows.Data;
  7. namespace PDF_Master.DataConvert
  8. {
  9. /// <summary>
  10. /// CommandParameter 多参数传递
  11. /// </summary>
  12. public class ObjectConvert : IMultiValueConverter
  13. {
  14. #region IMultiValueConverter Members
  15. public static object ConverterObject;
  16. public object Convert(object[] values, Type targetType,
  17. object parameter, System.Globalization.CultureInfo culture)
  18. {
  19. ConverterObject = values;
  20. string str = values.GetType().ToString();
  21. return values.ToArray();
  22. }
  23. public object[] ConvertBack(object value, Type[] targetTypes,
  24. object parameter, System.Globalization.CultureInfo culture)
  25. {
  26. throw new NotImplementedException();
  27. }
  28. #endregion IMultiValueConverter Members
  29. }
  30. }