The text of this article is not in this database — only its details are. Read it on the old site: Flow and List Document in WPF
2 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Flow and List Document in WPF
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
dipayan sukulPosted Oct 27, 2011, 3:15 PM
really helpfull :)
jeanie simmonsPosted Jun 14, 2011, 9:53 AM
How can i scroll to the bottom without using the scroll bar? I've tried FlowDocReader.Document.Blocks.LastBlock.BringIntoView(); as instructed in other sites but it doesn't work. Here is my code snippet: // Open document string filename = dlg.FileName; FileNameTextBox.Text = filename; Paragraph paragraph = new Paragraph(); paragraph.Inlines.Add(System.IO.File.ReadAllText(filename)); FlowDocument document = new FlowDocument(paragraph); FlowDocReader.Document = document; //next line - scroll to bottom - this doesn't work FlowDocReader.Document.Blocks.LastBlock.BringIntoView(); //next line - scroll to top - this works // FlowDocReader.Document.BringIntoView();