UpTest > Graphics Designing > Knowledge of Microsoft Silverlight Skills Test

Test: Knowledge of Microsoft Silverlight Skills Test

Question 1: Prev Next
Consider the XAML code given below. Which color will apply to the background if you add this code into your application?

<StackPanel.Resources>
  <Style x:Key="ImmediateStyle" TargetType="Button">
   <Setter Property="Background" Value="Green"/>
  </Style>
</StackPanel.Resources>
<Button Style="{StaticResource ImmediateStyle}" Background="Red">
  <TextBlock>Hello</TextBlock>
</Button>
The StackPanel control will be divided into two parts resulting in green and red colors.
Mixture of green and red colors.
Only red.
Only green.
Please login to submit your answer.