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

Exception ImageSource.FromFile to navigate between pages

$
0
0

public partial class Page1 : ContentPage
{
bool isCalled = false;
public Page1()
{
InitializeComponent();
}

void OnButtonClicked(object sender, EventArgs e)
{

    Navigation.PushAsync(new Page2());
}
protected override void OnAppearing()
{
    Image.Source = ImageSource.FromFile("/storage/emulated/0/DCIM/Camera/IMG_20151215_113644.jpg");
    base.OnAppearing();
}

}
public partial class Page2 : ContentPage
{
public Page2()
{
InitializeComponent();
}
protected override void OnAppearing()
{
Image.Source = Image.Source = ImageSource.FromFile("/storage/emulated/0/DCIM/Camera/IMG_20151228_161737.jpg");
base.OnAppearing();
}

}


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>