What should you do to ensure that the content text of each button is displayed?

You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application contains the following elements:
* A button that has the text content "OK"
* A button that has the text content "Apply"
* A button that has the text content "Cancel"
* A custom control template that updates the appearance of Button controls
When you apply the custom control template to the three buttons, the buttons appear identical and their content text is not displayed.
You need to ensure that the content text of each button is displayed. What should you do?

You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application contains the following elements:
* A button that has the text content “OK”
* A button that has the text content “Apply”
* A button that has the text content “Cancel”
* A custom control template that updates the appearance of Button controls
When you apply the custom control template to the three buttons, the buttons appear identical and their content text is not displayed.
You need to ensure that the content text of each button is displayed. What should you do?

A.
Add a static resource to the application.

B.
Add a dynamic resource to the application.

C.
Update the control template to use a ValueConverter class.

D.
Update the control template to use a TemplateBinding class.



Leave a Reply 0

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