title: How do I stop a video at a specific time using Blend/WPF
body: <p>How do I stop a video at a specific time using Blend/WPF in C#?</p>
  
  <p>Example:</p>
  
  <p>When I clicked on a "TreeViewItem" called "MONDAY", the video will start to play. But up to 10sec of that video, I want it to stop. As after 10sec, that video will be showing video of another "TreeViewItem" called "TUESDAY". So what is the coding for it?</p>
  
  <p><strong>My coding is shown below:</strong></p>
  
  <pre><code>        if (MONDAY.IsSelected == true)
          {
              Video.Source = new Uri(@".\weekday.wmv", UriKind.Relative);
              Video.Play();
              descriptionText.Text = "Monday Blues";
  
             ****When video play until 10sec, it will auto stop it****
          }
  
          else if (TUESDAY.IsSelected == true)
          {
              TimeSpan t = TimeSpan.FromSeconds(VideoTime.Value = 10);
              Video.Position = t;
              descriptionText.Text = "Tuesday is here";
          }
  </code></pre>
  
  <p>Can someone help me? Thanks.</p>