title: Change the value WPF User Controls
body: <p>I am creating a UserControl but I can't refresh the values.</p>
  
  <p>When I start the app with a value in the TextBox it's captured. but when I changed the value and touch the button no capture the new value.</p>
  
  <p>This is the User control XAML:</p>
  
  <pre><code> &lt;TextBox x:Name="txtCedula" md:HintAssist.Hint="Cedula"  Text="{Binding txtCedula1}" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Height="40" Margin="113.496,81.01,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="243.5" /&gt;
  </code></pre>
  
  <p>And this is the Code VB:</p>
  
  <pre><code>Partial Public Class Conductor
      Public Property txtCedula1 As String
          Get
              Return txtCedula.Text
          End Get
          Set(value As String)
              txtCedula.Text = value
          End Set
    End Property
  End Class
  </code></pre>
  
  <p>Here I'm try capture the value that I'm typing</p>
  
  <pre><code>Private Sub btnGuardar_Click(sender As Object, e As RoutedEventArgs) Handles  btnGuardar.Click
      validarCampos()
  End Sub
  Private Sub CaptureValue()
              Dim conductor As New Conductor
  
              If conductor.txtCedula1 = Nothing Then
                         MessageBox.Show("Ivalid", "SmartTruck", MessageBoxButton.OK, MessageBoxImage.Information)
  
              End If
      End Sub
  </code></pre>
  
  <p>I always get the invalid message, even when I enter values</p>