728x90
반응형
728x170
■ GridSplitter 엘리먼트를 사용하는 기본적인 방법을 보여준다.
▶ MainWindow.xaml
<Window x:Class="TestProject.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="800"
Height="600"
Title="GridSplitter 엘리먼트 사용하기"
FontFamily="나눔고딕코딩"
FontSize="16">
<Grid Margin="10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Button Grid.Row="0" Grid.Column="0"
Content="버튼 1" />
<GridSplitter Grid.Row="0" Grid.Column="1"
HorizontalAlignment="Center"
VerticalAlignment="Stretch"
Width="10"
ShowsPreview="True" />
<Grid Grid.Row="0" Grid.Column="2">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Button Grid.Row="0" Grid.Column="0"
Content="버튼 2" />
<GridSplitter Grid.Row="1" Grid.Column="0"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
Height="10"
ShowsPreview="True" />
<Button Grid.Row="2" Grid.Column="0"
Content="버튼 3" />
</Grid>
</Grid>
</Window>
728x90
반응형
그리드형(광고전용)
'C# > WPF' 카테고리의 다른 글
[C#/WPF] BmpBitmapDecoder 클래스 : BMP 이미지 파일 로드하기 (Uri 사용) (0) | 2020.08.05 |
---|---|
[C#/WPF] BmpBitmapDecoder 클래스 : BMP 이미지 파일 로드하기 (FileStrem 사용) (0) | 2020.08.05 |
[C#/WPF] DoubleAnimation 엘리먼트 : EasingFunction 속성에서 BackEase 객체 사용하기 (0) | 2020.08.05 |
[C#/WPF] ScrollBar 엘리먼트 : 색상 스크롤하기 (0) | 2020.08.04 |
[C#/WPF] o:Freeze 속성 : Freezable 엘리먼트의 IsFrozen 속성 상태를 true로 설정하기 (0) | 2020.08.04 |
[C#/WPF] Grid 엘리먼트 : ShowGridLines 속성 사용하기 (0) | 2020.08.04 |
[C#/WPF] 도형 위치/크기 변경하기 (0) | 2020.08.04 |
[C#/WPF] 도형 위치/크기 변경하기 (Polygon 제외) (0) | 2020.08.04 |
[C#/WPF] DockPanel 클래스 : LastChildFill 속성 사용하기 (0) | 2020.08.04 |
[C#/WPF] Window 클래스 : WindowStyle 속성 사용하기 (0) | 2020.08.04 |
댓글을 달아 주세요