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 29 | <Window x:Class="WpfApp1.MainWindow" 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" xmlns:local="clr-namespace:WpfApp1" mc:Ignorable="d" Title="MainWindow" Height="600" Width="1000"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="150"/> <RowDefinition Height="150"/> <RowDefinition Height="150"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="150"/> <ColumnDefinition Width="150"/> <ColumnDefinition Width="150"/> </Grid.ColumnDefinitions> <Rectangle Fill="Red" Grid.Row="0" Grid.Column="0"/> <Rectangle Fill="Blue" Grid.Row="0" Grid.Column="1"/> <Rectangle Fill="Cyan" Grid.Row="0" Grid.Column="2"/> <Rectangle Fill="Green" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"/> <Rectangle Fill="Yellow" Grid.Row="1" Grid.Column="2" Grid.RowSpan="2"/> <Rectangle Fill="Magenta" Grid.Row="2" Grid.Column="0"/> <Rectangle Fill="Bisque" Grid.Row="2" Grid.Column="1"/> </Grid> </Window> | cs |
'프로그래밍' 카테고리의 다른 글
2_15. [c#]자동프로퍼티 (0) | 2019.01.30 |
---|---|
[WPF]트리구조 두가지 (0) | 2019.01.28 |
2_15.자동프로퍼티 (0) | 2019.01.27 |
2_14. 프로퍼티 (0) | 2019.01.27 |
2_13. 추상클래스 (0) | 2019.01.27 |
댓글