示例#1
0
        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);
        }
示例#2
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     HTMLSource.Navigate(new Uri("ms-appx-web:///SampleHTML.html"));
     d = new DataPackage();
 }