Microsoft
70-511 · Question #108
70-511 Question #108: Real Exam Question with Answer & Explanation
The correct answer is B. Update the binding source as follows. C. Implement the IDataErrorlnfo interface.. See the full explanation below for the reasoning.
Question
You are developing a Windows Presentation Foundation (WPF) application. You add a TextBox control to the design surface and bind it to an underlying window resource named dsGiftCertificate. The control uses the binding XAML as follows. <Binding Source="{StaticResource dsGiftCertificate}" UpdateSourceTrigger="LostFocus" Path="Coupon" /> You need to provide a custom error message in the tooltip of the TextBox when the user leaves the textbox. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Options
- AImplement the INotifyPropertyChanged interface.
- BUpdate the binding source as follows.
- CImplement the IDataErrorlnfo interface.
- DUpdate the binding source as follows.
Community Discussion
No community discussion yet for this question.