Windows-Apps-Dev-Microsoft-NET-Framework-4-Csharp-(70-511-CSharp) - Microsoft 70-511-CSharp Windows Apps Dev Microsoft.NET Framework 4

Windows-Apps-Dev-Microsoft-NET-Framework-4-Csharp-(70-511-CSharp)

This preview shows page 1 - 4 out of 8 pages.

70-511-CSharp Microsoft Windows Apps Dev Microsoft .NET Framework 4
QUESTION: 59 You are developing a Windows Presentation Foundation (WPF) application. An event triggers a workflow such that a parent control executes the event handlers before the child controls. You need to ensure that if a parent control's event handler encounters an error, the subsequent handlers are not called. What should you do? A. use handlers for a tunneling routed event and mark the event as handled in the case of a problem. B. Use handlers for a tunneling routed event and mark the event as handled in the finally portion of a try-catch-finally code block. C. Use handlers for a bubbling routed event and mark the event as handled in the case of a problem. D. Use handlers for a bubbling routed event and set the Handled property of the RoutedEventArgs object to true in the catch portion of a try-catch-finally code block. Answer: D QUESTION: 60 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? C QUESTION: 61 You are developing a Windows Presentation Foundation (WPF) application. Theapplication contains the following code in the code-behind file for an applicationwindow. (Line numbers are included for reference only.) 01 StackPanel stack = new StackPanel () ; 02 Content = stack; 03 for (int i=0; i<10; i++) 04 { 05 Button btn = new Buttonf(); 06 btn.Name = ((char) ('A' + i)) .ToString (); 07 btn.Content = btn.Name + "says 'Click me' "; 08 09 } 37
You need to ensure that all of the Button controls that are defined in this code segment appear in the application window. Which code segment should you insert at line 08? A

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture