title: Appending a user selected value onto a preset string in ComboBox
body: <p>Okay, so this is something that I assumed would be a quick and easy process however I have struggled to find a solution to this problem.</p>
  
  <p>What I want to do is have a dropdown menu that will display "Rows: (value)" by default. When the dropdown is opened I want it to display the available values only.</p>
  
  <p>Here is my C# code:</p>
  
  <pre><code>private void RowsComboBox_Loaded(object sender, RoutedEventArgs e)
      {
  
          List&lt;int&gt; data = new List&lt;int&gt;();
          data.Add(2);
          data.Add(3);
          data.Add(4);
          data.Add(5);
          data.Add(6);
          data.Add(7);
          data.Add(8);
  
          var comboBox = sender as ComboBox;
          comboBox.ItemsSource = data;
          comboBox.SelectedIndex = 0;
  }
  
  private void RowsComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
      {
          var comboBox = sender as ComboBox;
          string value = comboBox.SelectedItem.ToString();
  }
  </code></pre>
  
  <p>XAML:</p>
  
  <pre><code>&lt;ComboBox x:Name="RowsComboBox"  Loaded="RowsComboBox_Loaded" SelectionChanged="RowsComboBox_SelectionChanged"/&gt;
  </code></pre>
  
  <p>As it is now I can get the values to change but I can only either display the text or the value but not both together.
  There are work arounds that I can do but this has annoyed me to the point that I want an answer just to see how it is done.</p>