What should you do?

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 ModelViewViewModel (MVVM) 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?

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 ModelViewViewModel (MVVM) 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.
In the ViewModel, hide all input controls if the user’s role is a Product Manager.

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.
Create a separate StackPanel in the window to modify data. �Create a separate StackPanel in the window to view data.



Leave a Reply 0

Your email address will not be published. Required fields are marked *