How can you tell if a FlowDocument contains any text that the user typed in or not?
I have an application that auto-commits changes for each screen. I want to know if the FlowDocument obtained from a RichTextBox contains any user input or if it is blank. I convert the FlowDocument to binary xaml and commit it to db. If the FlowDocument contains no user text then I do not want to add a new FlowDocument to the db.
I don’t want to parse the xaml to check if there is any user text.
The way to do this is: