Grid 边 如何 画出实线 ?
showlines 方法 显示的是 虚线 而且比较难看 , 请问如何 把它 改成一般的实线呢 ?
在文档中没看到哦 grid 样式 ,怎么修改 ?
[解决办法]
<Border Height="480" Width="640" CornerRadius="10,10,10,10" BorderBrush="#FFFF0000" BorderThickness="2,2,2,2">
<Grid x:Name="LayoutRoot" Height="480" Width="640" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.498*"/>
<ColumnDefinition Width="0.502*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="0.498*"/>
<RowDefinition Height="0.502*"/>
</Grid.RowDefinitions>
<Rectangle HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Stretch" Stroke="#FF008BFF"/>
<Rectangle HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Stretch" Stroke="#FF008BFF" Grid.Column="1"/>
<Rectangle HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Stretch" Stroke="#FF008BFF" Grid.Row="1"/>
<Rectangle HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Stretch" Stroke="#FF008BFF" Grid.Row="1" Grid.Column="1"/>
<Button HorizontalAlignment="Stretch" Margin="38,70,65.7200012207031,88.0400009155273" VerticalAlignment="Stretch" Content="A"/>
<Button HorizontalAlignment="Stretch" Margin="38,70,65.7200012207031,88.0400009155273" VerticalAlignment="Stretch" Content="B" Grid.Row="1"/>
<Button HorizontalAlignment="Stretch" Margin="38,70,65.7200012207031,88.0400009155273" VerticalAlignment="Stretch" Content="C" Grid.Column="1"/>
<Button HorizontalAlignment="Stretch" Margin="38,70,65.7200012207031,88.0400009155273" VerticalAlignment="Stretch" Content="D" Grid.Row="1" Grid.Column="1"/>
</Grid>
</Border>