me.at.coding
me.at.coding

Reputation: 17796

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!

Upvotes: 2

Views: 1125

Answers (2)

jbe
jbe

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

Eugene Cheverda
Eugene Cheverda

Reputation: 8940

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

Upvotes: 2

Related Questions