WPF流程文档中有关段落和缩进的问题
我在处理流程文档时遇到一些问题。希望创建多个段落,开头有一个由文本包围的图形。但我不想要任何缩进。有趣的是,如果我有足够的文本,图形就不会缩进 这里有一些代码要放在kaxaml中,说明了这个问题WPF流程文档中有关段落和缩进的问题,wpf,flowdocument,Wpf,Flowdocument,我在处理流程文档时遇到一些问题。希望创建多个段落,开头有一个由文本包围的图形。但我不想要任何缩进。有趣的是,如果我有足够的文本,图形就不会缩进 这里有一些代码要放在kaxaml中,说明了这个问题 <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Page.Resour
<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>
一些文本如Ajdføajsdføajsdfj aøsldkfj akløsdfjøalksjdføl jaøsdfj aløsdfjløajksdføl jasdløfj aasdføklj asdkl fdjalsjkdføakjs df