You are developing a Windows Forms application that contains a DataGridView control. The DataGridView capture the customer's name, address, and phone number. You have been asked to provide data validation in
a DataGridView to prevent users from leaving the.. You need to ensure that users cannot tab out of the name field without entering data. What should you do?
You are developing a Windows Presentation Foundation (WPF) application that display pricing and inventory.
List box's ItemsSource property has decimal and string types. Decimals represent price and strings represents the following markup is defined as follows.
You need to ensure that data templates are used to format the strings without changes and the decimals as currency. Which markup segment should you insert at line 05?
You are developing a Windows Presentation Foundation (WPF) application.
You are implementing the security features for a function that requires File IO. The callers of this function that are higher in the stack do not have permission to read the C:\Temp directory.
The function also accesses other resources that require permission. You need to ensure that the function has the proper permissions to read the C:\Temp directory, and that all other resources in the function can still be accessed. Which attribute should you include with the function?
You are developing a Windows Presentation Foundation (WPF) application.
You configure PresentationTraceSource to track errors in a bound TextBox control in the application. You need to choose the window that the Trace information is sent to. Which Visual Studio window should you select ?
You are developing a user control for Windows Presentation Foundation (WPF) application.
The user control contains a button. Both the user control and the hosting control must receive the button click event. You need to ensure that the user control responds to the button click event before hosting control responds to the event. What should you do ?
You are developing a Windows Presentation Foundation (WPF) application.
All of the application styles are in the file name Themes.dll You have the following markup segment. ....
BlueBackground is defined in a XAML file named BlueTheme.xaml. The XAML markup is compiled into the
Themes.dll file. You need to ensure that the XAML file is referenced so that the application can apply the settings in the BlueBackground style.
You are developing a Windows Presentation Foundation (WPF) application.
The application contains stylized body text and heading text. The heading text is a slight variation of the body text. You need to ensure that if the body text changes, the heading text automatically inherits those changes.
What should you do?
You are developing a Windows Presentation Foundation (WPF) application.
You need to use XAML to create a custom control that contains two Button controls. From which base class should you inherit?
Which of the following examples of the pack URI syntax accesses a file named myImage.jpg in a folder named MyFolder in another assembly named myAssembly?