With this code, the method "FirstBlock.BringIntoView()" has again no effect.
StringReader sr = new StringReader(song.Lyrics);
txtLyrics.Inlines.Clear();
string line = null;
while ((line = sr.ReadLine()) != null)
{
txtLyrics.Inlines.Add(line);
txtLyrics.Inlines.Add(new LineBreak());
}
//((IDocumentPaginatorSource)docLyrics).DocumentPaginator.GetPage(0); // no effect
docLyrics.Blocks.FirstBlock.BringIntoView(); // no effect --> the FlowDocumentReader remains on the current page (before change)
Thanks |