본문 바로가기
프로그래밍

[WPF]WrapPanel

by BlueOcean&Shark 2019. 2. 1.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<Window x:Class="WpfApp7.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:WpfApp7"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <WrapPanel Name="wp1" VerticalAlignment="Top">
            <Rectangle Name="rt1" Width="50" Height="50" Stroke="Black" Fill="AliceBlue"/>
            <Rectangle Name="rt2" Width="50" Height="50" Stroke="Black" Fill="Beige"/>
            <Rectangle Name="rt3" Width="50" Height="50" Stroke="Black" Fill="CadetBlue"/>
            <Rectangle Name="rt4" Width="50" Height="50" Stroke="Black" Fill="DarkBlue"/>
            <Rectangle Name="rt5" Width="50" Height="50" Stroke="Black" Fill="Firebrick"/>
        </WrapPanel>
    </Grid>
</Window>
 
cs


'프로그래밍' 카테고리의 다른 글

이미지/사운드  (0) 2019.03.27
[WPF]레이아웃  (0) 2019.02.01
[WPF]stackPanel  (0) 2019.02.01
[WPF]grid를 이용한 로그인화면  (0) 2019.01.31
[WPF]DockPanel  (0) 2019.01.31

댓글