1 //------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 //------------------------------------------------------------
5 namespace System.Activities.Presentation.FreeFormEditing
7 using System.Windows.Data;
9 using System.Windows.Media;
10 using System.Globalization;
12 class ConnectorIdentityConverter : IMultiValueConverter
14 public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
16 Fx.Assert(values[0] is Guid, "The first value should be a Guid");
17 Fx.Assert(values[1] is PointCollection, "The second value should be a PointCollection");
18 Guid identityGuid = (Guid)values[0];
19 PointCollection points = (PointCollection)values[1];
20 return identityGuid + "," + points.ToString();
23 public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
25 throw FxTrace.Exception.AsError(new NotSupportedException());