title: Dependency Property does not get or set Value
body: <p>I have created a user control in WPF, and in the code behind I have created some dependency properties.</p>
  
  <p>I added several WPF controls to my user control, one of the is a progress bar, so What I tried to do is to expose the Value progressBar property as below:</p>
  
  <pre><code>     public static readonly DependencyProperty valueProperty = DependencyProperty.Register(
          "Value",
          typeof(Double),
          typeof(MyUserControl),
          new FrameworkPropertyMetadata(
              ValuePropertyCallback));
  
      private static void ValuePropertyCallback(DependencyObject controlInstance, DependencyPropertyChangedEventArgs args)
      {
          MyUserControl myUserControlInstance = (ProgressControl)controlInstance;
          myUserControlInstance.progressBar.Value = (Double)args.NewValue;
      }
  
      public Double Value
      {
          get { return (Double)GetValue(valueProperty); }
          set { SetValue(valueProperty, value); }
      }
  </code></pre>
  
  <p>And in XAML I have written this:</p>
  
  <pre><code>&lt;MyUserControl Name="myControl" Value="{Binding ProgressBarValue}" &gt;
  </code></pre>
  
  <p>But It seems not to be working, neither setting nor getting the value.</p>
  
  <p>I have a couple hours reviewing this but I cant realize what I am doing wrong.</p>
  
  <p>Hope you can help me, Thank you in advance.</p>
  
  <p>(<strong>Note:</strong> DataContext are defined previously and it is correct since this is the only binding that does not work)</p>