Answer:
Two xaml files are created in silver light project. They are (i) App.xaml (ii) MainPage.xaml
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 events (this is almost similar to global.asax file in asp.net application). By default following events are created in the App.xaml.cs
Application_Startup
Application_Exit
Application_UnhandledException
ReportErrorToDOM
2.MainPage.xaml or Page.xaml – This page is the default page of the silver light application and when the silver light 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