![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Binding to same DP on another instance of same object won't work. Hi, I'm trying to bind the value of a custom control DP to the same DP on another instance of the same custom control but receive a message indicating that the "ElementName" is invalid... Here is an example of the code I use: <CustomControl1 x:Name="my_custom_1"/> <CustomControl1 x:Name="my_custom_2 PropOne="{Binding ElementName=my_custom_1,Path=PropOne,UpdateSourceTrigger=PropertyChanged}" PropTwo="{Binding ElementName=my_custom_1,Path=PropTwo,UpdateSourceTrigger=PropertyChanged}" PropThree="{Binding ElementName=my_custom_1,Path=PropThree,UpdateSourceTrigger=PropertyChanged}" /> This would return me that "my_custom_1" was not found... In addition, If I substitute the second "CustomControl1" for 3 TextBlock and use the same binding declarations, eveything works fine... Any idea? Thanks Marcus |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| datalist -- Object reference not set to an instance of an object. | Deere | .NET General | 0 | 1 Week Ago 09:09 AM |
| Is binding a datacontext to a CLR object correct ? | Pon | Avalon | 2 | 03-25-2007 05:31 PM |
| Dynamically adding properties to an object instance | dan.farino@gmail.com | PowerShell | 1 | 12-19-2006 04:27 PM |
| Any way(s) to pass an IComparer object instance to ArrayList.sort? | Sung M Kim | PowerShell | 4 | 11-27-2006 09:23 PM |
| False IE doc body error - "Object reference not set to an instance of an object" | Alex K. Angelopoulos [MVP] | PowerShell | 7 | 07-15-2006 09:46 PM |