protected object ConvertValue(object value, object parameter) { AssetPlugin plugin = value as AssetPlugin; if (plugin == null) { plugin = (AssetPlugin)MvvmCross.Mvx.IoCProvider.Resolve <IAssetPlugin>(); } if (parameter != null) { try{ string fontName = parameter.ToString(); //if a string is bound, could be a color name, add it if (value is string && !string.IsNullOrEmpty((string)value)) { fontName = $"{fontName}:{value}"; } var font = plugin.GetFontByName(fontName); return(font); }catch (Exception e) { MvxPluginLog.Instance.Error(e, $"Failed to get font {e.Message}"); } } return(null); }