Is it possible to vertical align listitem marker in a flowdocument?
Posted
by Oggy
on Stack Overflow
See other posts from Stack Overflow
or by Oggy
Published on 2010-03-26T08:33:26Z
Indexed on
2010/03/26
10:23 UTC
Read the original article
Hit count: 335
wpf
|flowdocument
I want to to align listitem marker to the top, default is alignment to the bottom of the first block.
My faulty code:
<Grid>
<FlowDocumentScrollViewer>
<FlowDocument>
<List MarkerStyle="Decimal">
<ListItem>
<BlockUIContainer>
<Grid>
<Rectangle Height="100" Fill="HotPink" />
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center">Picture</TextBlock>
</Grid>
</BlockUIContainer>
<Paragraph>TextTextTextTextTextTextText</Paragraph>
</ListItem>
</List>
</FlowDocument>
</FlowDocumentScrollViewer>
</Grid>
© Stack Overflow or respective owner