Chapter 19

19.1

Fill in the blanks in each of the following statements:

a) A(n) Canvas is the parent element of a XAML file.

b) A(n) MediaElement is used to embed video and audio in a Silverlight application.

c) Visual Basic's XMLReader class can be used to parse RSS in Silverlight.

d) The MouseLeftButtonDown event is triggered by clicking an element with the left mouse button.

e) Animations are described using the Storyboard XAML element.

f) Silverlight Streaming allows you to distribute Silverlight applications containing audio and video for free.

g) Expression Blend allows you to visuall edit XAML.

h) You can use an object's ZIndex attribute to specify the z-order of elements.

i) A MediaElement's AutoPlay attribute determines whether the media will start playing immediately after it has loaded.

j) The Silverlight plug-in's findName method retrives an element of a specific name.

k) In Silverlight 1.1, the x:Class attribute specifies the Class that contains the XAML elements' event handlers.

19.2

State whether each of the following is true or false. If false, explain why.

a) The Silverlight browser plug-in runs on IE and Firefox on Windows XP and Vista, and Safari and Firefox on Mac OSX.

True.

b) Silverlight applications can be embedded in an existing HTML file.

True.

c) Silverlight requires server-side software.

False. Silverlight applications can be served by any server, or run locally.

d) You can program Silverlight event handlers in XAML.

False. XAML is used to describe the user interface.

e) Silverlight 1.1 supports programming in C#, Visual Basic, and other .NET languages.

True.

f) Silverlight applications can run in full-screen mode.

True.

g) The BrowserHttpWebRequest object allows for cross-domain requests.

False. The BrowserHTTPWebRequest object allows for requests only to the Silverlight application's host domain.

h) A Silverlight application must have at least one Canvas element.

True.

i) There is no way to implement a timer in Silverlight 1.0.

False. You can use a Storyboard as a timer.

j) You can hide an element only by setting its Opacity to 0.

False. You can set the element's Visibility to Collapsed.

19.3 Movie Viewer

19.4 Cover Viewer

News:

Working on Chapter 21-22.