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?
A.
Create a separate StackPanel in the window to modify data.
Create a separate StackPanel in the window to view data.
B.
In the ViewModel, disable all input controls if the user’s role is not a Product Manager.
C.
Create a separate window to modify data.
Create a separate window to view data
D.
In the ViewModel, hide all input controls if the user’s role is a Product Manager.