Saturday, June 4, 2011

MediaElement WPF

Its quite easy to add a video player into a WPF .xaml window.

Drag and drop the 'MediaElement' to the .xaml window.

On the form loaded event, write the following code

mediaElement1.Source = new Uri(@"F:\Media\Memory Card\Media\Video\2.MP4");

Change the 'uri' path to the location where you stored your favorite videos.

1 comment:

  1. Awesome post admin, I follow all your new post its really great, waiting for your next post, here I found one more site its also share your related post
    WPF video tutorials

    ReplyDelete