private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            button1.IsEnabled = false;

            HtmlPaginator pagr = new HtmlPaginator();
            pagr.PageReady += new EventHandler<HtmlPaginator.PageImageEventArgs>(pagr_PageReady);
            //pagr.GeneratePages(StackOverflowWPF.Properties.Resources.bigHtmlString);
            pagr.GeneratePages("http://www.stackoverflow.com");
        }
Ejemplo n.º 2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            button1.IsEnabled = false;

            HtmlPaginator pagr = new HtmlPaginator();

            pagr.PageReady += new EventHandler <HtmlPaginator.PageImageEventArgs>(pagr_PageReady);
            //pagr.GeneratePages(StackOverflowWPF.Properties.Resources.bigHtmlString);
            pagr.GeneratePages("http://www.stackoverflow.com");
        }
 void pagr_PageReady(object sender, HtmlPaginator.PageImageEventArgs e)
 {
     images.Add(e.PageImage);
     button1.IsEnabled = true;
 }