nerdexam
Microsoft

70-518 · Question #202

You are designing an application by using Windows Presentation Foundation (WPF) and Microsoft .NET Framework 4. The application allows users to view product details. Product managers can modify the…

The correct answer is B. In the ViewModel, hide all input controls if the user's role is a Product Manager. See the full explanation below for the reasoning.

Question

You are designing an application by using Windows Presentation Foundation (WPF) and Microsoft .NET Framework 4. The application allows users to view product details. Product managers can modify the product details for the products that they manage. You plan to design the application by using the Model-View-ViewModel (M-V-VM) pattern. You need to ensure that the product details can be viewed by all users and modified only by product managers. What should you do?

Options

  • ACreate a separate window to modify data.
  • BIn the ViewModel, hide all input controls if the user's role is a Product Manager.
  • CIn the ViewModel, disable all input controls if the user's role is not a Product Manager,
  • DCreate a separate StackPanel in the window to modify data.

How the community answered

(41 responses)
  • A
    7% (3)
  • B
    78% (32)
  • C
    12% (5)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice