title: C# - WPF: Looping through PDF Files and display in browser control
body: <p>I have created a file watcher service, and I want to display each time a PDF is placed in the folder. I am able to view the first file, but the next one  I add shows "Page cannot be displayed". It is not looping to the next file. Please can you advice</p>
  
  <pre><code>Public void FileSystemWatcher_Created(Object Sender, FileSystemEventArgs e)
  {
      string filePath = e.FullPath;
      Action action = () =&gt;
      {
        pdfwindow.WbPdf.Navigate(filepath);
      };
      Dispatcher.BeginInvoke(action);
   }
  </code></pre>