What should you recommend?

You are designing a Windows Presentation Foundation (WPF) application. Business entity objects are bound to controls on each data entry window.
The WPF application must meet the following requirements:
Display a watermark in each empty text box.
Display watermarks in a lighter color than user entries.
The watermark code must be reusable with other user interface controls. You need to recommend an approach for creating the watermarks.
What should you recommend?
A. Modify each business entity object to return the watermark text if the property has no data.
B. Attach a custom attached property and an Adorner to each text box.
C. Create a value converter to format the bound value of the business entity objects.
D. Create handlers for the OnFocus and OnFocusLost events of the text boxes in the code-behind.

microsoft-exams

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.