Border控件可以放在其他控件内部,给其他控件画边框,其他容器必须支持双标签
比如:
<Window x:Class="_02WpfAppDemo.BoderDemo"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:_02WpfAppDemo"
mc:Ignorable="d"
Title="BoderDemo" Height="450" Width="800">
<!--粗度按左上右下的顺序来写-->