我在使用流量文档时遇到了一些问题。想要创建多个段落,并在文本的开头包含一个数字。但我不想要任何缩进。有趣的是,如果我有足够的文字,那么这个数字就不会缩进。
将一些代码放到kaxaml中,这说明了问题。
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Page.Resources>
<BitmapImage x:Key="notasingle" UriSource="http://knowyourmeme.com/i/000/069/709/original/1283530186379.png?1283530926"/>
<Style TargetType="{x:Type Image}">
<Setter Property="Width" Value="100"/>
<Setter Property="Height" Value="100"/>
</Style>
<Style TargetType="{x:Type Figure}">
<Setter Property="HorizontalAnchor" Value="PageLeft"/>
</Style>
</Page.Resources>
<Grid>
<FlowDocumentScrollViewer Width="350">
<FlowDocument>
<Section>
<Paragraph>
<Figure>
<Paragraph>
<Image Source="{StaticResource notasingle}"/>
</Paragraph>
</Figure>
Some text askdfjlø ajsdføj øajsdfj aøsldkfj akløsdfj øalksjdføl jaøsdfj aløsdfjlø ajksdføl jasdløfj aasdjføklj asdkløfdjalsjkdfløakjs df
</Paragraph>
<Paragraph>
<Figure>
<Paragraph>
<Image Source="{StaticResource notasingle}"/>
</Paragraph>
</Figure>
</Paragraph>
<Paragraph>
<Figure>
<Paragraph>
<Image Source="{StaticResource notasingle}"/>
</Paragraph>
</Figure>
</Paragraph>
<Paragraph>
<Figure>
<Paragraph>
<Image Source="{StaticResource notasingle}"/>
</Paragraph>
</Figure>
</Paragraph>
<Paragraph>
<Figure>
<Paragraph>
<Image Source="{StaticResource notasingle}"/>
</Paragraph>
</Figure>
</Paragraph>
</Section>
</FlowDocument>
</FlowDocumentScrollViewer>
</Grid>
</Page>