title: WPF - Need to drag in text from notepad and then call a method
body: <p>I have a textbox on a WPF app that I want to be able to drag text into from an outside application (notepad++).  The PreviewDrop handler works great but when I go to retrieve the text from the text box after the handler is called (myTxtBox.Text) all I get is an empty string.  As soon as i drop the text into the textbox, i want the handler to fire and call another method that will do something with the text input that is being dropped.  but its firing too fast. any suggestions?  </p>
  
  <p>my handler method</p>
  
  <pre><code> private void myTxtBox_Drop(object sender, DragEventArgs e)
   {
       string itemID = myTxtBox.Text.Trim();
   }
  </code></pre>
  
  <p>xaml of the text box</p>
  
  <pre><code>&lt;TextBox x:Name="myTxtBox" Height="23" Margin="5,61,5,0" TextWrapping="Wrap" VerticalAlignment="Top" Grid.ColumnSpan="1" LostFocus="btnLookup_Click" Drop="myTxtBox_Drop" KeyDown="myTxtBox_KeyDown" AllowDrop="True"  PreviewDrop="myTxtBox_Drop" /&gt;
  </code></pre>