
MCTS: Microsoft Silverlight 4 Development (70-506) Certification Guide
By :

1. You are developing a web application using Silverlight 4. In your application, you have a Grid
element. On the top of your page, you have the following code:
<UserControl.Resources> <SolidColorBrush x:Key='GridBackground' Color='Black'/> </UserControl.Resources>
The Grid
element looks as follows:
<Grid x:Name='LayoutRoot' Background='White'></Grid>
What will be the background color of the Grid?
a. Black
b. White
c. Impossible to know
d. Azure
2. You are developing a Silverlight 4 application. Your application contains a custom control with various visual states. You need to change the visual state of the control to a visual state called 'Hover'. Which code should you use?
a.<VisualState ChangeTo='Hover'></VisualState>
b.<Storyboard To='Hover'></Storyboard>
c. VisualStateManager.GoToState(this,'Hover',true)
;
d.<VisualState>
<Storyboard ChangeTo='Hover'></Storyboard>
</VisualState>
3. You are...
Change the font size
Change margin width
Change background colour