title: Very strange bug when using data binding to element under a Telerik RadTreeView
body: <p>I have the following XAML code as part of a custom control:</p>
  
  <pre><code>&lt;telerik:RadTreeView x:Name="treeModules"&gt; 
      &lt;telerik:RadTreeView.ItemTemplate&gt; 
          &lt;core:HierarchicalDataTemplate ItemsSource="{Binding Submodules}"&gt; 
              &lt;local:ModuleInfoUserControl IsReadOnly="{Binding ElementName=ctrlIsReadOnly, Path=IsReadOnly}"/&gt; 
          &lt;/core:HierarchicalDataTemplate&gt; 
      &lt;/telerik:RadTreeView.ItemTemplate&gt; 
  &lt;/telerik:RadTreeView&gt;
  </code></pre>
  
  <p>Where:</p>
  
  <ul>
  <li>The <code>ItemsSource</code> property of
  <code>treeModules</code> is set by code to a list
  of <code>Module</code> objects. The <code>Module</code> class
  has a property named <code>Submodules</code>,
  which consists on a collection of
  more Modules.</li>
  <li><code>ModuleInfoUserControl</code> is a custom
  control used to display module
  information. <code>IsReadOnly</code> is a
  dependency property declared on the
  control.</li>
  <li><code>ctrlIsReadOnly</code> is a hidden TextBox
  defined elsewhere in the main user
  control. It is used to make a bunch
  of controls editable or read only.</li>
  </ul>
  
  <p><strong>The problem:</strong> binding to <code>ctrlIsReadOnly</code> element in <code>ModuleInfoUserControl</code> does not work. The <code>IsReadOnly</code> property of it is always at its default state, even if the corresponding property of <code>crlIsReadOnly</code> changes.</p>
  
  <p><strong>But</strong>, if I change the RadTreeView into a standard Silverlight TreeView, and the HierarchicalDataTemplate into the standard Silverlight version too, it works as expected.</p>
  
  <hr>
  
  <p>Ok, up to here I have pasted an exact copy of the support ticket I have sent to Telerik in the hope that they could help me. I must say that the reply has been quick and as efficient as it could be: they have said me that they could not reproduce the bug, and have send me a small test project that exercises the offending piece of code. The test project shows the bug on my machine, but works on Telerik's.</p>
  
  <p>And here comes the really strange part. I have published Telerik's sample project on my personal site. Here is the link:</p>
  
  <p><a href="http://www.konamiman.com/TelerikTest/TestPage.html" rel="nofollow noreferrer">http://www.konamiman.com/TelerikTest/TestPage.html</a></p>
  
  <p>The idea is that when pressing the "ToggleIsReadOnly" button, the "Root" TextBox should become read-only. But again, it works on Telerik's machines, but not on mine! So the application code itself is apparenly ok.</p>
  
  <p>Thinking that it could be a problem on my machine's Silverlight runtime, I have tested a bunch of others, including: Spanish Windows 7 32 and 64 bits, Spanish Windows XP, English Windows Server 2008, and even on my wife's computer with Japanese Windows XP. <strong>On all of these, it does NOT work as expected</strong>.</p>
  
  <p>So, what's happening here? I am completely stuck.</p>
  
  <p>By the way, Silverlight Runtime I'm using is version 3.0.50106.0.</p>
  
  <p><strong>UPDATE:</strong> I have uploaded the source code of the test project as well. Here is the URL:</p>
  
  <p><a href="http://www.konamiman.com/TelerikTest/TreeViewTest.zip" rel="nofollow noreferrer">http://www.konamiman.com/TelerikTest/TreeViewTest.zip</a></p>