locked
Displaying image from referenced project asset catalog RRS feed

  • Question

  • User365854 posted

    I have a Xamarin.Forms solution with a PCL project and iOS project. In the iOS project I reference another iOS project.

    I'm trying to display an image set from the referenced project, but nothing shows up. If I move the image to the local iOS project, it shows up fine.

    Below is the code I'm using to show the image.

    xml <Image Source="outline_contact_support_black_24pt"/>

    Below is a screenshot from Visual Studio of the asset catalog.

    Tuesday, September 3, 2019 12:28 PM

Answers

  • User369978 posted

    The default image path is under Local project Assets or Resources folder , it's impossible to show image from referenced project .

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, September 3, 2019 2:32 PM
  • User365854 posted

    I can show image resource (such as x@1.png, x@2.png, x@3.png files in Resources folder) - from referenced project. But I have trouble with asset catalogs. The solution is to move images out of asset catalog and into Resources folder.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, September 4, 2019 6:33 AM

All replies

  • User369978 posted

    The default image path is under Local project Assets or Resources folder , it's impossible to show image from referenced project .

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, September 3, 2019 2:32 PM
  • User365854 posted

    I can show image resource (such as x@1.png, x@2.png, x@3.png files in Resources folder) - from referenced project. But I have trouble with asset catalogs. The solution is to move images out of asset catalog and into Resources folder.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, September 4, 2019 6:33 AM