FlowDocument Memory Issue in C#

前端 未结 8 1675
孤街浪徒
孤街浪徒 2021-01-02 15:34

I am currently attempting to deal with an issue with releasing a FlowDocument resources. I am loading an rtf file and putting it into a FlowDocument with TextRange.Load. I n

8条回答
  •  失恋的感觉
    2021-01-02 16:05

    Make sure that the Parent of the FlowDocument isn't hanging around, see here. "Instantiating a FlowDocument automatically spawns a parent FlowDocumentPageViewer that hosts the content." If that control is hanging around it could be the source of your problem.

提交回复
热议问题