当我使用Property 在in内的元素BorderThickness
上绘制边框时,有时边框看起来很模糊。Paragraph
FlowDocument
FlowDocumentScrollViewer
这是我的代码片段。
<Grid>
<FlowDocumentScrollViewer>
<FlowDocument>
<Paragraph BorderBrush="Black" BorderThickness="0.5">This is a paragraph</Paragraph>
<Paragraph BorderBrush="Black" BorderThickness="0.5">This is a paragraph</Paragraph>
<Paragraph BorderBrush="Black" BorderThickness="0.5">This is a paragraph</Paragraph>
</FlowDocument>
</FlowDocumentScrollViewer>
</Grid>
我试图将SnapsToDevicePixels="True"
andUseLayoutRounding="True"
放在Grid
or上FlowDocumentScrollViewer
(因为它Paragraph
本身不支持这些属性),但没有任何反应。
这个问题还有问题吗?如果没有,我该如何解决?