// when i click on a button OpenFileDialog fd1=new OpenFileDialog (); Nullable<bool> result = fd1.ShowDialog(); if (result == true) { media1 .Stop(); Uri obj1=new Uri (fd1 .FileName ); MediaElement m1=new MediaElement (); m1.LoadedBehavior=MediaState.Manual; m1 .Height =65; m1 .Width =65; m1 .Source =obj1; media1 .Source =obj1; // media element source. uniformgrid1 .Children .Add (m1);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)