nerdexam
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)
  • A
    6% (2)
  • B
    3% (1)
  • C
    76% (26)
  • D
    15% (5)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice