Data Binding in <TextBox>
1) Create new project.
2) Right side in Solution Explorer double click on MainPage.xaml
3) Write the following XAML code in Grid.
<StackPanel>
<!--First TextBox-->
<TextBox Name="FirstTextBox">
</TextBox>
<!--Second TextBox-->
<TextBox Name="SecondTextBox" Text="{Binding ElementName=FirstTextBox, Path=Text}">
</TextBox>
</StackPanel>
4) Here you get the your working app on Emulator.
No comments: