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

Adding Images to a Grid Layout

$
0
0

When looking at Images, is there anything wrong with this:

grid.Children.Add(new Image { 
                Aspect = Aspect.AspectFit,
                Source = "logo.png", 
            }, 0, 1, 0, 1); // Left, Second element

I have put logo.png and logo@2x.png into the resources file in iOS and not done anything for the core file. I have also put it into the android file. It compiles, but is not showing the image when deployed, have I done something wrong?


Viewing all articles
Browse latest Browse all 77050

Trending Articles