2 using System.ComponentModel;
4 namespace Tizen.NUI.XamlBinding
6 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
7 [EditorBrowsable(EditorBrowsableState.Never)]
8 [Xaml.ProvideCompiled("Tizen.NUI.XamlC.UriTypeConverter")]
9 [Xaml.TypeConversion(typeof(Uri))]
10 public class UriTypeConverter : TypeConverter
12 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
13 [EditorBrowsable(EditorBrowsableState.Never)]
14 public override object ConvertFromInvariantString(string value)
16 if (string.IsNullOrWhiteSpace(value))
18 return new Uri(value, UriKind.RelativeOrAbsolute);
21 bool CanConvert(Type type)
23 if (type == typeof(string))
25 if (type == typeof(Uri))