|
0
|
1 |
using System; |
|
|
2 |
using System.Net; |
|
|
3 |
using System.Windows; |
|
|
4 |
using System.Windows.Controls; |
|
|
5 |
using System.Windows.Documents; |
|
|
6 |
using System.Windows.Ink; |
|
|
7 |
using System.Windows.Input; |
|
|
8 |
using System.Windows.Media; |
|
|
9 |
using System.Windows.Media.Animation; |
|
|
10 |
using System.Windows.Shapes; |
|
|
11 |
using System.Windows.Data; |
|
|
12 |
using System.Collections.Generic; |
|
|
13 |
using System.Linq; |
|
|
14 |
namespace Iri.Modernisation.Controls.Converter |
|
|
15 |
{ |
|
|
16 |
public class TagArrayConverter : IValueConverter |
|
|
17 |
{ |
|
|
18 |
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
|
|
19 |
{ |
|
|
20 |
List<String> dt = (List<String>)value; |
|
|
21 |
return String.Join(",", dt.ToArray()); |
|
|
22 |
} |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
|
|
27 |
{ |
|
|
28 |
|
|
|
29 |
String temp = (String)value; |
|
|
30 |
return temp.Split(',').ToList(); |
|
|
31 |
|
|
|
32 |
} |
|
|
33 |
} |
|
|
34 |
} |