Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Updated 26-Oct-15 7:22am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900