nerdexam
Microsoft

70-511 · Question #38

70-511 Question #38: Real Exam Question with Answer & Explanation

Sign in or unlock 70-511 to reveal the answer and full explanation for question #38. The question stem and answer options stay visible for context.

Question

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains the following code fragment. <StackPanel> <TextBlock Style="{StaticResource HyStyle)">Hello World</TextBlock> <Button Style="{StaticResource HyStyle}">Ok</Button> </StackPonel> You need to define a style that applies the following properties to the text in the StackPanel object: - FontSize = 32 - FontWeight = Bold Which code fragment should you use?

Options

  • A<Style x:Key="MyStyle" TargetType="{x:Type Control}">
  • B<Style x:Key="MyStyle" TargetType="{ x : Type Framework-Element} ">
  • C<Style x:Key="MyStyle" TargetType="{x:Type TextElement}">
  • D<Style x:Key="MyStyle" TargetType-"(x:Type UserControl)">

Unlock 70-511 to see the answer

You've previewed enough free 70-511 questions. Unlock 70-511 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-511 Practice
You use Microsoft .NET Framework 4 to create a Windows... | 70-511 Q#38 Answer | NerdExam