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 30 31 32 33 34 35 | <Window x:Class="WpfApp2.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:WpfApp2" mc:Ignorable="d" Title="MainWindow" Height="450" Width="800"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="1*" /> <!--배율 1:1:1 --> <ColumnDefinition Width="1*" /> <ColumnDefinition Width="1*" /> </Grid.ColumnDefinitions> <Button Grid.Column="0" Height="150" Width="150"> <TextBlock Width="100">텍스트상자</TextBlock> </Button> <Button Grid.Column="1" Width="150" Height="150"> <Image Source="hand-man-person-black-and-white-alone-male-1143377-pxhere.com.jpg"/> </Button> <Button Grid.Column="2" Width="150" Height="150"> <Grid Width="150" Height="150"> <Grid.RowDefinitions> <RowDefinition Height="7*"/> <RowDefinition Height="3*"/> </Grid.RowDefinitions> <Image Source="hand-man-person-black-and-white-alone-male-1143377-pxhere.com.jpg" Grid.Row="0"/> <TextBlock Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center">좌절</TextBlock> </Grid> </Button> </Grid> </Window> | cs |
'프로그래밍' 카테고리의 다른 글
[WPF]DockPanel (0) | 2019.01.31 |
---|---|
[WPF] Canvas (0) | 2019.01.30 |
2_15. [c#]자동프로퍼티 (0) | 2019.01.30 |
[WPF]트리구조 두가지 (0) | 2019.01.28 |
[WPF]레이아웃컨트롤(xaml) (0) | 2019.01.28 |
댓글