title: Get text of RadAutoCompleteBox
body: <p>How can I get the text of a RadAutoCompleteBox using RadControls Q1 2013 in C#?</p>
  
  <p><code>autoCompleteBox.SelectedItem</code> returns <code>"ServerCrafterTelerikWPF.Command"</code>. </p>
  
  <p><strong>Edit 1:</strong>
  Here's my XAML:</p>
  
  <pre><code>&lt;telerik:RadAutoCompleteBox x:Name="txtboxCommand" ItemsSource="{Binding Commands, Source={StaticResource ViewModel}}" 
  DisplayMemberPath="ACommand"  AutoCompleteMode="Append" HorizontalAlignment="Left" 
  telerik:StyleManager.Theme="Modern" Margin="280,405,0,0" 
  VerticalAlignment="Top" Width="330" Height="30" KeyDown="txtboxCommand_KeyDown"/&gt;
  </code></pre>
  
  <p>And I don't have any C# code. I just want, when a button is pressed, to get the text that is in the RadAutoCompleteBox.</p>
  
  <p><strong>Edit 2:</strong>
  And here's my <code>collection</code>:</p>
  
  <pre><code>public class Command
  {
      public string ACommand { get; set; }
  }
  
  /// &lt;summary&gt;
  /// A view model for MainWindow.xaml
  /// &lt;/summary&gt;
  public class ViewModel
  {
      public ObservableCollection&lt;Command&gt; Commands { get; set; }
  
      public ViewModel()
      {
          Commands = new ObservableCollection&lt;Command&gt;()
              {
                  new Command() {ACommand = "stop "},
                  // Other commands...
                  // ...
                  // ...
              };
      }
  }
  </code></pre>