4 using System.Globalization;
6 using SiliconStudio.Core.IO;
8 namespace SiliconStudio.Presentation.ValueConverters
16 public override object Convert(
object value, Type targetType,
object parameter, CultureInfo culture)
18 var ufile = (
UFile)value;
19 return ufile.ToString().Replace(
'/',
'\\');
22 public override object ConvertBack(
object value, Type targetType,
object parameter, CultureInfo culture)
24 var str = (string)value;
25 return new UFile(str);
override object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
This converter will convert an UFile to its string representation.
override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Defines a normalized file path. See UPath for details. This class cannot be inherited.