//using Newtonsoft.Json.Linq;
//using System;
//using System.Diagnostics;
//using System.IO;
//using System.Linq;
//using System.Reflection;
//using Xamarin.Forms;
//using Xamarin.Forms.Xaml;

//namespace Navigator.Utils
//{

//  [ContentProperty(nameof(Source))]
//  public class ImageResourceExtension : IMarkupExtension
//  {
//    public string Source { get; set; }

//    public object ProvideValue(IServiceProvider serviceProvider)
//    {
//      if (Source == null)
//      {
//        return null;
//      }

//      // Do your translation lookup here, using whatever method you require
//      ImageSource imageSource = ImageSource.FromResource(Source, typeof(ImageResourceExtension).GetTypeInfo().Assembly);

//      return imageSource;
//      }
//    }
//}