where or in which project do we add the image files (.png or .jpeg) ?

CKuttan 21 Reputation points
2020-11-20T15:31:02.727+00:00

Hi,

I am a beginner in Xamarin Application and i have a doubt. I created a new Xamarin crossplatform application and i want to add images to my listview's listitems. We have 3 projects in Xamarin solution - one is the normal wpf project, another 2 projects are Android and iOS projects. I am going to add a new listview control into the MainPage.xaml and in the listview itemtemplate i want to add an image for each items. But my question is - where or in which project do we add the image files (.png or .jpeg) ? I am asking the physical location in the solution explorer ?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,298 questions
0 comments No comments
{count} votes

1 additional answer

Sort by: Most helpful
  1. acmeaney 76 Reputation points
    2020-11-20T18:34:23.483+00:00

    It would depend on what you are looking for from the images.

    Do you want them to scale in resolution with the phone densities? Do you want to use the same images in a toolbar or as app icons?

    You might be better off sticking them in the native resources in those cases. images

    This is the default "How to work with images" thread linked to where it tells you how to store things.

    Embedded resources are simpler, and if that works for you I would probably say go for it.

    0 comments No comments