FlowDocument替换节? [英] FlowDocument replace Section?

查看:64
本文介绍了FlowDocument替换节?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有两个部分的FlowDocument.一种叫做吸入".

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;

我在做什么错了?

推荐答案

仅用于记录.我通过将FlowDocument与另一个网格一起解决了这一问题.第一行包含我不想替换的内容.容易,但确实能完成工作.

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.

这篇关于FlowDocument替换节?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆