title: UWP , Play sound file on Desktop?
body: <p>I am tring to open a Wav-file on desktop to play the sound.
  Is this possible in UWP application ?</p>
  
  <pre><code>var mediaElement = new MediaElement();
          //StorageFolder storageFolder = ApplicationData.Current.LocalFolder;
          var uri = new System.Uri(filename);
          var converted = uri.AbsoluteUri;
          StorageFile storageFolder = await StorageFile.GetFileFromApplicationUriAsync(uri);
          var file = await storageFolder.TryGetItemAsync(filename) as IStorageFile;
  
          if (file != null)
          {
              StorageFile soundfile = await storageFolder.GetFileAsync(filename);
              mediaElement.SetSource(await soundfile.OpenAsync(FileAccessMode.Read), soundfile.ContentType);
              mediaElement.Play();
          }
  </code></pre>
  
  <p>here is my file name. it's full path.</p>
  
  <pre><code>D:\develop\visualstudio2\local\sound\sound1.wav
  </code></pre>
  
  <p>Here is my requirement.</p>
  
  <ol>
  <li>Open a file with filepicker ( I success )</li>
  <li>Save path to Sqlite database.</li>
  <li>Restart application.</li>
  <li>get file path from Sqlite database. </li>
  <li>play the sound.</li>
  </ol>