2012-06-06 99 views

回答

2

有很多方法可以做你想做的事情。這是設置高度的簡單方法。

<Grid Height="100" Width="10"> 
    <Grid.RowDefinitions> 
     <RowDefinition Height="35" /> 
     <RowDefinition Height="10" /> 
     <RowDefinition Height="10" /> 
     <RowDefinition Height="10" /> 
     <RowDefinition Height="35" /> 
    </Grid.RowDefinitions> 
    <Line Grid.Row="0" Y1="0" Y2="35" X1="0" X2="0" Stroke="Black" StrokeThickness="1" HorizontalAlignment="Center" /> 
    <Path Grid.Row="1" Data="M0,0 L5,10 L10,0Z" Stroke="Black" Fill="Black" StrokeThickness="1" HorizontalAlignment="Center" /> 
    <Path Grid.Row="3" Data="M0,10 L5,0 L10,10" Stroke="Black" StrokeThickness="1" HorizontalAlignment="Center" /> 
    <Line Grid.Row="4" Y1="0" Y2="35" X1="0" X2="0" Stroke="Black" StrokeThickness="1" HorizontalAlignment="Center" /> 
</Grid> 

可以通過在Data屬性的末尾添加Z來關閉箭頭。設置填充值將使箭頭變成彩色。

這是一個很棒的link一些很酷的箭頭的東西。