private void HTMLButton_Click(object sender, RoutedEventArgs e) { string s = HtmlFormatHelper.CreateHtmlFormat(HTMLSource.InvokeScript("eval", new string[] { "document.documentElement.outerHTML;" })); d.SetHtmlFormat(s); string t = HtmlUtilities.ConvertToText(s); d.SetText(t); Clipboard.SetContent(d); }
protected override void OnNavigatedTo(NavigationEventArgs e) { HTMLSource.Navigate(new Uri("ms-appx-web:///SampleHTML.html")); d = new DataPackage(); }