title: listview bind to object of class wpf
body: <p>I have the following <code>AddedInfo</code> class:</p>
  
  <pre><code>public class AddedInfo : ViewModelBase
  {
      private string m_infoString = "ppp";
      private ToggleButton m_infoButton = new ToggleButton();
  
      #region Properties
  
      public string InfoString
      {
          get { return m_infoString; }
          set
          {
              m_infoString = value;
              OnPropertyChanged();
          }
      }
      public ToggleButton InfoButton
      {
          get { return m_infoButton; }
          set
          {
              m_infoButton = value;
              OnPropertyChanged();
          }
      }
  
      #endregion Properties
  }
  </code></pre>
  
  <p>In my <code>ViewModel</code>, I have the following definition:</p>
  
  <pre><code>private ObservableCollection&lt;AddedInfo&gt; m_informationList = new ObservableCollection&lt;AddedInfo&gt;();
  
  public ObservableCollection&lt;AddedInfo&gt; InformationList
  {
      get { return m_informationList; }
      set
      {
          m_informationList = value;
          OnPropertyChanged();
      }
  }
  </code></pre>
  
  <p>And in the <code>Xaml</code>:</p>
  
  <pre><code>&lt;ListView Grid.Row="1" Background="Black" ItemsSource="{Binding InformationList, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" 
                        HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"/&gt;
  </code></pre>
  
  <p>I would like the <code>ListView</code> to show only the <code>ToggleButtons</code> from class <code>AddedInfo</code> (meaning the <code>InfoButton</code> object).</p>
  
  <p>Can such thing be done?</p>