#255 – Flow Text Around an Image in a FlowDocument
March 24, 2011 Leave a comment
You can flow text around a user control in a FlowDocument using a Floater element. One common use of a Floater is to flow text around an image.
You include a Floater as a child element of the Paragraph that contains the text that should flow around the image. Below is a fragment of the content of a FlowDocument, which contains the Floater.
<Paragraph> <Floater HorizontalAlignment="Left" Width="200"> <BlockUIContainer> <Image Source="Twilight.jpg" /> </BlockUIContainer> </Floater> The said Eliza, John, and Georgiana etc. etc. </Paragraph>