1 using System.Threading.Tasks;
3 namespace Xamarin.Forms.Pages
5 public class StringJsonSource : JsonSource
7 public static readonly BindableProperty JsonProperty = BindableProperty.Create(nameof(Json), typeof(string), typeof(StringJsonSource), null);
11 get { return (string)GetValue(JsonProperty); }
12 set { SetValue(JsonProperty, value); }
15 public override Task<string> GetJson()
17 return Task.FromResult(Json);