Silverlight i. About the Tutorial. Silverlight is a platform for building rich internet applications. in this tutorial, please notify us at [email protected] Silverlight Tutorial in PDF - Learn Silverlight in simple and easy steps starting from Overview, Environment Setup, Getting Started, XAML Overview, Project Types. Silverlight Tutorial for Beginners - Learn Silverlight in simple and easy steps starting from basic to advanced concepts with examples including PDF Version.
|Language:||English, Spanish, Portuguese|
|Distribution:||Free* [*Registration Required]|
Windows Embedded Compact now includes Silverlight for Windows Embedded, with which designers and developers can create exciting and visually. This book is about Silverlight solutions. In this chapter we go behind the scenes and see what is meant by Silverlight plug-ins, what the. This book has the ambitious goal of being the best tutorial and reference for documents (such as PDF files) but not applications (such as Silverlight.
Other assemblies will be loaded as required. NET Reflector. The figure Note that the DLL file has kept the XAML files in the resources and the code behind files becomes the standard methods of the Silver- light application.
What makes MainPage. Try changing the font size to 34, and notice how it scales without loss of quality. NET code behind file MainPage. The visual part is an advanced HTML, and the code behind file brings the robustness of.
NET type safe, managed environment. These two parts make XAML simple and a powerful language. It is straight forward, you have fields, attributes and properties and you get what you declare.
Main- Page. The object and shapes you declare in XAML are vector images and can scale without loss of qual- ity. It also supports advanced Anti-alias features for sharp image borders and 2-D animations using story board tags. Animations in XAML are also declared-no programming is involved. XAML is based on XML, so apart from the tags available in the default xml namespace defined for objects and shapes, you can create your own namespace and use your own tags.
Silverlight allow two kinds of XAML templates in a silverlight project, an Application template and a User Control template with corresponding root elements. A Silverlight project will have these two default files: App.
The HelloWorld program had one application file App. See Figure App class deals with the application as a whole and Page class as single interface inside the applica- tion. At any point of time the root elements of Silverlight is set to a Page class. By default this is set in the Application Startup event.
The attribute declares the value of the namespace and the class. By default every MainPage. You can use this attribute to add more namespaces. The compiler use this values to generate the intermediate partial class Page. When you define an XML Namespace in the root of an XML files, you de- clare that the objects defined in the file will follow predefined language elements. XAML Namespace defines many commonly-used features that are nec- essary for basic functionalities. It also defines a set of elements, attributes and properties which are accessible through the XAML processor.
All the elements which are specified without a prefix map to the default namespace. These elements are defined in the PresentationFramework.
By Default the Grid has one row and one column. In HTML, this is similar to a label with text inside a borderless table with one row and one column. The difference is the quality of the text block is better in XAML because it is in vector. The same text in HTML will not scale with that quality. The code behind file contains functions and methods. XAML allows declaring event names in the attributes, but the logic for the events is declared in this code behind file.
It is a binary representation of the object hierarchy and proper- ties defined in the source XAML file. It has been pre-tokenized broken into discrete elements so at runtime loading of BAML from the resource file is much faster than loading a xaml file. The Roles of Page. Grid LayoutRoot; internal System.
LoadComponent this, new System. Relative ; The InitializeComponent method also links the elements created with attribute x:Name to their respective names so that you can directly use them. The Field LayoutRoot and Tex- tHello will be set to the value of the grid and textbox that was created for it at that time.
Grid this. FindName "LayoutRoot" ; this. TextBlock this. Getting Started Tutorials Silverlight 2 End to End Tutorial: Digg Sample : I recommend reading this post first if you are looking to get started with Silverlight 2 development for the first time.
It not only describes the high-level of what Silverlight 2 provides, but also links to a series of 8 blog posts that walkthrough building a Digg client sample application. These tutorial posts provide a good introduction to Silverlight 2 and WPF development concepts. I think it does a good job of showing off some of the common features of Expression Blend, and uses it to build an IM chat client sample. Jesse Liberty Silverlight Tutorials : Jesse Liberty is writing an in-depth series of articles that cover Silverlight programming concepts in more depth.
Bookmark this page and check back frequently to read them as they get published he also has PDF versions of each article that you can download and read offline. Installation Tips for Silverlight Tools Beta1 for VS : Bradley Bartz has a good post that links to the tools to install for Silverlight, as well as what todo if there are problems getting it installed. You can run and download her completed FlickR application here. Feel free to re-use the slides however you want for your own presentations.
Documentation Links Silverlight 2 QuickStart Tutorials : These sample tutorials are very useful to help with coming up to speed on Silverlight. Silverlight 2 Developer Poster: Download and print-out your own version of the Silverlight 2 developer poster. Silverlight Control Source and Unit Tests : Shawn Burke links to the source code for the built-in Silverlight controls, as well as the unit tests for them.
You can download an offline version here. Tutorials and Samples "How Do I? Using Deep Zoom with Silverlight 2 : Jacek Ciereszko has a nice blog post that describes how to use the "Deep Zoom" feature of Silverlight 2 to implement image zoom functionality like with the Hard Rock sample.