Binding Between elements inside DataTemplate
How can I make binding between properties of two elements inside dataTemplate ?
example : // Bind Text property to Content pro开发者_如何学Pythonperty
<DataTemplate>
<TextBox Text="{Binding}" />
<Label Content="{Binding}" />
</Datatemplate>
If I correctly understood.
<DataTemplate>
<TextBox x:Name="p_text" Text="{Binding login}"/>
<Button Content="{Binding ElementName=p_text, Path Text}"/>
</DataTemplate>
精彩评论