title: Image cut in windows - WPF
body: <p>When I view an image, it disappears depending on the size of my window.</p>
  
  <p>By default the images are cut but if I enlarged the window as the images appear
  <a href="https://i.stack.imgur.com/tRII1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tRII1.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;Grid.RowDefinitions&gt;
      &lt;RowDefinition/&gt;
  &lt;/Grid.RowDefinitions&gt;
  &lt;Grid.ColumnDefinitions&gt;
      &lt;ColumnDefinition Width="1716*"/&gt;
      &lt;ColumnDefinition Width="889*"/&gt;
  &lt;/Grid.ColumnDefinitions&gt;
  
  &lt;Image x:Name="img1" Margin="97,237,1054,911.4" Grid.Row="0" Grid.Column="0" Width="77" Height="147" Canvas.ZIndex="99"/&gt;
  &lt;Image x:Name="img2" Margin="301,237,850,911.4" Grid.Row="0" Grid.Column="0" Width="77" Height="147" Canvas.ZIndex="99"/&gt;
  &lt;Image x:Name="img3" Margin="539,237,612,911.4" Grid.Row="0" Grid.Column="0" Width="77" Height="147" Canvas.ZIndex="99"/&gt;
  
  &lt;WrapPanel Orientation="Horizontal" Margin="13,2,9.8,10.4" MaxHeight="200"  Grid.Row="0" Grid.Column="1"&gt;
      &lt;TextBlock x:Name="text2" TextWrapping="Wrap" Text="Maison 2" Height="31" Width="77" Background="#FFDDDDDD" Padding="8"/&gt;
      &lt;TextBlock x:Name="text1" TextWrapping="Wrap" Text="Maison 1" Height="31" Width="77" Background="#FFDDDDDD" Padding="8"/&gt;
      &lt;TextBlock x:Name="Resultat3" Height="31" Width="960" Background="#FFF0F0F0" Padding="8"/&gt;
      &lt;TextBlock x:Name="Resultat2" Height="31" Width="960" Background="#FFF0F0F0" Padding="8"/&gt;
      &lt;TextBlock x:Name="text3" TextWrapping="Wrap" Text="Maison 3" Height="31" Width="77" Background="#FFDDDDDD" Padding="8"/&gt;
      &lt;TextBlock x:Name="Resultat1" Height="31" Width="960" Background="#FFF0F0F0" Padding="8"/&gt;
  &lt;/WrapPanel&gt;
  </code></pre>
  
  <p></p>
  
  <p>I just want to display images correctly. An idea ?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Problem solved using the Canvas</p>