FlowDocument replace Section?

孤者浪人 提交于 2020-01-25 03:41:08

问题


I have a FlowDocument with two Sections. One is named 'Inhalt'.

Trying to replace it with another Section doesn't seem to work:

        InfoBoxAuditorium.Inhalt = InfoBoxAuditorium.Resources["DokumentWohnzimmer"] as Section;

What am I doing wrong?


回答1:


Just for the records. I solved this by surrounding the FlowDocument with another Grid. The first row contains the stuff I don't want to be replaced. Easy but it does its job.



来源:https://stackoverflow.com/questions/3781109/flowdocument-replace-section

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!