WPF Path和图形
<Window x:Class="GeometryDemo.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="876.866" Width="686.194">
<Window.Resources>
<GeometryGroup x:Key="Geometry">
<EllipseGeometry Center="100,100" RadiusX="50" RadiusY="20"></EllipseGeometry>
<RectangleGeometry Rect="100,100 120,120" ></RectangleGeometry>
</GeometryGroup>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Path Stroke="Green" Fill="Yellow" Data="{StaticResource Geometry}">
</Path>
<Path Grid.Row="1" Stroke="Green" Fill="Red" Data="{StaticResource Geometry}">
</Path>
</Grid>
</Window>