private void ButtonPlay_Click(object sender, RoutedEventArgs e) { if (TextBoxPath.Text.Length > 0) { PlayWindow.Source = new Uri(TextBoxPath.Text); PlayWindow.Play(); } }