Microsoft
70-354 · Question #33
You are developing a Universal Windows Platform (UWP) app that will display a list of contacts. The application architecture uses the Model-View-ViewModel (MVVM) pattern. You are designing a form to…
The correct answer is C. Use a CommandBinding object that contains a CanExecute event. See the full explanation below for the reasoning.
Question
You are developing a Universal Windows Platform (UWP) app that will display a list of contacts. The application architecture uses the Model-View-ViewModel (MVVM) pattern. You are designing a form to add new contacts to the app. The form contains an input field named LastName and a Save button. You need to ensure that when LastName is empty, the Save button is disabled. What should you use?
Options
- AOn the Save button, change the IsDefaulted property and the IsDefault property.
- BUse an InputType enumeration that has a Command member.
- CUse a CommandBinding object that contains a CanExecute event.
- DOn the Save button, change the IsEnabled value.
How the community answered
(46 responses)- A2% (1)
- B4% (2)
- C83% (38)
- D11% (5)
Community Discussion
No community discussion yet for this question.