WPF

01. StackPanel

HicKee 2023. 2. 21. 23:57
<Window x:Class="WpfBasicControlApp1.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:WpfBasicControlApp1"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <StackPanel>
        <!--
        <Grid></Grid> -> <StackPanel></StackPanel> 로 바꿈 
        StackPanel은 다수의 컨트롤을 쌓아서 표시하는 레이아웃이다 -->

        <TextBlock Text="TextBlock"/>
        <TextBox Text="TextBox"/>
        <ProgressBar Value="50" Width="60" Height="20"/>
        <Slider Value="5" Width="60"/>
        <PasswordBox Password="Secret"/>

    </StackPanel>
</Window>

'WPF' 카테고리의 다른 글

04. 버튼 테마  (0) 2023.03.01
03. column, row 설정  (0) 2023.02.26
02. Image 이미지  (0) 2023.02.25