title: XAML databind with conditions
body: <p>In a project for windows phone 8 , i have a List&lt;> of objects of this type.</p>
  
  <pre><code> public class Media
  {
      public string idNews { get; set; }
      public string video_url { get; set; }
      public string idMenu { get; set; }
      public string image { get; set; }
      public string video_image { get; set; }
      public string url { get; set; }
  
  }
  </code></pre>
  
  <p>i then bind that list to a XAML</p>
  
  <p>MediaScroll.DataContext = media.listaMedia;
  and in my XAML i have </p>
  
  <pre><code>&lt;ScrollViewer  Name="MediaScroll" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Auto" Background="{x:Null}" VerticalAlignment="Top" &gt;
              &lt;ItemsControl  Name="ItControl" ItemTemplate="{StaticResource ItemTemplate2}" ItemsPanel="{StaticResource ItemsPanelTemplate1}" ItemsSource="{Binding}" /&gt;
          &lt;/ScrollViewer&gt;
  </code></pre>
  
  <p>and </p>
  
  <pre><code>    &lt;ItemsPanelTemplate x:Key="ItemsPanelTemplate1"&gt;
          &lt;StackPanel Orientation="Horizontal" Margin="0,0,0,0"/&gt;
      &lt;/ItemsPanelTemplate&gt;
  
      &lt;DataTemplate x:Key="ItemTemplate2"&gt;
  
          &lt;StackPanel Width="480"&gt;
              &lt;Image Name="overlay" Source="/Assets/play@2x.png" Width="75" Canvas.ZIndex="10" Margin="203,85,202,0"  /&gt;
              &lt;Image Tag="{Binding id}" Source="{Binding image}" Stretch="Fill" VerticalAlignment="Top" Margin="0,-160,0,0" Tap="Image_Tap" /&gt;
          &lt;/StackPanel&gt;
      &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>my question is , how can i bind either image or video_image depending on witch on ins't empty, also , how can i make " Image Name="overlay" " only display if the other image is bound with a video_image</p>