0

<DockPanel LastChildFill="True" Height="18">
<Image Height="18" Width="80">
    <Image.Source>
        <DrawingImage>
            <DrawingImage.Drawing>
                <GeometryDrawing Brush="Black">
                    <GeometryDrawing.Geometry>
                        <LineGeometry StartPoint="0,9" EndPoint="38,9" />
                    </GeometryDrawing.Geometry>
                    <GeometryDrawing.Pen>
                        <Pen DashCap="Flat"
                             Brush="Black"
                             Thickness="0.5"
                             DashStyle="{x:Static DashStyles.Dot}, Mode=OneTime}"
                         />
                    </GeometryDrawing.Pen>
                </GeometryDrawing>
            </DrawingImage.Drawing>
        </DrawingImage>
    </Image.Source>
</Image>
<TextBlock Height="18" Text="{Binding Name, Mode=OneTime}" Margin="3,2,5,0" />
</DockPanel>
4

1 回答 1

2

删除 DashCap="Flat" 你会看到这些点。还有其他可以使用的 DashCap:圆形、方形、三角形。

于 2009-10-15T14:56:58.827 回答