SilverLight Free Tutorial
- tekslate
- Jan 2, 2015
- 3 min read
HTML - DHTML - server side technology (ASP, JSP, PHP)
We know that to develop the complete websites, we use the various server side technologies like SAP, SAP.net JSP, PHP etc.
Almost all server side technologies will provide very good and efficient server side programming facilities to implement security or to provide state management etc.
These server side technologies also provide designing of use interface element like buttons, text boxes, list box etc.
But the designing facilities provided by these server side technologies are not efficient and do not provide very good rich user interface elements.
To overcome this drawback, always it was compulsory to depend on third party tools known as Plug ins. Like Photoshop, adobe flex, flash etc.
But when we depend on third party components efficiency and support may not be upto the mask.
To overcome such kind of problems Microsoft developed SilverLight
SilverLight is a Plug-in Software used to provide very good designing facilities as well as support for media elements.
Using silver light we can build very good rich user interface elements
Backbone of SilverLight is completely XAML [Extensible Application Markup language]
SilverLight is a powerful development plat form for crating rich media applications, business applications for the
Based on Microsoft.net framework the free silver light plug in will work across the multiple browsers, devices, operating system
sensitive must be closed. Using XAML we can create controls, events and we can give all graphical features because of XAML we can implement rich internet applications while installing .net framework 3.5 (2008) automatically not getting silver light framework, manually we have to install silver light framework using silver light chainer software
While installing .net framework 4.0 (2010) auto-graphically getting silver light framework.
Creating SilverLight, button control with events
Open new SilverLight application by clicking on the file menu new project Getting new project window with two sub windows
Project types window
Templates window
From the project types window we have to select visual c# From the templates window select silverlight Application click on - - >P
While opening the SilverLight application asking for execution pages or Hosting pages, the Microsoft given two execution pages to the silver light.
§ HTML page
§ net webpage
To take HTML page as hosting we have to deselect the hosting website checkbox - - > click on - - > P
In the silver light application always getting main page .XAML file, this file having 3 modes
§ Design Mode
§ XAML Mode
§ Code behind window
In properties folder we find two files
1. App Manifest.xml
2. Assembly info.cs
App Manifest.xml
This is the application manifest file that is required to generate the application package we should not edit this file strictly prohibited
Assembly Info.cs
This file contains the name and version metadata that is embedded into the generated assembly
.xap file:-
This is silver light application package file. This file will be generated when we built the project. This is a compressed zip file which contains all the necessary files that are required to start the application
The references in silver light applications are
§ Ms corlib’dll
§ dll
§ corc.dll
§ Net.dll
§ windows.dll
§ windows.Browser.dll
§ xml.dll
Main Page files
These are the main files of silver light application that is
Page.xaml
Page.xaml.cs
Page.xaml wil contain designing of the page
Page.xaml. cs will contain code behind code in c# this page class is inherited from user control class
we find two app files with the name
App. Xaml
App.xaml.cs
This App class files are required by the silver light application to display application user interface
This App class is instantiated by the silver light plug in after the .xap file is created
Silver light application project website files
§ js
This is a java script helper files that contains functions to initialize silver light plug in instances and functions for determining the clients installed version of the plug in.
§ .Html file
html file is used to configure and instantiate the silver light plug in which downloads and runs the silver light application.
In general name of this file is concatenation of the name of the silver light application and test page.html that is if silver light application name is “A” then html file name is A Test page. Html
If silver light application name is “B” then silver light application name is best page .html
§ .Aspx file
This file is the default startup webpage the name of this file is concatenation of sidelight application name and Testpage.sapx
Eg attest page. Xspx
§ config files
It is used to perform configuration settings of the webpage
To Learn More Click On Below Link:
Comments