Reputation: 17796
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!
Upvotes: 2
Views: 1125
Reputation: 7031
The ViewModel sample application of the WPF Application Framework (WAF) shows how to host a FlowDocument inside a UserControl.
Please look for the EmailClient.Presentation\Views\ShellWindow\MessageContentView.xaml file.
Upvotes: 0
Reputation: 8940
Use FlowDocumentViewer or it inheritors. If you need edit this document - use RichTextBox.
Upvotes: 2