Questions tagged [flowdocumentscrollviewer]
34 questions
16
votes
2 answers
How can I produce a "print preview" of a FlowDocument in a WPF application?
Various WPF applications of mine display FlowDocument's. I'm able to print them, using the approach described in the answer to Printing a WPF FlowDocument.
Now I'd like to add a "print preview" capability. In the normal case, I am printing the…

Cheeso
- 189,189
- 101
- 473
- 713
6
votes
1 answer
Why can't I paste text copied from a WPF FlowDocumentScrollViewer or Reader?
In a previous question I was trying to find out how to bind an ObservableCollection to a control so I could both see all the strings and select all the strings and copy them from the content control. The answers to that question eventually got me…

Tod
- 8,192
- 5
- 52
- 93
4
votes
2 answers
FlowDocumentScrollViewer FontSize doesn't change FlowDocument content FontSize
could anybody please explain my why the following code doesn't work

WiiMaxx
- 5,322
- 8
- 51
- 89
4
votes
1 answer
Printing AllPages with FlowDocumentScrollViewer
In a previous question I was trying to print from my TreeView, now i go to the parent view and I have hare an UserControl how contain an TreeView to display my search result on my WPFview, i tryed to print it and i surround with…

oCcSking
- 888
- 21
- 43
3
votes
1 answer
Horizonatal Scrolling in FlowDocumentScrollViewer
I have a flow document with images (created from drawings). I have provided a button for the user to enlarge the images (zoom) independently without zooming the text.
Is there anyway, I can force the FlowDocumentScrollViewer to display a horizontal…

PaulusHub
- 385
- 1
- 4
- 17
3
votes
1 answer
RichTextBox vs FlowDocumentScrollViewer - Why do they look so different?
I have a very simple xaml file where I am passing the same Paragraph and Run elements to both a RichTextBox and a FlowDocumentScrollViewer. The both look radically different - which is not what I was expecting.
I understand that you can style either…

Ash
- 5,057
- 7
- 35
- 49
2
votes
1 answer
FlowDocumentScrollViewer vs FlowDocumentPageViewer
I have 2 possible ways to display my FlowDocument:
FlowDocumentScrollViewer
Upside:
- This just presents me the data, with no attention to pages, so the user simply scrolls through everything. On printing I can add a header and a footer and the…

Rik De Peuter
- 703
- 2
- 9
- 24
2
votes
2 answers
How to get TextBlock to Wrap or scroll inside FlowDocumentScrollViewer
I have the following XAML inside a 4 Row by 2 column grid. The Grid.ColumnDefinitions have both ColumnDefinition Width's set to *.

Tod
- 8,192
- 5
- 52
- 93
2
votes
1 answer
FlowDocumentScrollViewer crashes when being scrolled
I'm working on a wpf application that has a FlowDocument that is bound to a FlowDocumentScrollViewer. When scrolling the FlowDocumentScrollViewer, I'm getting an InvalidOperationException: 'This TextNavigator' has no scoping text element. and this…
2
votes
1 answer
Bind FlowDocument to my FlowDocumentScrollViewer
I'm a bit of a WPF/XAML newbie, so it is probably a very obvious question.
I added a new item to my project of the FlowDocument type. Let's call it CrappyFlowDocument.xaml:

Stigma
- 1,686
- 13
- 27
2
votes
1 answer
Print flowdocument scroll viewer on multiple pages
I'm trying to print my FlowDocument (which is wrapped into a FlowDocumentScrollViewer) because I have a lot of texts/Textbox/combobox and the page height can become high !
I'm using this :
PrintDialog printDialog = new PrintDialog();
if…

user2088807
- 1,378
- 2
- 25
- 47
1
vote
2 answers
FlowDocumentPageViewer jumps be default to the last page
I have a FlowDocument that has been populated with a bunch of tables. Then I do,
DocumentReader = doc;
(DocumentReader is a FlowDocumentPageViewer and doc is FlowDocument)
When I do this, the control jumps to the last page. I tried…

Ram
- 13
- 3
1
vote
2 answers
Using a string to create a flow document
I have some text that is being read in from the database. This text is a string representation of a xaml section object. This text is going to differ based on selections from a combo box. Here is an example of some text:

The Sheek Geek
- 4,126
- 6
- 38
- 48
1
vote
1 answer
How can I get the position from FlowDocumentScrollViewer?
I'm trying to get the position from FlowDocumentScrollViewer.
And save it to db.
After that, close and re-open the program.
At that time, the scroll should be set to what I saved position.
Simply, I hope to save that I watched position. and later,…

KONE Seion
- 51
- 1
- 7
1
vote
0 answers
WPF - bug in FlowDocumentScrollViewer.IsInactiveSelectionHighlightEnabled
In .NET 4.5 added a new property FlowDocumentScrollViewer.IsInactiveSelectionHighlightEnabled
When sets to true, displays selected text when the control does not have focus with a gray color.
And the bug is, when you scroll the document, the…

codeDom
- 1,623
- 18
- 54