Search code examples
wpfflowdocument

FlowDocument inside Window / Grid?


I need to host a FlowDocument inside a Window / Grid or in other words I don't want the Flowdocument to be the root element. Can somebody please help me how this can be done? I only found informations on how to host UIElements inside a FlowDocument, but not how to place the FlowDocument inside something else. Thanks for any hint!


Solution

  • Use FlowDocumentViewer or it inheritors. If you need edit this document - use RichTextBox.