Hi to all WP8.1 Gurus in the house
I am developing an app that will make use of webview
when user clicks on a link it will be loaded in a webview browser
the issue is that i have multiple links (url) for the user to click on
each required, instead of me creating multiple webview for each link
i want each link to be opened in a single webview.
xaml code
<listboxitem tap="Item1_Tapped" height="80"> <border borderthickness="0,0,0,1" borderbrush="#c0c0c0">
<grid width="400">
<Image Height="40" Width="40" Source="Assets/book.png" Margin="24,15,346,24" />
<textblock width="200" verticalalignment="Center" foreground="White" fontsize="30" margin="71,20,119,30">Designers
<Image Height="40" Width="30" Source="Assets/right.png" Margin="330,30,0,30"/>
<listboxitem tap="Item1_Tapped" height="80"> <border borderthickness="0,0,0,1" borderbrush="#c0c0c0">
<grid width="400">
<Image Height="40" Width="40" Source="Assets/bible.png" Margin="24,15,346,24" />
<textblock width="200" verticalalignment="Center" foreground="White" fontsize="30" margin="71,20,119,30">Lifestyle
<Image Height="40" Width="30" Source="Assets/right.png" Margin="330,30,0,30"/>
<listboxitem tap="Item1_Tapped" height="80"> <border borderthickness="0,0,0,1" borderbrush="#c0c0c0">
<grid width="400">
<Image Height="40" Width="40" Source="Assets/bookmark.png" Margin="24,15,346,24" />
<textblock width="200" verticalalignment="Center" foreground="White" fontsize="30" margin="71,20,119,30">Fashion Tech
<Image Height="40" Width="30" Source="Assets/right.png" Margin="330,30,0,30"/>
xaml.cs code
private void Item1url_Tapped(object sender, System.Windows.Input.GestureEventArgs e)
{
NavigationService.Navigate(new Uri("/webview.xaml", UriKind.Relative));
}
private void Item2url_Tapped(object sender, System.Windows.Input.GestureEventArgs e)
{
NavigationService.Navigate(new Uri("/webview.xaml", UriKind.Relative));
}
private void Item3url_Tapped(object sender, System.Windows.Input.GestureEventArgs e)
{
NavigationService.Navigate(new Uri("/webview.xaml", UriKind.Relative));
}
Kindly help