summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Pages/UriJsonSource.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Pages/UriJsonSource.cs')
-rw-r--r--Xamarin.Forms.Pages/UriJsonSource.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Xamarin.Forms.Pages/UriJsonSource.cs b/Xamarin.Forms.Pages/UriJsonSource.cs
index d732e25..b8681e9 100644
--- a/Xamarin.Forms.Pages/UriJsonSource.cs
+++ b/Xamarin.Forms.Pages/UriJsonSource.cs
@@ -11,6 +11,7 @@ namespace Xamarin.Forms.Pages
public static readonly BindableProperty UriProperty = BindableProperty.Create(nameof(Uri), typeof(Uri),
typeof(UriJsonSource), null);
+ [TypeConverter(typeof(UriTypeConverter))]
public Uri Uri
{
get { return (Uri)GetValue(UriProperty); }
@@ -19,7 +20,7 @@ namespace Xamarin.Forms.Pages
public override async Task<string> GetJson()
{
- var webClient = new HttpClient(new ModernHttpClient.NativeMessageHandler());
+ var webClient = new HttpClient();
try
{
string json = await webClient.GetStringAsync(Uri);