Category "flowdocument"

Positioning a Windows.Controls.Grid in a WPF flowdocument

How can I specify programmatically the position of a new grid (created programmatically, see below) within a FlowDocumt I have already created via XAML. I want

Getting current page of a FlowDocumentPageViewer

I have a FlowDocumentPageViewer control that I am populating from the code behind. I am adding text from 3-4 items. I need to know on what page item 1,2,3...