Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Embedded image

$
0
0

Hi there,

In my app i have a static class for colors etc.
Now i also want to put my image resources in this class like this var image1 = ImageSource.FromResource("App.Resources.Images.logo.jpg");

But this throws the error 'System.UnauthorizedAccessException: Invalid cross-thread access'
How can i use this image?


Viewing all articles
Browse latest Browse all 58056

Trending Articles