title: Check if a file exists in the project in WinRT
body: <p>I have a WinRT Metro project which displays images based on a selected item.  However, some of the images selected will not exist.  What I want to be able to do is trap the case where they don't exist and display an alternative.</p>
  
  <p>Here is my code so far:</p>
  
  <pre class="lang-cs prettyprint-override"><code>internal string GetMyImage(string imageDescription)
  {
      string myImage = string.Format("Assets/MyImages/{0}.jpg", imageDescription.Replace(" ", ""));
  
      // Need to check here if the above asset actually exists
  
      return myImage;
  }
  </code></pre>
  
  <p>Example calls:</p>
  
  <pre class="lang-cs prettyprint-override"><code>GetMyImage("First Picture");
  GetMyImage("Second Picture");
  </code></pre>
  
  <p>So <code>Assets/MyImages/SecondPicture.jpg</code> exists, but <code>Assets/MyImages/FirstPicture.jpg</code> does not.</p>
  
  <p>At first I thought of using the WinRT equivalent of <code>File.Exists()</code>, but there doesn't appear to be one.  Without having to go to the extent of trying to open the file and catching an error, can I simply check if either the file exists, or the file exists in the project?</p>