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="TestProject"
FontFamily="나눔고딕코딩"
FontSize="16">
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="50*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="50*" />
</Grid.RowDefinitions>
<StackPanel Grid.Row="0"
Background="Tan" />
<GridSplitter Grid.Row="1"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
Height="5"
Background="Black"
ShowsPreview="True" />
<StackPanel Grid.Row="2"
Background="Brown" />
</Grid>
</Window>
728x90
반응형
그리드형(광고전용)
'C# > WPF' 카테고리의 다른 글
[C#/WPF] Popup 엘리먼트 : IsOpen 속성을 사용해 팝업 표시하기/숨기기 (0) | 2023.01.15 |
---|---|
[C#/WPF] Menu 엘리먼트 : 메뉴 스타일 설정하기 (0) | 2023.01.14 |
[C#/WPF] GridViewRowPresenter 엘리먼트 : 데이터 표시하기 (0) | 2023.01.13 |
[C#/WPF] EventSetter 엘리먼트 : Event/Handler 속성을 사용해 ListBoxItem 객체를 마우스 더블 클릭시 처리하기 (0) | 2023.01.13 |
[C#/WPF] GridSplitter 엘리먼트 : Panel 엘리먼트의 ZIndex 첨부 속성을 사용해 그리드 스플리터 숨김 방지하기 (0) | 2023.01.12 |
[C#/WPF] DockPanel 클래스 : 공간 분할하기 (0) | 2023.01.12 |
[C#/WPF] Storyboard 엘리먼트 : 비동기 프로세스 동안 연속 애니메이션 표시하기 (0) | 2023.01.11 |
[C#/WPF] Style 엘리먼트 : TargetType 속성을 사용해 MenuItem 엘리먼트 스타일 설정하기 (0) | 2023.01.09 |
[C#/WPF] LengthConverter 클래스 : ConvertFromString 메소드를 사용해 문자열에서 길이 구하기 (0) | 2023.01.09 |
[C#/WPF] BulletDecorator 엘리먼트 사용하기 (0) | 2023.01.09 |
댓글을 달아 주세요