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

1. You are tasked to develop a Silverlight 4 based application. The application contains the following code snippet:
<Grid x:Name="LayoutRoot" Background="White"> <Grid.RowDefinitions> <RowDefinition Height="200"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> </Grid>
You need to add a horizontally oriented StackPanel
control into the second row. Which XAML fragment should you use?
a.<StackPanel Orientation="Horizontal" Row="1"></StackPanel>
b.<StackPanel Orientation="Horizontal" Grid.Row="1"></StackPanel>
c.<StackPanel Orientation="Horizontal" Grid.Row="2"></StackPanel>
d.<StackPanel Orientation="Vertical" Grid.Row="1"></StackPanel>
2. You are developing a Silverlight-based media player application. You need to add a MediaElement
control that is able to handle an event when a media starts playing and when it fails. Which XAML fragment should you use?
a.<MediaElement x:Name="MyMediaElement...
Change the font size
Change margin width
Change background colour