Creation Of Web Browser in C#

Creating 'Web Browser'

Main Script

{

         string name = "http://" +  textbox1.Text;

         Uri url = new Uri(name, UriKind.Absolute);

         webview1.Source = url;

 }

private void textbox1_Tapped(object sender, TappedRoutedEventArgs e)

{

       this.Frame.GoBack();

}
 
Navigation

this.Frame.Navigate(typeof(BlankPage1));
 
Go in back
 

this.Frame.GoBack(); //tapped box

this.Frame.GoBack(); //button of 2nd window

  
Launching 'URL' in Web Browser

public MainPage()

{

     this.InitializeComponent();

}

/// <summary>

/// Invoked when this page is about to be displayed in a Frame.

/// </summary>

/// <param name="e">Event data that describes how this page was reached.  The Parameter

/// property is typically used to configure the page.</param>

protected override void OnNavigatedTo(NavigationEventArgs e)

{

}

private async void hypertextbutton1_Click(object sender, RoutedEventArgs e)

{

     string name = "http://facebook.com/abc";

     Uri url = new Uri(name, UriKind.Absolute);

     await Launcher.LaunchUriAsync(url);

}   

Ebook Download
View all
Learn
View all