Microsoft
70-511 · Question #164
70-511 Question #164: Real Exam Question with Answer & Explanation
Sign in or unlock 70-511 to reveal the answer and full explanation for question #164. 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 MyStyle)">Hello World</TextBlock> <Button Style="{StaticResource MyStyle} ">Ok</Button> </StackPanel> 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.