Silverlight interview questions and answers part 2

Silverlight architecture - Silver light is a plug-in used for different platforms and browsers. It is designed for offering media experiences...
Difference between WPF and Silverlight - In terms of features and functionality, Silver light is a sub set of Windows Presentation Foundation...
"Limitations of using external fonts in Silverlight - One of the major challenges is to use a downloader and some of the SetFontSource methods on a TextBlock to perform it..
"Event handling is performed in two event cases – Input events and Non-input events...
The following is the process for adding the reference library project: After defining business object classes in another project...
Silverlight.js file - Silverlight.js file is a Java Script helper file. It supports for adding a Silverlight application to a web page through Java Script. It has a number of methods defined to help with, most importantly the...
What is a .xap file? - A .xap file is an application package based on Silverlight which will be generated when the Silverlight project is built. This file helpful in creating heavily client based Silverlight applications...
An ASX file is an XML file in which media files are specified in the playlist. Using ASX files in silver is pretty simple. Assign the ‘ source’ property of a MediaElement object to the ASX file name...
Silverlight application life-cycle - The entry point of Silverlight applications is Silverlight Application class. It provides various services which is commonly needed by Silverlight application...
The Silverlight plug-in loads the core services of Silverlight followed by Silverlight Common Language Runtime. CLR creates domains for applications...
Using Storyboard.TargetProperty, the properties of an object can be assigned with values. The objects are referred by Storyboard.TargetName attribute. The following snippet illustrates the change of width and color of a rectangle object...
Why is XAP important? - Using XAP, Silverlight applications which are heavily client based can be created by managing code. The managed code...
How does XAP work? - The .xap file is used for transferring and containing the assemblies and resources of an application with managed code. This code must be written within the Silverlight browser plugin...
Use of ClientBin folder in Silverlight - The ClientBin folder is used for placing .xap file of a Silverlight application. This folder can be kept anywhere in the web application...
What is Clipping in Silverlight? - Clipping is a modification to a given image / object based on the geometry type – like a line, rectangle, ellipse or even a group geometry objects...
The’UserConrol’ is the parent xaml tag of a Silverlight page. All other tags are authored under UserControl tag. Developers are given a facility to implement new custom controls and create re-usable user controls...
The RootVisual property of Application_Startup event in App.xaml file needs to be set to change the default Silverlight application page. The following code snippet sets the property...
xaml files - There are two xaml files are created when a new project in Silverlight is created through Visual Studio...
Visual Basic or Visual C# can be used for authoring code for the backend of the Silverlight application...
Usually the UserConrol will be spread full screen. The contents width and height can also be set by using width and height attributes..
The following are the list of Layout Management Panels: 1. Canvas Panel: Simple layouts use canvas panel and when there is no requirement of resizing the panel. The controls will overlap each other at the time of resizing the panel...
Application resources utilize the style elements for supporting the forms. The App.xaml file could be used to contain an application resource XML construct. Each style’s target type is set to the control that needs the style...
Features and benefits of Silverlight - The following are the features of SilverLight: 1. Built in CLR engine is available for delivering a super high performance execution environment for the browser...
Silverlight media experiences and Rich Internet Applications can be enhanced by the existing ASP.NET AJAX applications. Web applications and ASP.NET AJAX technologies are integrated in Silverlight...
Silverlight is used by customers for broader reach of interactive media content and browser-based rich interactive, high performance applications...
Yes. Silverlight have System.Console class...
The properties ‘source’ and ‘elementID’ are to be initialized. The ‘source’ attribute can be a ‘.xaml’ file or an ‘.aspx’ file...
Path instructions in XAML - The Path instruction of XAML allows to draw and fill a path. Various points in the path represents are represented by the Data attribute. The attribute includes M which means to move to command...
Silverlight content is hosted on the tag. CSS of DIV can be changed as it is for other HTML documents. The changes can be for absolute positioning, z-indexing, top and left properties etc...
Silverlight brush objects supports for painting with solid colors, linear gradients, radical gradients and images. SolidColorBrush is used to paint a closed object such as rectangle...
The mouse events that supports silverlight are - LostMouseCapture - occurs when an UI element lost mouse capture...
The difference is the action of the button. Once mouse button is pressed MouseLeftButtonDown event is invoked...
The method removeEventListener() is used for deleting an event listener...
Drag and drop in Silverlight can be implemented by using Drag Drop Manager by using DragSource and DropTarget controls...
The properties of eventArgs are types of keys like shift, ctrl and mouse actions, mouse pointer coordinates, x coordinate value, y coordinate value...
The method findName() is used to refer an object inside the Silverlight control. The container reference is made in the Container.xaml and the corresponding....
The objects Ellipse and Rectangle are supported for transformations....
Animation is performed by using Storyboard.TargetName property. For example, to animate an object, the following are the steps...
Animation types supported by Silverlight - Silverlight supports 2 types of animations:...
The value of the target property is animated by a key-frame animation. A transition among its target values over its duration is created...
The animation is controlled by starting the execution of Begin() on the Storyboard. For example let us name the Storyboard as “animation”...
The elements mePlayer.width and mePlayer.height retrieves the positions of the media in silver light. The source of the media player ...
The object tag is used to identify and store the silverlight controls...
Information that the Silverlight plug-in exposes - 1. System.Browser name space and DOM...
How could you modify XAML content from JavaScript? - Place xaml in Java Script using createFromXaml function...
A collection independent files that contain XAML content, media assets, and other application information can be downloaded from within Silverlight...
The asp:Silverlight is used to embed XAML into ASP.Net pages.The following code snippet illustrates this...
Silverlight supports database connectivity. It is done through LINQ to SQL classes...
The following formats are supported for Video streaming...
IIS smooth streaming enables for delivering HD streams smoothly on any device. IIS smooth streaming is an extension of IIS7 Media Services 3.0....
Following is the process to create hyperlinks in Silverlight; - Select Canvas control in Toolbox in main XAML document and draw a canvas object on the artboard...
VC-1 is a video codec specification standardized by Society of Motion Picture and Television Engineers. It was implemented by Windows Media Video 9...
XAML stands for Extensible Application Markup Language. It is an XML based markup language. XAML is the language for visual presentation of the application development in MS-Expression Blend...
Dependency properties are exposed as CLR properties. Dependency properties’ purpose is to provide a way of computing...