private void Browser_Loaded(object sender, RoutedEventArgs e) { // Load HTML document as a string Browser.IsScriptEnabled = true; Uri uri = new Uri("Context.html", UriKind.Relative); Stream stream = Application.GetResourceStream(uri).Stream; using (StreamReader reader = new StreamReader(stream)) { // Navigate to HTML document string Browser.NavigateToString(reader.ReadToEnd()); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)