How to convert a string
(Image) to FileImageSource
(Icon)?
I need to display a photo in ToolbarItems
in the right corner of the hamburger menu.
I tried it that way, but it did not work. My code:
FileImageSource IconFoto = new FileImageSource();
IconFoto = Foto; // Imagem retornada do BD como string
this.ToolbarItems.Add(new ToolbarItem("nome", IconFoto, () =>
{
}, ToolbarItemOrder.Primary));