레이아웃 - <Border />클래스 (레이아웃에 테두리 주기)
<Border /> : 레이아웃에 테두리 주기
- <Border />
- 모든 영역에 추가로 테두리를 부여해줄 수 있음
- 주요 속성
- 색상 : BorderBrush="Red"
- 두께 : BorderThickness="5"
- 라운드 처리 : CornerRadius="10"
-------------------------------------------------------------------------------------
[MainPage.xaml]
<UserControl x:Class="RiaBorder.MainPage"
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"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
<Grid x:Name="LayoutRoot" Background="White">
<Border BorderBrush="blue" BorderThickness="10" CornerRadius="30">
<StackPanel Background="Yellow">
<Button Content="버튼 1" FontSize="30"></Button>
<Button Content="버튼 2" FontSize="30"></Button>
</StackPanel>
</Border>
</Grid>
</UserControl>
-------------------------------------------------------------------------------------
[실행결과]