PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which XAML fragment should you insert at lines 03 and 04?

You are developing a Silverlight 4 application.
You have a page that contains the following XAML fragment.
<StackPanel Orientation=”Vertical”>
<Grid x:Name=”Master”>
<ListBox x:Name=”lstOrders” />
</Grid>
<Grid x:Name=”Details”>
<ListBox x:Name=”lstOrdersDetails” />
<myControls:DetailsViewLoading />
</Grid>
</StackPanel>
The application defines the DetailsViewLoading user control by using the following XAML fragm ent. (Line numbers are included for reference only.)

01 <UserControl x:Class=”DetailsViewLoading” xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”>
02 <Grid>
03
04
05 <StackPanel>
06 <TextBlock Text=”Loading Details…”/>
07 <Button Content=”Close” Click=”CloseBtn_Click”/>
08 </StackPanel>
09 </Border>
10 </Grid>
11 </UserControl>

You need to display the DetailsViewLoading user control on top of the other content in the Details Grid control. You also need to ensure that the rest of the content in the Details Grid control is unavailable until the DetailsViewLoading user control is closed. Which XAML fragment should you insert at lines 03 and 04?

Which XAML fragment should you use?

You are developing a Silverlight 4 application. The application contains a control that allows users to select user profile options. You need to define a set of controls that allows users to select between the following background colors:
White
Gray

You also need to define a set of controls that allows users to select between the following default window sizes:
900 x 700
700 x 500
Which XAML fragment should you use?