Questions tagged [flowdocument]

Microsoft's WPF FlowDocument technology allows to render embedded, dynamically adjusted and re-flowing document content that supports columns, pagination and search.

A flow document is designed to "reflow content" depending on window size, device resolution, and other environment variables. Flow content can be complex, consisting of various elements including text, images, tables. In addition, flow documents have a number of built in features including search, viewing modes that optimize readability, and the ability to change the size and appearance of fonts.

571 questions
0
votes
0 answers

How to display WPF FlowDocument in Single Line(Without Wrap)?

I have created FlowDocument & assign FlowDocument PageHeight = 100.Then i hav added FlowDocument into TextBlock through Inlines.Add method with FlowDocumentscrollViewer. How to display my FlowDocument content in single line irrespective of…
0
votes
0 answers

ListView present in BlockUIContatiner not splitting up in pages in Flow Document when it is paginated

I am using blockuicontainer and displaying listview in it. When the document is paginated, the list view is not splitting up in pages and instead it is moving to a new page. I want my list view to displayed continously and splitting up in pages when…
siva
  • 357
  • 4
  • 7
  • 17
0
votes
1 answer

Typographic entities in WPF FlowDocument

Is it a way to add to FlowDocument content specific typographic symbols (dashes, greek symbols, etc)?
darja
  • 4,985
  • 9
  • 33
  • 47
0
votes
1 answer

WPF ScrollViewer scroll to element of FlowDocument

I am working on a chat application. There is a scrollviewer containing a richtextbox which contains a flowdocument which contains paragraphs in its blocks. Now when a new message is added then the scrollviewer scrolls down its content properly…
user2042930
  • 640
  • 1
  • 7
  • 14
0
votes
1 answer

How do I serialize the selection of an RTB with a custom control that has a bound DependencyProperty?

I've got a sample reproduction that crashes despite protection. It looks like when I try manually serializing a TextRange that contains a custom control that contains a bound DependencyProperty crashes because it fails an assert, because the value…
McKay
  • 12,334
  • 7
  • 53
  • 76
0
votes
1 answer

FlowDocument and XamlReader x:Class

In my MainWindow I have a FlowDocumentScrollViewer binding its property Document to a FlowDocument in my MainViewModel. This document is loaded from an external xaml file store on a remote computer. Currently I'm able to load this document properly…
Bastien
  • 994
  • 11
  • 25
0
votes
0 answers

CutstomControl Selectable MultilineTextBox

I will have to create a Control that supports multiline-copy of text. It looks like this: Label1: ContentLine1 Label2: ContentLine2 (right aligned) Blah: ContentLine2 Hyperlink Label3: ContentLine…
Gope
  • 1,672
  • 1
  • 13
  • 19
0
votes
0 answers

Flowdocument Table Cell Background issue

Wanted to set background image of TableCell in
Tanul
  • 354
  • 4
  • 20
0
votes
1 answer

wpf treat word as single "character"/element

I have a custom text editor derived from RichTextBox where the user can drag an object into the box and it displays the object's name (amongst other, keyboard entered, text). I would like to treat this name as a single, uneditable, entity: the user…
ryan0270
  • 1,135
  • 11
  • 33
0
votes
1 answer

FlowDocument extending previous Run instead of creating new

I'm working on a user control which deals with styling selections of text, I've encountered an issue where: Enter the text "This is a bunch of text" into my control Highlight "of text" Do the thing which changes the styling of the selection Press…
0
votes
3 answers

Error while adding an image in FlowDocument

I'm using this code to add an image into a FlowDocument doc.Blocks.Add(new BlockUIContainer(image)); However, I get this error: Argument 1: cannot convert from 'System.Drawing.Image' to 'System.Windows.UIElement' How do I add an image into a…
Vinshi
  • 313
  • 2
  • 7
  • 27
0
votes
1 answer

WPF layout suitable for display of binary data

I have a WinForms display of some captured network data (binary). I'm trying to move to WPF as a learning exercise, and because it should be more maintainable going forward. As you may have seen, the most common display format for binary data is a…
Ben Voigt
  • 277,958
  • 43
  • 419
  • 720
0
votes
1 answer

Coloring certain words in a RichTextBox

i try to change the color of certains words in a RichTextBox, finally i found a code snipped wich help me alot, but now i have a problem. The code only colours up the first "NULL" in my RichTextBox. Can you help me to find a solution ? Thanks for…
Fridolin
  • 85
  • 1
  • 1
  • 7
0
votes
0 answers

Determine how many paragraphs fit on a Flowdocument

I am creating a Flowdocument with several Paragraphs dynamically, in order te take advantage of the Paragraph's KeepTogether property. In this way the paragraphs will never be split across two pages when printing. The paragraphs will have different…
Dabblernl
  • 15,831
  • 18
  • 96
  • 148
0
votes
1 answer

How to store style information lastingly in a FlowDocument paragraph?

My text application is hosting a FlowDocument in a WPF RichTextBox. You can give each paragraph its own style (FrameworkContentElement.Style). A text description of the style refering to the current paragraph (at caret position) is shown in a…
Pollitzer
  • 1,580
  • 3
  • 18
  • 28