[SOLVED] NavigationBar.UserAvatar

Answered Closed
0
0

Hi Wisej,

I see NavigationBar.UserAvatar using image resource .

How to set NavigationBar.UserAvatar by Image.FromFile or Image.FromStream?

Thank you.

  • You must to post comments
Best Answer
0
0

Hi,

NavigationBar.UserAvatar takes a string argument that’s a URL.

You can use the file’s path on the system, a web URL, or a base64 encoded image, something like:

Convert.ToBase64String(File.ReadAllBytes(imageFilepath));

Hope this helps!

Best,

Levie

  • You must to post comments
Showing 1 result