单项选择题
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 responsd to the button click event before hosting control responds to the event.
What should you do ?()
A. Use a bubbling routed event. In the button click event handler, set the Handled property to True
B. Use a bubbling routed event. In the button click event handler, set the Handled property to False
C. Use a standard Microsoft .NET event. Set Handled property to true.
D. Use a tunneling routed event. Set the handled property to false.
相关考题
-
单项选择题
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 ?()
A. Autos
B. Immediate
C. Locals
D. Output -
单项选择题
You are developing a Windows Presentation Foundation (WPF) application that display pricing and inventory. List boxs ItemsSource property has decimal and string types. Decimals represent price and strings represents the folowing markup is defined as follows. You need to ensure that data templates are used to format the strings without changes and the decimals as .. Which markup segment should you insert at line 05 ?()
A.
B.
C.
D. -
单项选择题
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 ...
