Avalonia 实现一条虚线
Avalonia版本 V0.10.18
Border Height="1">
<Border.Background>
<VisualBrush AlignmentX="Left"
AlignmentY="Top"
SourceRect="0,0,0,0"
DestinationRect="15,15,15,15"
Stretch="None"
TileMode="Tile">
<VisualBrush.Visual>
<Grid Width="6" Height="1">
<Line Stroke="DarkGray"
StrokeThickness="2"
StartPoint="0,0"
EndPoint="10,0">
</Line>
</Grid>
</VisualBrush.Visual>
</VisualBrush>
</Border.Background>
</Border>
喜欢的朋友请帮忙点个赞!!!