How do I draw a line in a flow document?
-
I want a line to sretch across the page in a flow document - i tried using a UIElement with a rectangle inside but it just crashes my VS 2008.
-
I want a line to sretch across the page in a flow document - i tried using a UIElement with a rectangle inside but it just crashes my VS 2008.
Hi, try this
<FlowDocument>
<Paragraph>
<Run
Text="lorem ipsum dolor" /> "
</Paragraph>
<BlockUIContainer>
<Rectangle
Fill="Black"
Height="1" />
</BlockUIContainer>
<Paragraph>
<Run
Text="lorem ipsum dolor" /> "
</Paragraph>
</FlowDocument>or the respective code. The "BlockUIContainer" should get you, where you want to. Cheers Jürgen
-
Hi, try this
<FlowDocument>
<Paragraph>
<Run
Text="lorem ipsum dolor" /> "
</Paragraph>
<BlockUIContainer>
<Rectangle
Fill="Black"
Height="1" />
</BlockUIContainer>
<Paragraph>
<Run
Text="lorem ipsum dolor" /> "
</Paragraph>
</FlowDocument>or the respective code. The "BlockUIContainer" should get you, where you want to. Cheers Jürgen
Excellent, thank you