title: Binding Listview to property with same name as class
body: <p>So I have a class <code>Question</code> with the properties <code>@Question</code> and <code>Answer</code> that is a string and I want to bind it to a Listview so that when I say</p>
  
  <pre><code>lv.ItemsSource = AllQuestions; //lv being the listview and AllQuestions being a List&lt;Quesiton&gt;
  </code></pre>
  
  <p>and in the XAML</p>
  
  <pre><code>&lt;ListView x:Name="lv" HorizontalAlignment="Left" Height="310" Margin="0,10,0,0" VerticalAlignment="Top" Width="225" SelectionChanged="lv_SelectionChanged"&gt;
  &lt;ListView.View&gt;
      &lt;GridView&gt;
          &lt;GridViewColumn Header="Questions" Width="225" DisplayMemberBinding="{Binding Question}"/&gt;
      &lt;/GridView&gt;
  &lt;/ListView.View&gt;
  </code></pre>
  
  <p></p>
  
  <p>it shows the <code>@Question</code> property. For example if I had</p>
  
  <pre><code>AllQuestions.Add(new Question { Quesiton = "why", Answer = 'a'});
  lv.ItemsSource = AllQuestions;
  </code></pre>
  
  <p>The listview would show <code>why</code>, but instead it just shows white space. I have noticed though when I change <code>DisplayMemberBinding="{Binding Question}"</code> to <code>DisplayMemberBinding="{Binding Answer}"</code> it will properly show <code>a</code>.</p>
  
  <p>If it helps here is the code to my question class:</p>
  
  <pre><code>public class Question
  {
      public string @Question { get; set; }
      public char Answer { get; set; }
  }
  </code></pre>
  
  <p>So to summarize, what  I want to know is how to display the <code>@Question</code> property and why when I have <code>DisplayMemberBinding="{Binding Question}"</code> it displays white space</p>
  
  <p><a href="https://i.stack.imgur.com/KT9AZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KT9AZ.png" alt="Example"></a></p>