title: How to make TextBlock.Text = Slider.Value on slider value change
body: <p>I've tried this </p>
  
  <pre><code>   If Slider1.Value = 1 Then
          TextBlock1.Text = "1"
      End If
      If Slider1.Value = 2 Then
          TextBlock1.Text = "2"
      End If
      If Slider1.Value = 3 Then
          TextBlock1.Text = "3"
      End If
      If Slider1.Value = 4 Then
          TextBlock1.Text = "4"
      End If
      If Slider1.Value = 5 Then
          TextBlock1.Text = "5"
      End If
  </code></pre>
  
  <p>I actually get a couple of errors with this, especially when i have the </p>
  
  <pre><code>    If Slider1.Value = 1 Then
      TextBlock1.Text = "1"
      End If
  </code></pre>
  
  <p>code because it's already on value 1 when the program runs. I'm new to WPF and don't really know what to do here so i you could please show me or provide a code sample on how it's done thanks.</p>
  
  <p>and also i have been using expression blend 4 for a couple of days and i know how to create a template and animate fades on mouse over and stuff for a button but say if the user clicks a button how would i animate a separate picturebox or image to fade in or fade out could you please provide me an example thankyou everyone :). </p>