Files
aistudio-wpf-diagram/AIStudio.Wpf.DiagramDesigner/Converters/ObjectConverter.cs

31 lines
774 B
C#
Raw Normal View History

2023-03-18 22:50:00 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
namespace AIStudio.Wpf.DiagramDesigner
{
/// <summary>
/// CommandParameter 多参数传递
/// </summary>
public class ObjectConverter : IMultiValueConverter
{
#region IMultiValueConverter Members
public object Convert(object[] values, Type targetType,
object parameter, System.Globalization.CultureInfo culture)
{
return values?.ToArray();
}
public object[] ConvertBack(object value, Type[] targetTypes,
object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
}
#endregion
}
}