Can I turn off the interactive piece of Xaml and keep the layout management?

57 views Asked by At

I am working on rendering XPS documents in a WCF service and want it to be as fast as possible.

Is it possible to turn off any UI related overhead, since there is no UI interaction necessary in my use case? I want to just utilize the UI layout management piece of Xaml. Basically, how can I turn off anything unnecessary to the creation of a document?

When I'm done rendering, I'm adding each FrameworkElement to a DocumentPages to be rendered with a DocumentPaginator and then saving that to an XPS using the XpsDocumentWriter.

1

There are 1 answers

0
Glen Thomas On BEST ANSWER

Just make sure you don't call Application.Run in your service and there will be no message loop processing Windows messages.