title: WPF: Use property field value in ComboBox instead of the object name
body: <p>My combobox is bound with google search results.</p>
  <pre><code>&lt;ComboBox
      Style=&quot;{StaticResource ComboBoxStyle}&quot;
      IsEditable=&quot;True&quot;
      IsTextSearchEnabled=&quot;False&quot;
      ItemsSource=&quot;{Binding GoogleSuggest.SuggestedQueries}&quot;
      SelectedItem=&quot;{Binding GoogleSuggest.SelectedQuery}&quot;
      &gt;
      &lt;ComboBox.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;Grid&gt;
                  &lt;Grid.ColumnDefinitions&gt;
                      &lt;ColumnDefinition Width=&quot;Auto&quot; /&gt;
                      &lt;ColumnDefinition Width=&quot;*&quot; /&gt;
                  &lt;/Grid.ColumnDefinitions&gt;
                  
                  &lt;Image Source={Binding IconPath, Converter={StaticResource IconPathToImageSource} Width=&quot;32&quot; Height=&quot;32&quot; /&gt;
                  
                  &lt;StackPanel Grid.Column=&quot;1&quot;&gt;
                      &lt;TextBlock Text=&quot;{Binding Query}&quot; Margin=&quot;0,8&quot; FontSize=&quot;24&quot; /&gt;
                      &lt;TextBlock Text=&quot;{Binding URL}&quot; Margin=&quot;0,8&quot; FontSize=&quot;16&quot; /&gt;
                  &lt;/StackPanel&gt;
              &lt;/Grid&gt;
          &lt;/DataTemplate&gt;
      &lt;/ComboBox.ItemTemplate&gt;
  &lt;/ComboBox&gt;
  </code></pre>
  <p>My Model looks like this</p>
  <pre><code>public class Model_SuggestedQueries : ViewModelBase
  {
      private string _Query = string.Empty;
      public string Query
      {
          get { return _Query; }
          set
          {
              if (_Query != value)
              {
                  _Query = value;
                  base.RaisePropertyChanged(&quot;Query&quot;);
              }
          }
      }
  
      private int _Index = 0;
      public int Index
      {
          get { return _Index; }
          set
          {
              if (_Index != value)
              {
                  _Index = value;
                  base.RaisePropertyChanged(&quot;Index&quot;);
              }
          }
      }
      
      private string _URL = 0;
      public string URL
      {
          get { return _URL; }
          set
          {
              if (_URL != value)
              {
                  _URL = value;
                  base.RaisePropertyChanged(&quot;URL&quot;);
              }
          }
      }
      
      private string _Icon = 0;
      public string Icon
      {
          get { return _Icon; }
          set
          {
              if (_Icon != value)
              {
                  _Icon = value;
                  base.RaisePropertyChanged(&quot;Icon&quot;);
              }
          }
      }
  }
  </code></pre>
  <p>But when I make a selection, the .Text field looked like this.</p>
  <p><img src="https://i.stack.imgur.com/gkJGy.gif" alt="enter image description here" /></p>
  <p>How can I show the &quot;Query&quot; value instead of the object name?</p>