4-Graphics_Animation/13-几何图形和图画-4使用PathGeometry/MainWindow.xaml

55 lines
2.2 KiB
Plaintext
Raw Normal View History

<Window x:Class="_13_几何图形和图画_4使用PathGeometry.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Icon="public/bunny.png" Title="13-几何图形和图画-4使用PathGeometry" Height="800" Width="800">
<StackPanel>
<Label>没有自动填充</Label>
<Path Stroke="Blue">
<Path.Data>
<PathGeometry>
<PathFigure IsClosed="True" IsFilled="False" StartPoint="10,100">
<LineSegment Point="100,100" />
<LineSegment Point="100,50" />
</PathFigure>
</PathGeometry>
</Path.Data>
</Path>
<Label>包含自动填充</Label>
<Path Fill="BlueViolet" Stroke="Blue">
<Path.Data>
<PathGeometry>
<PathFigure IsClosed="True" IsFilled="True" StartPoint="10,100">
<LineSegment Point="100,100" />
<LineSegment Point="100,50" />
</PathFigure>
</PathGeometry>
</Path.Data>
</Path>
<Label>绘制弧线-没有自动填充</Label>
<Path Fill="SlateBlue" Stroke="Blue">
<Path.Data>
<PathGeometry>
<PathFigure IsClosed="False" IsFilled="False" StartPoint="10,100">
<ArcSegment Point="250,150" Size="200,300" />
</PathFigure>
</PathGeometry>
</Path.Data>
</Path>
<Label>绘制弧线-自动填充</Label>
<Path Fill="SlateBlue" Stroke="Blue">
<Path.Data>
<PathGeometry>
<PathFigure IsClosed="False" IsFilled="True" StartPoint="10,100">
<ArcSegment Point="250,150" Size="200,300" />
</PathFigure>
</PathGeometry>
</Path.Data>
</Path>
</StackPanel>
</Window>