检测WPF RichTextBox/FlowDocument是否为空的最佳方法是什么?
如果文档中仅存在文本,则以下内容有效.如果它包含UIElement,则不是
new TextRange(Document.ContentStart, Document.ContentEnd).IsEmpty
wpf richtextbox flowdocument
flowdocument ×1
richtextbox ×1
wpf ×1