none
add a music with microsoft blend

    Question

  •  I'm working with blend and I would like to add music to my solution.

    Could you please tell me how it could be?

    Tuesday, March 24, 2009 7:27 AM

Answers

  • Hi! You can just drag and drop from the file location into the solution explorer [ORANGE AREA].



    From there, just hook that sound to a MediaElement control, use it to control playback. After that, you should be good to go.
    Tuesday, March 24, 2009 2:35 PM

All replies

  • Hi! You can just drag and drop from the file location into the solution explorer [ORANGE AREA].



    From there, just hook that sound to a MediaElement control, use it to control playback. After that, you should be good to go.
    Tuesday, March 24, 2009 2:35 PM
  •  Could you tell me how can I make the music working continously?

    Wednesday, March 25, 2009 8:57 AM
  • This is the closest to looping as I think you can get. There may or may not be a small pause while the song restarts.

    Code:

    myPlayer.Stop();
    myPlayer.Position = TimeSpan.FromSeconds(0);
    myPlayer.Play();

    Wednesday, March 25, 2009 1:37 PM