****Guys Help me out with this.. I just want to add images to it to make a scrollview ..The images are not getting loaded!!!
namespace MenuList
{
public class HomePage : ContentPage
{
public HomePage ()
{
Title = "Home";
Icon = "home.png";
Image image1 = new Image {
Source = ImageSource.FromResource("image1.png"),
HeightRequest = 50,
WidthRequest = 50,
};
Image image2 = new Image {
Source = ImageSource.FromResource("image2.png"),
HeightRequest = 50,
WidthRequest = 50,
};
Image image3= new Image {
Source = ImageSource.FromResource("image3.png"),
HeightRequest = 50,
WidthRequest = 50,
};
StackLayout st = new StackLayout (){
Children = {image1,image2,image3}
};
Content = new ScrollView {
Content= st,
Orientation = ScrollOrientation.Horizontal
};
}
}
}