첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170

TestProject.zip
다운로드

▶ MainWindow.xaml

<Window x:Class="TestProject.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Width="800"
    Height="600"
    Title="Label 엘리먼트 : Target 속성을 사용해 포커스 이동시키기"
    FontFamily="나눔고딕코딩"
    FontSize="16">
    <Grid>
        <Grid
            HorizontalAlignment="Center"
            VerticalAlignment="Center">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Label Grid.Row="0" Grid.Column="0"
                Margin="10"
                Target="{Binding ElementName=nameTextBox}"
                Content="성명(_N)" />
            <TextBox Name="nameTextBox" Grid.Row="0" Grid.Column="1"
                HorizontalAlignment="Left"
                Margin="10"
                Width="200"
                Height="25"
                VerticalContentAlignment="Center" />
            <Label Grid.Row="1" Grid.Column="0"
                Margin="10"
                Target="{Binding ElementName=addressTextBox}"
                Content="주소(_A)" />
            <TextBox Name="addressTextBox" Grid.Row="1" Grid.Column="1"
                HorizontalAlignment="Left"
                Margin="10"
                Width="400"
                Height="25"
                VerticalContentAlignment="Center" />
        </Grid>
    </Grid>
</Window>
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요