title: UWP property changed in dependency property of user control
body: <p>I'm using a user control, binding values from dependency properties.
  But the problem is that, when I am trying to change the value, UI doesn't update.
  my XAML code in usercontrol :</p>
  
  <pre><code>&lt;TextBox Text="{x:Bind Text}" /&gt;
  </code></pre>
  
  <p>and C#</p>
  
  <pre><code> public event PropertyChangedEventHandler PropertyChanged;
  
  
      public string Text
      {
          get { return (string)GetValue(TextProperty); }
          set { SetValue(TextProperty, value);
              if (PropertyChanged != null)
              {
                  PropertyChanged(this,
                      new PropertyChangedEventArgs("Text"));
              }
          }
      }
  
      // Using a DependencyProperty as the backing store for Text.  This enables animation, styling, binding, etc...
      public static readonly DependencyProperty TextProperty =
          DependencyProperty.Register("Text", typeof(string), typeof(Control1), new PropertyMetadata(null));
  </code></pre>
  
  <p>When I want to use it :</p>
  
  <pre><code>        &lt;local:Control text="{Binding Val,Mode=TwoWay}" /&gt;
  </code></pre>
  
  <p>my ViewModel :</p>
  
  <pre><code>public event PropertyChangedEventHandler PropertyChanged;
      private string _val;
      public string Val
      {
          get
          {
              return _val;
          }
  
          set
          {
  
              if (_val != value)
              {_val = value;
                  if (PropertyChanged != null)
                  {
                      PropertyChanged(this,
                          new PropertyChangedEventArgs("Val"));
                  }
              }
          }
  
      }
  </code></pre>
  
  <p>And when I want to use it in my view and bind it from a view model, property changes does not apply in the user control. </p>