• +91 9723535972
  • info@interviewmaterial.com

Silverlight Interview Questions and Answers

Related Subjects

Silverlight Interview Questions and Answers

Question - 21 : - What is the use of the ClientBin folder?

Answer - 21 : - The ClientBin folder is used to place the .xap file of a Silverlight application. You can keep it anywhere in your web application, but this is the default location used by Silverlight.

Question - 22 : - How to change the default page of a Silverlight application?

Answer - 22 : - To change the default page of a Silverlight application, you need to set the RootVisual property inside the Application_Startup event of the App.xaml file. Collapse private void Application_Startup(object sender, StartupEventArgs e) { this.RootVisual = new MainPage(); }

Question - 23 : - What is the AppManifest.xml file?

Answer - 23 : - First, let’s look at an example AppManifest.xaml file: Collapse The first element in AppManifest.xaml is a Deployment node. This node defines the application, and contains the child AssemblyPart nodes. As you can see the AssemblyPart nodes define what assemblies (DLLs) are contained within the .xap file, and give each of them a name. Now, if you look back up to the top, you'll see the Deployment node has the EntryPointAssembly and EntryPointType attributes. The EntryPointAssembly attribute defines which assembly defined below (as a child AssemblyPart node) is the main assembly (DLL) for the application. And, the EntryPointType attribute specifies the class contained within the assembly (DLL), defined in the EntryPointAssembly attribute, is the main class that will be instantiated to start the application.

Question - 24 : - What files are contained within the .xap file?

Answer - 24 : - The .xap file contains an application manifest (AppManifest.xaml) file and all the necessary DLLs that are required by the application. The first DLL contained is the compiled version of your application and has the same name of your application. In my test, I created an application named "SilverlightApplication1", so the DLL is named "SilverlightApplication1.dll". The rest of the DLLs are the dependencies the application requires.

Question - 25 : - What is app.xaml?

Answer - 25 : - App.xaml is a file used by Silverlight applications to declare shared resources like brushes, various style objects, templates etc. Also, the code-behind file of app.xaml.cs is used to handle global application level events like Application_Startup, Application_Exit, and Application_UnhandledException (similar to the Global.asax file for ASP.NET applications). When Visual Studio creates the app.xaml file automatically, it creates a few event handlers with some default code. You can change the code appropriately. Collapse private void Application_Startup(object sender, StartupEventArgs e) { } private void Application_Exit(object sender, EventArgs e) { } private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) { } For ASP.NET developers, the above code will look familiar. This is similar to the application level event handlers in Global.asax.

Question - 26 : - What is the Silverlight official name?

Answer - 26 : - Silverlight was formerly code-named "WPF/E".

Question - 27 : - What are the main features and benefits of Silverlight?

Answer - 27 : - • Compelling cross-platform user experiences. • Flexible programming model with collaboration tools. • High-quality media, low-cost delivery. • Connected to data, servers, and services.

Question - 28 : - What is MainPage.xaml?

Answer - 28 : - When you create a Silverlight project using Visual Studio, it creates a default XAML file called "MainPage.xaml". This is just a dummy start page created by Visual Studio, and it does not contain any visible UI elements. The default contents of the MainPage.xaml file looks like this: Collapse

Question - 29 : - Which language is Silverlight developed in?

Answer - 29 : - It was developed using a combination of C# and C++.

Question - 30 : - Can I consume WCF and ASP.NET Web Services in Silverlight?

Answer - 30 : - Yes, you can.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners