1 //----------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 //----------------------------------------------------------------
5 namespace System.Activities.Presentation
7 using System.Diagnostics;
8 using System.Globalization;
9 using System.Windows.Data;
10 using System.Activities.Presentation.Model;
12 class VariableExpressionConverter : IValueConverter
14 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
19 public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
21 object convertedValue = null;
24 if (value is ModelItem)
26 convertedValue = ((ModelItem)value).GetCurrentValue();
30 convertedValue = value;
33 return convertedValue;