3 namespace Tizen.NUI.Binding
5 [Xaml.ProvideCompiled("Tizen.NUI.Core.XamlC.UriTypeConverter")]
6 [Xaml.TypeConversion(typeof(Uri))]
7 internal class UriTypeConverter : TypeConverter
9 public override object ConvertFromInvariantString(string value)
11 if (string.IsNullOrWhiteSpace(value))
13 return new Uri(value, UriKind.RelativeOrAbsolute);
16 bool CanConvert(Type type)
18 if (type == typeof(string))
20 if (type == typeof(Uri))