title: Open running application from WPF application
body: <p>In my WPF application I have a view that shows all the open windows and active applications on the PC, which I achieve with the following code:</p>
  
  <pre><code>  Process[] processlist = Process.GetProcesses(".");
  
    foreach (Process p in processlist)
    {
      if (!String.IsNullOrEmpty(p.MainWindowTitle))
      {
        TreeViewItem item = new TreeViewItem();
        item.MouseDoubleClick += new MouseButtonEventHandler(item_MouseDoubleClick);
        item.Tag = p;
        item.Header = p.MainWindowTitle.ToString();
        TreeViewExternal.Items.Add(item);
      }
  
    }
  </code></pre>
  
  <p>1) How can I then show the running application when the tree view item is double clicked?
  2) Is there a way of getting the  icon of the running application? For instance the VS icon next to the current window title of VS.</p>
  
  <p>Thanks in advance.</p>