From d7873c5fa0832317333336119c8239a6ca87329c Mon Sep 17 00:00:00 2001 From: "Andy (Steve) De George" <67293991+adegeo@users.noreply.github.com> Date: Mon, 6 Jan 2025 11:59:40 -0800 Subject: [PATCH 1/2] Update drag-and-drop-overview.md --- .../framework/wpf/advanced/drag-and-drop-overview.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dotnet-desktop-guide/framework/wpf/advanced/drag-and-drop-overview.md b/dotnet-desktop-guide/framework/wpf/advanced/drag-and-drop-overview.md index 42c5b3e201..774bb3e90f 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/drag-and-drop-overview.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/drag-and-drop-overview.md @@ -189,7 +189,11 @@ This topic provides an overview of drag-and-drop support in Windows Presentation - Processing the dropped data. - To specify that an element is a drop target, you set its property to `true`. The drop target events will then be raised on the element so that you can handle them. During a drag-and-drop operation, the following sequence of events occurs on the drop target: +To specify that an element is a drop target, you set its property to `true`. The drop target events will then be raised on the element so that you can handle them. + +When a drop target is evaluated, a hit test is performed to identify if the cursor is over the element's visual. Some controls, such as the , don't have a visual and can't be used as a drop target unless a visual is added. Set the `Canvas.Background` property to any color to create a visual that fills the `Canvas` with color. To keep the `Canvas` transparent but enable it as a drop target, set the `Background` property to `Transparent`. + +During a drag-and-drop operation, the following sequence of events occurs on the drop target: 1. From 8f66646d6a26e28e0f70e5f715a7d1515cfa4a1d Mon Sep 17 00:00:00 2001 From: "Andy (Steve) De George" <67293991+adegeo@users.noreply.github.com> Date: Mon, 6 Jan 2025 12:06:23 -0800 Subject: [PATCH 2/2] Fix formatting in drag-and-drop overview document --- .../framework/wpf/advanced/drag-and-drop-overview.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dotnet-desktop-guide/framework/wpf/advanced/drag-and-drop-overview.md b/dotnet-desktop-guide/framework/wpf/advanced/drag-and-drop-overview.md index 774bb3e90f..73441ee22b 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/drag-and-drop-overview.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/drag-and-drop-overview.md @@ -190,10 +190,10 @@ This topic provides an overview of drag-and-drop support in Windows Presentation - Processing the dropped data. To specify that an element is a drop target, you set its property to `true`. The drop target events will then be raised on the element so that you can handle them. - + When a drop target is evaluated, a hit test is performed to identify if the cursor is over the element's visual. Some controls, such as the , don't have a visual and can't be used as a drop target unless a visual is added. Set the `Canvas.Background` property to any color to create a visual that fills the `Canvas` with color. To keep the `Canvas` transparent but enable it as a drop target, set the `Background` property to `Transparent`. - -During a drag-and-drop operation, the following sequence of events occurs on the drop target: + +During a drag-and-drop operation, the following sequence of events occurs on the drop target: 1.