Which two actions should you perform?

You are developing a Silverlight 4 application. The application contains a form that has a Grid control and several input fields. The data context is bound to an object that implements validation. You need to display a summary of validation errors. Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)

You are developing a Silverlight 4 application. The application contains a form that has a Grid control and several input fields. The data context is bound to an object that implements validation. You need to display a summary of validation errors. Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)

A.
Add a ValidationSummary control.

B.
Add a ListBox control and bind it to the Validation.Errors property of the Grid control.

C.
Set Validation.HasError=”True” on the Grid control if any of the fields contains an error.

D.
Set NotifyOnValidationError=true and Mode=TwoWay on each field�s binding expression.



Leave a Reply 0

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