Skip to content

Commit

Permalink
swapped the contents of the two readme files
Browse files Browse the repository at this point in the history
  • Loading branch information
carpenterx committed Jan 31, 2022
1 parent 06d91de commit 51b71a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 3 additions & 4 deletions Drag and Drop/DragDropObjects/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ languages:
products:
- windows-wpf
page_type: sample
name: "Create a Data Object from a Text Selection Sample"
name: "Drag and Drop an Object on a Canvas"
---

# Create a Data Object from a Text Selection Sample
This sample creates a data object from a text selection.
The user is able to use the mouse to select provided sample text in a TextBox, and then click a button to create a data object that contains the text selection. One of the DataObject constructors is used to create the data object and specify the contained data and corresponding data format. The DataFormats class provides a static type string that is used to specify the data format as "Text". Finally, the sample displays the native data formats and corresponding data stored in the newly-created data object.
# Drag and Drop an Object on a Canvas
This example shows how to move objects on a Canvas using drag and drop. In addition, this sample shows how to apply an adorner and an animation to the object as it is being moved.

## Build the sample
The easiest way to use these samples without using Git is to download the zip file containing the current version (using the link below or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in [Visual Studio 2019](https://www.visualstudio.com/wpf-vs).
Expand Down
7 changes: 4 additions & 3 deletions Drag and Drop/DragDropTextOps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ languages:
products:
- windows-wpf
page_type: sample
name: "Drag and Drop an Object on a Canvas"
name: "Create a Data Object from a Text Selection Sample"
---

# Drag and Drop an Object on a Canvas
This example shows how to move objects on a Canvas using drag and drop. In addition, this sample shows how to apply an adorner and an animation to the object as it is being moved.
# Create a Data Object from a Text Selection Sample
This sample creates a data object from a text selection.
The user is able to use the mouse to select provided sample text in a TextBox, and then click a button to create a data object that contains the text selection. One of the DataObject constructors is used to create the data object and specify the contained data and corresponding data format. The DataFormats class provides a static type string that is used to specify the data format as "Text". Finally, the sample displays the native data formats and corresponding data stored in the newly-created data object.

## Build the sample
The easiest way to use these samples without using Git is to download the zip file containing the current version (using the link below or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in [Visual Studio 2019](https://www.visualstudio.com/wpf-vs).
Expand Down

0 comments on commit 51b71a9

Please sign in to comment.