■ StackPanel 클래스 사용하기

------------------------------------------------------------------------------------------------------------------------


TestProject.zip


MainPage.xaml

 

 

<Page x:Class="TestProject.MainPage"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    FontFamily="나눔고딕코딩"

    FontSize="16">

    <Grid

        Background="{StaticResource ApplicationPageBackgroundThemeBrush}"

        Padding="10">

        <StackPanel

            VerticalAlignment="Center"

            HorizontalAlignment="Center"

            Orientation="Horizontal"

            Background="Blue"

            Padding="10">

            <TextBlock

                VerticalAlignment="Center"

                Foreground="White"

                Text="사각형" />

            <Rectangle

                Margin="10"

                VerticalAlignment="Center"

                Width="50"

                Height="50"

                Stroke="Blue"

                Fill="Red" />

            <TextBlock

                VerticalAlignment="Center"

                Foreground="White"

                Text="타원" />

            <Ellipse

                Margin="10"

                VerticalAlignment="Center"

                Width="50"

                Height="50"

                Stroke="Red"

                StrokeThickness="10"

                Fill="Blue" />

            <TextBlock

                VerticalAlignment="Center"

                Foreground="White"

                Text="샘플 이미지" />

            <Image

                Margin="10"

                VerticalAlignment="Center"

                Width="150"

                Height="100"

                Source="Image/sample.jpg" />

        </StackPanel>

    </Grid>

</Page>

 

------------------------------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요