How can I hide a Paragraph in a FlowDocument?

后端 未结 4 1116
我寻月下人不归
我寻月下人不归 2021-01-11 13:33

Is there any way to use databinding to show or hide a Paragraph within a FlowDocument? (I want to use MVVM, but with a FlowDocument as my view.)

Paragraph doesn\'t h

4条回答
  •  -上瘾入骨i
    2021-01-11 14:13

    Options I can think of...

    1. Hide the content of the paragraph (don't include the paragraph in your model)
    2. Extend Paragraph (or one of its base classes) and provide a dependency property for IsVisible

提交回复
热议问题