Control(TextBox) – Control(Label) Binding\uc5d0 \ub300\ud55c \uc608\uc81c \uc785\ub2c8\ub2e4. <\/p>\n\n\n\n
<Window x:Class="WPFExample.MainWindow"\n xmlns="http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation"\n xmlns:x="http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml"\n xmlns:d="http:\/\/schemas.microsoft.com\/expression\/blend\/2008"\n xmlns:mc="http:\/\/schemas.openxmlformats.org\/markup-compatibility\/2006"\n xmlns:local="clr-namespace:WPFExample"\n mc:Ignorable="d"\n Title="MainWindow" Height="200" Width="200">\n <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">\n <TextBox x:Name="tbx" Text="{Binding Mode=OneWay}" Width="200" Height="20"\/>\n <Label Content="{Binding Source={x:Reference Name=tbx}, Path=Text}" Background="LightGray" Width="200" Height="25"\/>\n <\/StackPanel>\n<\/Window><\/code><\/pre><\/div>\n\n\n\nusing System.Windows;\n\nnamespace WPFExample\n{\n public partial class MainWindow : Window\n {\n public MainWindow()\n {\n InitializeComponent();\n }\n }\n}\n<\/code><\/pre><\/div>\n\n\n\nMainWindow.xaml\uc5d0\uc11c TextBox\ub294 \uc774\ub984\uc740 “tbx”\uc774\uba70 Text \uc18d\uc131\uc740 OneWay \ubaa8\ub4dc\ub85c Binding\ub418\uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n
Label\uc758 Content \uc18d\uc131\uc5d0 tbx(TextBox)\uc758 Text \uc18d\uc131\uc744 Binding\ud558\uc5ec TextBox\uc758 \ubcc0\ud654\uc5d0 \ub530\ub77c Label\uc758 Content \uc18d\uc131\uc774 \uc2e4\uc2dc\uac04\uc73c\ub85c \ubcc0\ud658\ub429\ub2c8\ub2e4.
<\/p>\n\n\n
\n