0
votes

I have a question regarding the binding

I have two textbox, textbox one is bind to the property NAME and has the tag FULLName

< TextBox Name="NewTextBox" Tag="FullName" Text="{Binding Path = Name}" >

In the second textbox I need to bind to the property that is available as the tag on the first textbox.

How to do it in XAML?

2

2 Answers

0
votes
<TextBox Name="NewTextBox" Tag="FullName" Text="{Binding Path=Name}" /> 
<TextBox x:Name="NewTextBox2" Text="{Binding ElementName=NewTextBox, Path=Tag}"/>
0
votes

I'm not sure but is this what you're looking for?

<TextBox x:Name="textbox1" Text="{Binding Path=Name}" Tag="{Binding Path=FullName}"/>
<TextBox x:Name="textbox2" Text="{Binding ElementName=textbox1, Path=Tag}"/>