title: Displaying each image from a directory in an Image Control
body: <p>I'd like to display the contents(.jpg files) from a local directory in an Image control. The images has to be replaced with a 5 sec delay.</p>
  
  <pre><code>    DirectoryInfo dir = new DirectoryInfo(@"D:\somedir");
              FileInfo[] files = dir.GetFiles();
  
              foreach (var item in files)
              {
                  imgBox.Source = (ImageSource)new ImageSourceConverter().ConvertFromString(item.FullName);
              }
  </code></pre>