You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.The application contains a composite user control that includes a TextBox control named txtInput.The user control will be hosted in a window and will have handlers for the text-changed event of txtInput.You need to ensure that the application meets the following requirements:Creates a text-changed event handler named Audit_TextChanged for the txtInput control.Executes Audit_TextChanged even when specific handlers mark the event as handled.Which code segment should you add to the constructor of the user control?()
A.txtInput.TextChanged+=Audit_TextChanged;
B.AddHandler(TextBox.TextChangedEvent, new RoutedEventHandler(Audit_TextChanged), true);
C.EventManager.RegisterClassHandler(typeof(TextBox), TextBox.TextChangedEvent, new RoutedEventHandler(Audit_TextChanged), true);
D. EventManager.RegisterClassHandler(typeof(TextBox), TextBox.TextChangedEvent, new RoutedEventHandler (Audit_TextChanged), false);
第1题
A.
B.
C.
D.
第2题
A.ListBox
B.DockPanel
C.WrapPanel
D.StackPanel
第3题
A.Add the style to the <Grid.Resources> section of the main window.
B.Add the style to the <Window.Resources> section of the main window.
C.Add the style to the <Application.Resources> section of the App.xaml file.
D.Add the style to the <Application.Properties> section of the App.xaml file.
E.Add the style to the <ResourceDictionary> section of the ResourceDictionary.xaml file.
第4题
A.Implement the INotifyPropertyChanged interface in the Product class.
B.Implement the INotifyCollectionChanged interface in the ProductList class.
C.Set the Mode property of the Binding object of the ListBox control to TwoWay.
D. Set the UpdateSourceTrigger property of the Binding object of the ListBox control to PropertyChanged.
第5题
A. Implement the INotifyPropertyChanged interface in the Product class.
B. Implement the IQueryable<Product> interface in the ProductList class.
C. Extend the DependencyObject class in the Product class.
D.Extend the ObservableCollection<Product> class in the ProductList class.
第6题
A.
B.
C.
D.
第7题
A.
B.
C.
D.
第8题
A.
B.
C.
D.
第9题
A.Modify the Value property of the progress bar in DoCalculations.
B.Modify the Value property of the progress bar in the ProgressChanged event handler of the background worker.
C.Modify the Value property of the progress bar in the RunWorkerCompleted event handler of the background worker.
D.Call the ReportProgress method of the background worker in DoCalculations.
E.Call the ReportProgress method of the background worker in the DoWork event handler of the background worker.
第10题
A.Use the File Types Editor tool.
B.Rename the icon file to MyApp.exe .ico.
C.Set the AddRemoveProgramsIcon property to Application.ico.
D.Use the File System Editor tool to set the Icon property to Application.ico.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!