单项选择题
You are developing a Windows Presentation Foundation (WPF) application
The application is for commercial use and requires a valid license key to be entered. You create a project type of Class Library code to validate license keys
You need to ensure that the user enters a valid license key during installation of the software.
Which deployment should reference the class library?()
A. Click Once
B. Setup Project
C. XBAP
D. XCopy
相关考题
-
单项选择题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application displays a list of books. You write the following code fragment. (Line numbers are included for reference only.) You need to ensure that book titles that are out of stock appear in red. Which code fragment should you insert at line 12?()
A.
B.
C.
D. -
单项选择题
You create a Windows client application by using Windows Presentation Foundation (WPF). The application contains the following code fragment. You need to assign lbDetails to use the detail data template when btnDetails is clicked. Which code segment should you write for the click event handler for btnDetails?()
A. lbDetails.ItemsPanel.FindName("detail",lbDetails);
B. var tmpl = (ControlTemplate)FindResource("detail"); lbDetails.Template = tmpl;
C. var tmpl = (DataTemplate)FindName("detail"); lbDetails.ItemTemplate = tmpl;
D. var tmpl = (DataTemplate)FindResource("detail"); lbDetails.ItemTemplate=tmpl; -
单项选择题
You are developing a Windows Forms application that contains a DataGridView control. The DataGridView capture the customers 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 ?()
A. Validate the name field in the CellValidating event. Set e.Cancel = true if the name field is
B. Validate the name field in the CellErrorTextChanged event. Get e.RowIndex if the name field ..
C. Validate the name field in the CellEnter event. Set the focus on the name field if the name ...
D. Validate the name field in the CancelRowEdit event. Set the focus on the name field if the name ...
