I have the following in a WPF application:
- Create a stackpanel
- Create a bitmapsource from the stackpanel
- Create a FixedDocument
So, I'm trying to get from step 2 to step 3. FixedDocuments only accept UIElement objects for Children.Add. Is there a way to get from a bitmapsource to a UIElement (or some other object) that will be accepted by a FixedDocuemnt? Yes, I realize that a Stackpanel is a UIElement and I could add that to my document but I prefer to add it as an image.