In WPF, to add code FixedPageto FixedDocument, you must:
var page = new FixedPage();
var pageContent = new PageContent();
((IAddChild)pageContent).AddChild(page);
This, however, is the only way:
The MSDN documentation explicitly says that this should not be done ("This API supports the .NET Framework and is not intended to be used directly from your code." PageContent.IAddChild.AddChild Method ).
Incorrectly applying to an explicit interface implementation to add content to PageContent.
Do not just do the basic operation PageContent.
The documentation does not really explain how to do this, and I could not find any other information on how to do this. Is there another way? "The right way?