title: How shall i group the combobox items in MVVM WPF
body: <p>In my mainviewmodel i have list of People</p>
  
  <pre><code>class MainViewModel
  {
      publc List&lt;People&gt; PeopleList
      {
          get;
          set;
      }
  }
  </code></pre>
  
  <p>and the each People has mode of travelling</p>
  
  <pre><code>Class People
  {
     public List&lt;TravelMode&gt; TravelModes
      {
       get;
        set;  
      }
  
      public string Name{get;set;}
  }
  
  Class TravelMode
  {
    public string VehicleName{get;set;}  
  }
  </code></pre>
  
  <p>Here is the XAML code</p>
  
  <pre><code>&lt;ComboBox ItemsSource="{Binding Path= PeopleList, Mode=TwoWay}   DisplayMemberPath="VehicleName"  &gt;
  </code></pre>
  
  <p>Now the combo box shows all the vehicle data
  like this</p>
  
  <pre><code>Car
  Bike
  Bus
  Train
  </code></pre>
  
  <p>is it possible grouping the combo box items as mentioned below. with out any code behind just by databinding in xaml?</p>
  
  <pre><code>John
  -------Car
  -------Bike
  Jerry
  -------Bus
  -------Train
  </code></pre>
  
  <p>How may i do that? </p>