Domanda


<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>
È stato utile?

Soluzione

Rimuovi DashCap = "Flat" e vedrete i puntini. Ci sono altri DashCaps che funzioneranno:. Rotondo, quadrato, triangolo

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top