Embedded Images from other Project

Aug 8 2021 4:01 PM

I want to display the photos in the folder "Images" directly on a 
Image object (In AdProject). But this folder is in another project in my solution(In AdWebApi).

Does anyone know how I can do this?

In the Microsoft documentation, it says that it can be done this way, but I did not realize that instead of "..." what should I put !

MyImage.Source = ImageSource.FromResource("AdWebApi.Images.filename.png", typeof(...)?.GetType().Assembly);


 When I do not have access to the objects of that assembly from Xamrin Project, how can I get typeof(Object)  ?

Answers (4)