title: WPF Image Disappears
body: <p>I have a WPF application with a pop-up window. The window has a Image element that has a binding to Uri.</p>
  
  <p>The image does not appear when the window loaded, when I do Snoop, and going through the visual tree, it suddenly appears.</p>
  
  <p>Do you have an idea what the problem is, or at least how to hack it?</p>
  
  <p>this is xaml:</p>
  
  <p>A bit complicated for me to show the code that is spread over several controls. I hope it all:</p>
  
  <pre><code> &lt;Image Name="ImageService"
                 Grid.RowSpan="4"
                 Grid.ColumnSpan="2"
                 Source="{Binding Path=Image}"
                 Stretch="Fill" /&gt; 
  </code></pre>
  
  <p>this image binding to dp property:</p>
  
  <pre><code>public ImageSource Image
  {
      get { return (ImageSource)GetValue(ImageProperty); }
      set { SetValue(ImageProperty, value); }
  }
  </code></pre>
  
  <p>This image in a single component. Window contains the component in the following way:</p>
  
  <pre><code> Image="{Binding Header.ImageSource}"
  </code></pre>
  
  <p>the Header.ImageSource is</p>
  
  <pre><code>public object ImageSource
  {
      get
      {
          return m_ImageSource;
      }
      set
      {
          m_ImageSource = value;
          OnPropertyChanged("ImageSource");
      }
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/jMv0d.jpg" alt="Snoop screen"></p>