xaml files - Silverlight

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

There are two xaml files are created when a new project in Silverlight is created through Visual Studio.

1. App.xaml – This file is used for declaring shared resources like style objects, brushes etc and for handling global application level event. The following are the default events created in App.xaml.cs file.

- Application_Startup
- Application_Exit
- Application_UnhandledException
- ReportErrorToDOM

2. MainPage.xaml or Page.xaml – This file is the default page of the Silverlight application at the time of silverlight application’s execution. This is similar to default.aspx page of ast.net application.
Backend of the Silverlight application
Visual Basic or Visual C# can be used for authoring code for the backend of the Silverlight application...
How to set Silverlight contents width as 100%.
Usually the UserConrol will be spread full screen. The contents width and height can also be set by using width and height attributes..
Layout Management Panels in Silverlight
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...
Post your comment