#693 – TextBox Control Supports Drag-and-Drop

The TextBox control in WPF automatically supports drag-and-drop, in several different scenarios.

You can select text in one TextBox and drag it into another.  If you just click the left mouse button on some selected text and drag, the text will be cut from the first TextBox and pasted into the second.

 

If you hold the Ctrl key down while clicking and dragging, you can do a copy operation.

 

You can also drag text from another application (e.g. a web browser) into a TextBox in your application.

 

And you can drag text from a TextBox out of your application, into an application that accepts text as the result of a drag operation.

 

About Sean
Software developer in the Twin Cities area, passionate about .NET technologies. Equally passionate about my own personal projects related to family history and preservation of family stories and photos.

One Response to #693 – TextBox Control Supports Drag-and-Drop

  1. Pingback: Dew Drop – November 19, 2012 (#1,445) | Alvin Ashcraft's Morning Dew

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: