Which color should you choose?

You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application-definition file contains the following XAML code fragment.

<Application.Resources>
<Style x:Key="ContentControlStyle">
<Setter Property="ContentControl.Background" Value="Magenta" />
</Style>
</Application.Resources>
You add a window to the application. The window definition includes the following XAML code fragment.

<Window.Style>
<Style>
<Setter Property="Button.Background" Value="Green" />
</Style>
</Window.Style>
<Button Content="Open" Background="Yellow" >
<Button.Style>
<Style>
<Setter Property="Button.Background" Value="Blue" />
</Style>
</Button.Style>
</Button>
You need to identify the background color of the Button control.
Which color should you choose?

You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application-definition file contains the following XAML code fragment.

<Application.Resources>
<Style x:Key="ContentControlStyle">
<Setter Property="ContentControl.Background" Value="Magenta" />
</Style>
</Application.Resources>
You add a window to the application. The window definition includes the following XAML code fragment.

<Window.Style>
<Style>
<Setter Property="Button.Background" Value="Green" />
</Style>
</Window.Style>
<Button Content="Open" Background="Yellow" >
<Button.Style>
<Style>
<Setter Property="Button.Background" Value="Blue" />
</Style>
</Button.Style>
</Button>
You need to identify the background color of the Button control.
Which color should you choose?

A.
Blue

B.
Green

C.
Yellow

D.
Magenta



Leave a Reply 0

Your email address will not be published. Required fields are marked *