Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning that DragEnter does not work unless Canvas Background is set #1490

Open
techfan101 opened this issue Aug 2, 2022 · 0 comments
Open
Labels
doc-bug Problem with the content; needs to be fixed [org][type][category] dotnet-framework/svc okr-health Content-health KR: Concerns article defects/freshness or build warnings. Pri1 High priority, do before Pri2 and Pri3 wpf/subsvc

Comments

@techfan101
Copy link

For the most part, this page was very helpful and clearly written. However, there is one "gotcha" that can cause a huge headache for your readers.

It occurs with controls like the Canvas control. In addition to setting the AllowDrop property, it is also necessary to set the Background property. Otherwise, the Canvas is not recognized as a valid drop target, the "not allowed" cursor is displayed, and the DragEnter and Drop events never fire.

Adding a simple warning about the Background property could save developers a lot of time.

I recently spent an afternoon re-discovering this entirely non-obvious requirement. It would be great if you could help other developers avoid this time waste :) Thank you.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label Aug 2, 2022
@PRMerger5 PRMerger5 added dotnet-framework/svc wpf/subsvc Pri1 High priority, do before Pri2 and Pri3 labels Aug 2, 2022
@techfan101 techfan101 changed the title Set Canvas Background Add warning that DragEnter does not work unless Canvas Background is set Aug 2, 2022
@adegeo adegeo added the doc-bug Problem with the content; needs to be fixed [org][type][category] label Sep 12, 2022
@dotnet-bot dotnet-bot removed the ⌚ Not Triaged Not triaged label Sep 12, 2022
@dotnet-policy-service dotnet-policy-service bot added the okr-health Content-health KR: Concerns article defects/freshness or build warnings. label Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-bug Problem with the content; needs to be fixed [org][type][category] dotnet-framework/svc okr-health Content-health KR: Concerns article defects/freshness or build warnings. Pri1 High priority, do before Pri2 and Pri3 wpf/subsvc
Projects
None yet
Development

No branches or pull requests

4 participants