Microsoft
70-511 · Question #208
You are developing a Windows Presentation Foundation (WPF) application. The application uses drag-and-drop functionality. You need to ensure that code is executed in the code-behind file when the…
The correct answer is C. DragAction.Drop. See the full explanation below for the reasoning.
Question
You are developing a Windows Presentation Foundation (WPF) application. The application uses drag-and-drop functionality. You need to ensure that code is executed in the code-behind file when the dragged item is released onto the target element. Which enumeration should you use?
Options
- ADragDropEffects.None
- BDragDropEffects.All
- CDragAction.Drop
- DDragAction.Cancel
How the community answered
(34 responses)- A6% (2)
- B3% (1)
- C76% (26)
- D15% (5)
Community Discussion
No community discussion yet for this question.