Microsoft
70-518 · Question #80
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, disable all input controls if the user's role is not 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 StackPanel in the window to modify data.
- BIn the ViewModel, disable all input controls if the user's role is not a Product Manager.
- CCreate a separate window to modify data.
- DIn the ViewModel, hide all input controls if the user's role is a Product Manager.
How the community answered
(31 responses)- A10% (3)
- B74% (23)
- C13% (4)
- D3% (1)
Community Discussion
No community discussion yet for this question.