How can I hide a Paragraph in a FlowDocument?

后端 未结 4 1029
我寻月下人不归
我寻月下人不归 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条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-11 14:14

    I had the exact same problem and handled it successfully by wrapping the content of the ListItem in a InlineUIContainer, like so:

      
        
          
            
              Components
            
          
        
      
    

    From here you can set the visbility of "HideMe" in code or through a binding.

提交回复
热议问题