mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
31 lines
774 B
C#
31 lines
774 B
C#
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
|
|
}
|
|
}
|