title: How to update dependency property in WPF User control?
body: <p>I have created a dependency property on my WPF usercontrol which would be databound in my parent usercontrol. I have implemented the <code>INotifyPropertyChanged</code> on my viewmodel to send notifications when the value changes. </p>
  
  <p>User Control code:</p>
  
  <pre><code>public bool IsVisibile {
  get { return (bool) GetValue(IsVisibileProperty); }
  set { SetValue(IsVisibileProperty, value); }}
  
  public static readonly DependencyProperty IsVisibileProperty =
          DependencyProperty.Register("IsVisibile", typeof(bool), typeof(UserControl),
                                      new PropertyMetadata(default(bool), VisiblePropertyChangedCallback));
  
      private static void VisiblePropertyChangedCallback(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs)
      {
          if (dependencyPropertyChangedEventArgs.NewValue != null)
          {
              ((UserControl) dependencyObject).IsVisibile = (bool) dependencyPropertyChangedEventArgs.NewValue;
          }
  
      }
  </code></pre>
  
  <p>Parent User Control usage:</p>
  
  <pre><code>&lt;uc:UserControl IsVisible="{Binding IsViewModelVisible, UpdateSourceTrigger=PropertyChanged}"
  </code></pre>
  
  <p>If the "IsViewModelVisible" changes then the property changed event handler is not called and the property is not refreshed.</p>
  
  <p>Any thoughts?</p>