这个功能可以用来实现Grid的分层效果。即在Grid里嵌套多个Border。
四个数分别对应左、上、右、下。
<!--显示左侧的线--> <Border Grid.Row="0" Grid.ColumnSpan="3" BorderBrush="LightBlue" BorderThickness="1,0,0,0"></Border> <!--显示右侧的线--> <Border Grid.Row="0" Grid.ColumnSpan="3" BorderBrush="LightBlue" BorderThickness="0,0,1,0"></Border> <!--显示上方的线--> <Border Grid.Row="0" Grid.ColumnSpan="3" BorderBrush="LightBlue" BorderThickness="0,1,0,0"></Border> <!--显示下方的线--> <Border Grid.Row="0" Grid.ColumnSpan="3" BorderBrush="LightBlue" BorderThickness="0,0,0,1"></Border>