tags:

views:

16

answers:

1

Hello, How can I make binding between properties of two elements inside dataTemplate ?

example : // Bind Text property to Content property

<DataTemplate>
  <TextBox Text="{Binding}" />
  <Label Content="{Binding}" />
</Datatemplate>
A: 

If I correctly understood.

<DataTemplate>
<TextBox x:Name="p_text" Text="{Binding login}"/>
<Button Content="{Binding ElementName=p_text, Path Text}"/>
</DataTemplate>
simply denis
Thanks for response but it doesnot work
Levan