Saturday, March 27, 2010

Testing and Debugging in Silverlight

TESTING:
->The testing plan will document the levels of testing that should be performed on an application and who will be performing the testing.
->unit testing, regression testing, load testing, and integration testing.

DEBUGGING:
Process of Error finding in silverlight Application,
->Syntax Error.
->Logical Error.

Creating the media player in Silverlight



->Switch to the output panel, where you will pick a Silverlight 2 player and then click on the white dot (shown surrounded in red here)

Steps:
~~~~~
->Choosing Edit Copy in Expression Blend will open a dialog box asking you for a name for the template.
->Give it a name and click OK and Blend will open with a security warning.
->You can click Yes and Blend will fully open and inform you that you must build the project to work with it.
->Click Project->Build Solution

Find the player location:
~~~~~~~~~~~~~
->The player itself is in the default output location unless you took steps to put it elsewhere. On my machine that is C:\Users\Jesse\Documents\Expression\Expression Encoder\Templates.

Some Silverlight Toolkits

Difference between WPF and Silverlight




->Silverlight uses a particular implementation of a XAML parser, with that parser being part of the Silverlight core install. In some cases, the parsing behavior differs from the parsing behavior in Windows Presentation Foundation (WPF- is a graphical subsystem for rendering user interfaces in Windows-based applications. WPF, previously known as "Avalon", was initially released as part of .NET Framework 3.0. Designed to remove dependencies on the aging GDI subsystem, WPF is built on DirectX, which provides hardware acceleration and enables modern UI features like transparency, gradients and transforms. WPF provides a consistent programming model for building applications and provides a clear separation between the user interface and the business logic), which also has a particular implementation.

WPF:
~~~
Windows only
Requires 50 / 200 MB .NET 3.x runtime
Steeper learning curve

SILVERLIGHT:
~~~~~~~~~
Cross OS, cross browser
Small download (approx. 4 to 5 MB)
Reduced feature set
Sandboxed – Secure but limiting

What is XAML in silverlight?

Extensible Application Markup Language (XAML, pronounced zammel) is a declarative XML-based language created by Microsoft which is used to initialize structured values and objects.

Features are available in the Silverlight 1.1 Alpha

The Silverlight 1.1 Alpha includes all the features available in Silverlight 1.0 Beta plus a number of new features focused primarily on improving the developer productivity and power, including:

  • ► Managed code support
  • ► Support for dynamic languages including managed Microsoft JScript and Python
  • ► Rich UI control model based on WPF
  • ► Improved networking stack with support for REST, RSS, JSON, and POX
  • ► Enhanced, two-way HTML/AJAX bridge
  • ► Comprehensive and consistent base class library
  • ► Support for LINQ (LINQ to Objects, LINQ to XML)

Platforms and browsers that Silverlight supports

Silverlight will support all major browsers on both Mac OS X and on Windows. Particular care is being taken to account for differences in platform and browser capabilities to ensure a consistent experience including experiences on FireFox, Safari, and Internet Explorer.