XAML code color will apply to the background if you add this code into your application

Posted by Rajsekhar.Alluri under Silverlight on 12/10/2012 | Points: 10 | Views : 1166 | Status : [Member] | Replies : 0
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>



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


Responses

(No response found.)

Login to post response