레이아웃 - <Border />클래스 (레이아웃에 테두리 주기)
.NET프로그래밍/Silverlight 3.0 2009. 11. 24. 18:48 |
<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>
-------------------------------------------------------------------------------------
[실행결과]
'.NET프로그래밍 > Silverlight 3.0' 카테고리의 다른 글
레이아웃 확장 - DockPanel (0) | 2009.11.25 |
---|---|
레이아웃 확장 - WrapPanel (0) | 2009.11.25 |
Padding(패내마외)과 Margin(좌상우하) (0) | 2009.11.24 |
레이아웃 - StackPanel 요소(컨트롤) (0) | 2009.11.24 |
레이아웃 - Grid 컨트롤 (0) | 2009.11.24 |