public object Convert(object value, Type targetType, object parameter, string language)
{
var sampleImageName = value.ToString();
try
{
if (File.Exists(sampleImageName))
return new BitmapImage(
new Uri(
string.Format("ms-appx://ArcGISRuntime.UWP.Viewer/{0}", sampleImageName)));
}
catch (Exception)
{
}
return null;
}