title: Show alternately text and image at the center
body: <p>Here is piece of my code:</p>
  
  <pre><code>&lt;StackPanel  Orientation="Vertical" Grid.Row="0" Grid.Column="0" &gt;
      &lt;Image HorizontalAlignment="Center" VerticalAlignment="Center"  Visibility="Collapsed" Stretch="None" Name="BImage" Grid.Row="0" Margin="10 100 10 10"&gt;
      &lt;/Image&gt;
      &lt;TextBlock Margin="10 0 10 0" Name="InnerContent" FontSize="45"  TextWrapping="Wrap" Text=" "/&gt;
  </code></pre>
  
  <p>
       </p>
  
  <p>What I would like to achieve is to show BImage and InnerContent alternately but text should be always in the center of the image space so that when image is replaced by text, text is in the middle of the space of the image.</p>
  
  <p>And when this is done I would like to add another TextBlock called errorTextBlock and it should be always visible just below BImage or InnerContent according to which one is visible right now.</p>
  
  <p>I hope that it's clear</p>