nerdexam
Microsoft

70-355 · Question #30

You are developing a Universal Windows Platform (UWP) app. The application architecture uses the Model-View-ViewModel (MVVM) pattern. You are designing a form to add new contacts to the app. The…

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. 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 IsSeleted value.

How the community answered

(22 responses)
  • A
    14% (3)
  • B
    5% (1)
  • C
    82% (18)

Community Discussion

No community discussion yet for this question.

Full 70-355 Practice