title: WPF UserControl Dependency Property Setter not triggering
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3836076/wpf-xaml-property-declarations-not-being-set-via-setters">WPF: XAML property declarations not being set via Setters?</a>  </p>
  </blockquote>
  
  
  
  <p>I am stuck on seemingly silly problem. </p>
  
  <p>I have a user control, MyControl.xaml, and MyControl.xaml.cs defines a public dependency property:</p>
  
  <pre><code>public static readonly DependencyProperty VisibleItemsProperty =
      DependencyProperty.Register("VisibleItems", typeof(object), typeof(MyControl));
  
  public object VisibleItems
  {
      get { return (object)GetValue(VisibleItemsProperty); }
      set { SetValue(VisibleItemsProperty, value); }
  }
  </code></pre>
  
  <p>Within another view SomeOtherViewA, i declare my control:</p>
  
  <pre><code>&lt;cc:MyControl VisibleItems="{Binding VisibleTables}"  /&gt;
  </code></pre>
  
  <p>VisibleTables is a dependency property on the viewmodel SomeOtherViewModelA.</p>
  
  <p>I know that VisibleTables returns values, because it is bound to other controls within SomeOtherViewA (such as ListBox) and they work fine. </p>
  
  <p>For some reason the dependency property within my custom user control is never set. Am i missing something obvious? </p>