티스토리 뷰
http://www.wpf-tutorial.com/panels/gridsplitter/
GridSplitter을 이용하면 row 혹은 column의 비율을 사용자가 변경할 수 있습니다.
1 2 3 4 5 6 7 8 9 10 | <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> <ColumnDefinition Width="5" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <TextBlock FontSize="55" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap">Left side</TextBlock> <GridSplitter Grid.Column="1" Width="5" HorizontalAlignment="Stretch" /> <TextBlock Grid.Column="2" FontSize="55" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap">Right side</TextBlock> </Grid> | cs |
중앙에 위치한 GridSplitter을 이용하여 좌우측의 비율을 조정할 수 있습니다.
http://www.wpf-tutorial.com/panels/grid-usage-example-contact-form/
연락처 양식
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <Grid Margin="10"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <Label>Name:</Label> <TextBox Grid.Column="1" Margin="0,0,0,10" /> <Label Grid.Row="1">E-mail:</Label> <TextBox Grid.Row="1" Grid.Column="1" Margin="0,0,0,10" /> <TextBox Grid.Row="2" Grid.ColumnSpan="2" AcceptsReturn="True" /> </Grid> | cs |
'C# > WPF' 카테고리의 다른 글
WPF tutorial - Using the DataContext, The UpdateSourceTrigger property (0) | 2017.06.22 |
---|---|
WPF tutorial - Introduction to WPF data binding (0) | 2017.06.22 |
WPF tutorial - The Grid(Rows&Columns, Units,Spanning) (0) | 2017.06.22 |
WPF tutorial - The DockPanel (0) | 2017.06.22 |
WPF tutorial - The StackPanel (0) | 2017.06.22 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 타일링
- MVVM
- BFS
- 그래프
- UIView Animation
- DP
- XAML
- Grid
- 코딩야학
- CustomCollectionViewCell
- Custom Cell
- 백준온라인
- Fakebook
- 스택
- Add TapGesture
- 문자열
- 객체
- listview
- Cell Animation
- 데이터 바인딩
- dfs
- C++
- command
- CollectionView
- BOJ
- 생활코딩
- WPF
- FEED
- 백준
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함