Hedge
Hedge

Reputation: 16748

FlowDocument replace 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?

Upvotes: 1

Views: 952

Answers (1)

Hedge
Hedge

Reputation: 16748

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.

Upvotes: 1

Related Questions