How can I bind the properties of two elements inside a dataTemplate?
example: // Bind Text property for Content property
<DataTemplate> <TextBox Text="{Binding}" /> <Label Content="{Binding}" /> </Datatemplate>
If I understood correctly.
<DataTemplate> <TextBox x:Name="p_text" Text="{Binding login}"/> <Button Content="{Binding ElementName=p_text, Path Text}"/> </DataTemplate>
Source: https://habr.com/ru/post/1768800/More articles:C # .NET 4.0 Testing? - c #Personal casting classes? - javaWhat other APIs are available for hotels? - apiEnvironment.Exit () crashes my application after using Process.Start - c #What can cause "too many database connections" - phpcreating two divs to the right of each other in css? - htmlHow to handle CIFilter using a processor instead of a GPU? - cpuWhere should I implement the cache in Zend_Db? - cachingStatic IEnumerable? - c #Spaces in the path names give problems with Find in Bash. Any * simple * workflow? - bashAll Articles