■ DesignInstance 확장 태그 사용하기

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


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"

    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

    xmlns:local="clr-namespace:TestProject"

    Title="DesignInstance 확장 태그 사용하기"

    mc:Ignorable="d"

    Width="600"

    Height="450"

    FontFamily="나눔고딕코딩"

    FontSize="32">

    <Grid Name="grid"

        d:DataContext="{d:DesignInstance Type=local:Customer}">

        <TextBox Padding="10" Text="{Binding Path=FirstName}" />

    </Grid>

</Window>

 

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

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요