You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. <br /> You write the following code fragment. <br /> <style targettype="{x:Type Label}" type="text/css"><br /> <Setter Property="Foreground" Value="Blue"/> <br /> </style> <img src="https://nimg.ppkao.com/2018-07/yiyu/2018072715032172610.jpg?sign=5e9621917ee29bc292ad32f09c84986d&t=62d330b6" /><br /> You need to ensure that the style is applied to all labels within the application. <br /> What should you do?()
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.