C
onsider 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>
a. Only green.
b. Only red.
c. Mixture of green and red colors.
d. The StackPanel control will be divided into two parts resulting in green and red colors.
rajsekhar