mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-05 00:37:19 +08:00
mind
This commit is contained in:
30
AIStudio.Wpf.DiagramDesigner/Converters/ObjectConverter.cs
Normal file
30
AIStudio.Wpf.DiagramDesigner/Converters/ObjectConverter.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user