Live2D 看板娘 / Demo

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>

posted @ 2023-04-29 09:11  MChuang  阅读(299)  评论(0编辑  收藏  举报