1234567891011121314151617181920212223242526272829303132333435 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Data;
- namespace PDF_Master.DataConvert
- {
- /// <summary>
- /// CommandParameter 多参数传递
- /// </summary>
- public class ObjectConvert : IMultiValueConverter
- {
- #region IMultiValueConverter Members
- public static object ConverterObject;
- public object Convert(object[] values, Type targetType,
- object parameter, System.Globalization.CultureInfo culture)
- {
- ConverterObject = values;
- string str = values.GetType().ToString();
- return values.ToArray();
- }
- public object[] ConvertBack(object value, Type[] targetTypes,
- object parameter, System.Globalization.CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- #endregion IMultiValueConverter Members
- }
- }
|