Microsoft Silverlight - SPLessons

Microsoft Silverlight XAML

Home > Lesson > Chapter 6
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

Microsoft Silverlight XAML

Microsoft Silverlight XAML

shape Description

XAML signifies "eXtended Application Markup Language". XAML is same as XML language. Siverlight module is utilized to distribute the XAML and the outcome will be shown in the program. On the off chance that we accumulate XAML activity, then first the XAML pages will be changed over into Binary Application Markup Language(BAML).

App.xaml File

shape Description

The loader of the Silver light is the App.xaml document. The accompanying components are pronounced in the App.xaml record. Visual Studio additionally makes an App.xaml.cs records which is utilized to All the above components are available to every one of the records in an operations.

Events in the App.xaml.cs File

shape Description

The following are the events in the App.Xaml.cs File.

Application_Startup Event

The Root of our application is the Application_Startup Event. In Application_Startup event, first make the article or case for the application and need to set it as RootVisual. Application_Startup Event additionally utilized to do the accompanying functions.
  • To make Global Objects
  • To compose the introduction code for an operation

Application_Exit Event

Application_Exit is utilized to do the accompanying functions.
  • To cleanup the objects
  • To do any operation before the Application Exit.

Application_UnhandledException Event

In the event if the exception is failed for some specific reason, then the Application_UnhandledException is utilized to think of some code for the accompanying reasons.
  • To store the mistake subtle elements
  • To display few messages to the clients

shape Conceptual figure

The following image shows you the events of the App.xaml.cs.

App Constructor

shape Description

Application Constructor is a Class which holds all the aforementioned events. The App class likewise incorporates the InitializeComponent() strategy which is utilized to stack XAML.

XAP File

shape Description

XAP record is like ZIP document. XAP is utilized to pack the code and used to diminish the downloaded size. XAP record incorporates the accompanying components.
  • Operation Manifest File
  • Compiled result set
  • Compacted result set of the Silverlight operation
  • Different Resources

Summary

shape Points

  • Microsoft Silverlight XAML - Stands for extended application markup language.
  • App.Xaml File - Contain the loads of silver light.
  • Events in the App.Xaml.cs file - Contain startup events,exit events and unhandled exception events.
  • App Constructor - Is a class that folds the events.
  • XAP File - Is a zip document used for diminish purpose.