title: Bind Visibility of Textblock with Boolean not working
body: <p>I am writing a <strong>Windows Phone 8.1 (WINRT) App</strong>. I used a <strong>ListView</strong> to populate items:</p>
  
  <p><strong>XAML:</strong></p>
  
  <pre><code>xmlns:ConvertersFile="using:DrFit.Converters"
  
  &lt;Page.Resources&gt;
         &lt;ConvertersFile:BoolToVisConverter x:Key="BooleanToVisibilityConverter"/&gt;
  &lt;/Page.Resources&gt;
  
  &lt;ListView x:Name="EquipmentListView" DataContext="{Binding}" SelectionChanged="EquipmentListView_SelectionChanged"&gt;                    
      &lt;ListView.ItemTemplate&gt;
          &lt;DataTemplate&gt; 
                  &lt;Grid&gt;      
                          &lt;TextBlock Text="{Binding EquipmentDetails}"                  
                          x:Name="EquipmentDetails"
                          Visibility="{Binding Path=ShowHide, Converter={StaticResource BooleanToVisibilityConverter}}"/&gt;&gt;
                          &lt;/TextBlock&gt;
                  &lt;/Grid&gt;
              &lt;/Border&gt;
          &lt;/DataTemplate&gt;
      &lt;/ListView.ItemTemplate&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p><strong>C# Class For ListView:</strong></p>
  
  <pre><code> class EquipmentClassTemporary
      {
          public string EquipmentTitle { get; set; }    
          public string EquipmentDetails { get; set; }
          public bool ShowHide { get; set; }
  
      }
  </code></pre>
  
  <p><strong>C#:</strong></p>
  
  <pre><code>ObservableCollection&lt;EquipmentClassTemporary&gt; EquipmentListViewList = new ObservableCollection&lt;EquipmentClassTemporary&gt;();
  private void GenerateEquipmentListView()
  {
      for(int i=0; i&lt; SingletonInstance.strHeading.Length;i++)
      {
          EquipmentListViewList.Add(new EquipmentClassTemporary { EquipmentTitle = SingletonInstance.strHeading[i], EquipmentDetails = SingletonInstance.strEquipment[i],  ShowHide=false });
      }
      EquipmentListView.ItemsSource = EquipmentListViewList;
  }
  
  private void EquipmentListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
  {
      if (e.AddedItems.Count &gt; 0)
      {
          var ClickedItem = e.AddedItems[0];
          ((EquipmentClassTemporary)ClickedItem).ShowHide = true;
      }
  
      if (e.RemovedItems.Count &gt; 0)
      {
          var UnClickedItem = e.RemovedItems[0];
          ((EquipmentClassTemporary)UnClickedItem).ShowHide = false;
  
      }
  }
  </code></pre>
  
  <p><strong>BoolToVisConverter:</strong></p>
  
  <pre><code>public class BoolToVisConverter : IValueConverter
  {
      public object Convert(object value, Type targetType, object parameter, string language)
      {
          try
          {
              if ((bool)value)
              {
                  return Visibility.Visible;
              }
              else
              {
                  return Visibility.Collapsed;
              }
          }
          catch
          {
              return Visibility.Collapsed;
          }
      }
  
      public object ConvertBack(object value, Type targetType, object parameter, string language)
      {
          try
          {
              if ((bool)value)
              {
                  return Visibility.Visible;
              }
          }
          catch { }
  
          return Visibility.Collapsed;
  
      }
  }
  </code></pre>
  
  <p>The Visibility of EquipmentDetails Textblock is not getting changed.? </p>