title: Cannot find source for binding with reference
body: <p>I want to bind my MultiDataTrigger.Conditions to radio button, but it's not working. here is my scenario.</p>
  
  <p>In wpf, I have a GridPanel, which suppose to have radiobuttons in it.</p>
  
  <p>I generate dynamic radiobuttons into GridPanel, like this:</p>
  
  <pre><code>RadioButton allAccountBtn = new RadioButton();
  allAccountBtn.Name = "allAccountBtn";
  GridPanel.Children.Add(allAccountBtn);
  </code></pre>
  
  <p>then in my xaml, I had an image button which will change based in this radiobutton selection, and another control's property.</p>
  
  <p>here is my code:</p>
  
  <pre><code>&lt;Button&gt;
   &lt;Button.Template&gt;
          &lt;ControlTemplate&gt;
                 &lt;Image Name="addFolderIcon" Source="Icon/Decoration/folderColor.png"&gt;
                 &lt;ControlTemplate.Triggers&gt;
                         &lt;MultiDataTrigger&gt;
                               &lt;MultiDataTrigger.Conditions&gt;
                                      &lt;Condition Binding="{Binding Tag, ElementName=folderBackBtn}" Value="{x:Null}"/&gt;
                                      &lt;Condition Binding="{Binding IsChecked, ElementName=allAccountsBtn}" Value="True"/&gt;
                               &lt;/MultiDataTrigger.Conditions&gt;
                               &lt;Setter Property="Control.IsEnabled" Value="False"/&gt;
                               &lt;Setter TargetName="addFolderIcon" Property="Source" Value="Icon/Decoration/folder.png"/&gt;
                         &lt;/MultiDataTrigger&gt;
                 &lt;/ControlTemplate.Triggers&gt;
           &lt;/ControlTemplate&gt;
   &lt;/Button.Template&gt;
  &lt;/Button&gt;
  </code></pre>
  
  <p>When I run the program, it display error code:"Cannot find source for binding with reference", and the conditions return false for second condition(elementName=allAccountsBtn)</p>
  
  <p>Why is this happen?</p>
  
  <p>Any way can I refer to get IsChecked property from dynamically named and generated RadioButton?</p>