title: Create a System.Windows.Media.ImageSource From an Icon File in c#?
body: <p>I am programming in a WPF application in c#. I need to change the notifier icon sometimes;</p>
  
  <p>I implemented the icon like this:</p>
  
  <pre><code>&lt;tn:NotifyIcon x:Name="MyNotifyIcon" 
                 Text="Title" 
                 Icon="Resources/logo/Error.ico"/&gt;
  </code></pre>
  
  <p>My solution is changing the Icon, the type of <strong>MyNotifyIcon.Icon</strong> is ImageSource, and I want to get by an icon file. I could find the way to do that.</p>
  
  <p>Do somebody have some ideas how? Or have the any other solution?</p>
  
  <p>Shortly, I have an address like <strong>/Resource/logo.icon</strong>, and I wanna get a <strong>System.Windows.Media.ImageSource</strong></p>