nerdexam
Microsoft

70-511 · Question #85

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 D. 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
  • BDragAction.Cancel
  • CDragDropEffects.AII
  • DDragAction.Drop

How the community answered

(60 responses)
  • A
    12% (7)
  • B
    5% (3)
  • C
    3% (2)
  • D
    80% (48)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice