FlowDocument 替换部分?

发布于 2024-09-24 08:30:57 字数 214 浏览 7 评论 0 原文

我有一个包含两个部分的 FlowDocument。 其中一个名为“Inhalt”。

尝试用另一个部分替换它似乎不起作用:

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

我做错了什么?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寂寞清仓 2024-10-01 08:30:57

只是为了记录。我通过用另一个网格围绕 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文