nerdexam
Microsoft

70-518 · Question #116

You are designing a Windows Presentation Foundation (WPF) data entry application. The application uses data binding to bind controls in the user interface (UI) to business objects. The UI uses…

The correct answer is D. Implement the IDataErrorlnfo interface in the business objects and replace all ValidationRule. See the full explanation below for the reasoning.

Question

You are designing a Windows Presentation Foundation (WPF) data entry application. The application uses data binding to bind controls in the user interface (UI) to business objects. The UI uses validation rules for each input control. The data validation rules change based on the state of the business object. You need to recommend a validation strategy that will allow changes to the validation rules without changes to the UI code. What should you recommend?

Options

  • AImplement the IDataErrorlnfo interface in the business objects and replace all ValidationRule
  • BSet the ValidationStep attribute on ValidationRule elements to CommittedValue.
  • CSet the ValidationStep attribute on ValidationRule elements to RawProposedValue.
  • DImplement the IDataErrorlnfo interface in the business objects and replace all ValidationRule

How the community answered

(44 responses)
  • A
    7% (3)
  • B
    5% (2)
  • C
    11% (5)
  • D
    77% (34)

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice