PrepAway - Latest Free Exam Questions & Answers

Which two actions should you perform?

You are developing a Silverlight 4 application that is hosted in a Web application. The Web application has a file named LoadScreen.xaml that contains the following XAML fragment.
<Grid xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas. microsoft.com/winfx/2006/xaml” Background=”WhiteSmoke” Width=”437″ Height=”43″>
<TextBlock Name=”PrgLoader” FontSize=”24″ FontWeight=”ExtraBold” TextAlignment=”Center” />
</Grid>
The Web application also has a Web page named default.aspx that has the following HTML markup. (Line numbers are included for reference only.)

01 <html xmlns=”http://www.w3.org/1999/xhtml” >
02 <head>
03 <script type=”text/javascript”>
04
05 </script>
06 </head>
07 <body>
08 <object data=”data:application/xsilverlight2,” type=”application/xsilverlight2″ width=”100%” height=”100%”>
09 <param name=”source” value=”ClientBin/MyApp.xap”/>
10
11 </object>
12 </body>
13 </html>

You need to ensure that LoadScreen.xaml is displayed instead of the default Silverlight application loading screen. You also need to ensure that the PrgLoader TextBlock displays the
progress percentage of loading the Silverlight application. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

PrepAway - Latest Free Exam Questions & Answers

A.
Insert the following code fragment at line 04.
function UpdateProgress(sender, args) { document.getElementById(“PrgLoader”).nodeValue = Math.round((args.progress * 1000)) / 10 + “%”; }

B.
Insert the following code fragment at line 04.
function UpdateProgress(sender, args) { sender.findName(“PrgLoader”).Text = Math.round((args.progress * 1000)) / 10 + “%”; }

C.
Insert the following HTML markup at line 10.
<param name=”splashScreenSource” value=”LoadScreen.xaml” />
<param name=”onSourceDownloadProgressChanged” value=”UpdateProgress” />

D.
Insert the following HTML markup at line 10.
<param name=”splashScreenSource” value=”LoadScreen.xaml” />
<param name=”onSourceDownloadComplete” value=”UpdateProgress” />

E.
Insert the following HTML markup at line 10.
<param name=”splashScreenSource” value=”LoadScreen.xaml” />
<param name=”onLoad” value=”UpdateProgress” />


Leave a Reply