1 //----------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 //----------------------------------------------------------------
5 namespace System.Activities.Presentation.Converters
7 using System.Windows.Data;
9 class VBIdentifierTrimConverter : IValueConverter
11 public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
16 public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
18 if (targetType == typeof(string) && value is string)
20 return ((string)value).Trim();