When you create a new project in Silverlight through Visual Studio, how many xaml files are created and what are the uses of those files?

 Posted by Pardhu2020 on 2/18/2014 | Category: Silverlight Interview questions | Views: 2399 | Points: 40

When we create a Silverlight application from Visual Studio, two (2) xaml files are created into the Silverlight project.

They are:
1. App.xaml - App.xaml is a file used to declare shared resources like brushes, various style objects etc. and to handle the global application level event (this is almost similar to global.asax file in asp.net application). By default following events are created in the App.xaml.cs file.


2. MainPage.xaml or Page.xaml - This page is the default page of the Silverlight application and when the silverlight application runs this becomes the default page to appear (this page is like the default.aspx page of asp.net application)

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response