WPF Path

 1     <Grid>
 2         <Grid.ColumnDefinitions>
 3             <ColumnDefinition Width="*" />
 4             <ColumnDefinition Width="48" />
 5         </Grid.ColumnDefinitions>
 6         <Grid Background="ForestGreen" Grid.Column="0">
 7             <Grid.RowDefinitions>
 8                 <RowDefinition Height="30"/>
 9                 <RowDefinition Height="30"/>
10             </Grid.RowDefinitions>
11             <Grid x:Name="SelectedElement" Grid.Row="0"
12                   Visibility="Visible" Margin="-2,0,-10,0">
13                 <Rectangle Fill="#FF0C5C81" Margin="0,0,15,0"/>
14                 <Path Data="M0,0 L6,6 L0,12 z"
15                       Fill="#FF0C5C81"
16                       HorizontalAlignment="Right" 
17                       Height="30" Width="15" Stretch="Fill" />
18             </Grid>
19             <Grid x:Name="MouseOverElement"  Grid.Row="1"
20                   Visibility="Visible" 
21                   Margin="-2,0,0,0">
22                 <Rectangle Fill="#19000000" Margin="0,0,15,0"/>
23                 <Path Data="M0,0 L6,6 L0,12 z" Fill="#19000000" HorizontalAlignment="Right" Height="30" Width="15" Stretch="Fill" />
24             </Grid>
25         </Grid>
26     </Grid>
View Code
原文地址:https://www.cnblogs.com/easy5weikai/p/3437642.html