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 | <Window x:Class="WpfApp6.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:WpfApp6" mc:Ignorable="d" Title="MainWindow" Height="450" Width="800"> <Grid> <StackPanel Name="sp1" Width="80" Height="120" HorizontalAlignment="Left" VerticalAlignment="Top"> <Button Name="btn1" Width="75" Height="20">버튼1</Button> <Button Name="btn2" Width="75" Height="20">버튼2</Button> <Button Name="btn3" Width="75" Height="20">버튼3</Button> <Button Name="btn4" Width="75" Height="20">버튼4</Button> <Button Name="btn5" Width="75" Height="40" Padding="10">버튼5</Button> </StackPanel> <StackPanel Name="sp2" Width="250" Margin="100,50" Orientation="Horizontal"> <Rectangle Height="50" Width="50" Stroke="Black" Fill="Aqua"/> <Rectangle Height="50" Width="50" Stroke="Black" Fill="DarkBlue"/> <Rectangle Height="50" Width="50" Stroke="Black" Fill="Firebrick"/> <Rectangle Height="50" Width="50" Stroke="Black" Fill="ForestGreen"/> </StackPanel> </Grid> </Window> | cs |
'프로그래밍' 카테고리의 다른 글
[WPF]레이아웃 (0) | 2019.02.01 |
---|---|
[WPF]WrapPanel (0) | 2019.02.01 |
[WPF]grid를 이용한 로그인화면 (0) | 2019.01.31 |
[WPF]DockPanel (0) | 2019.01.31 |
[WPF] Canvas (0) | 2019.01.30 |
댓글