06 April, 2015

Developing a Silverlight application - Few tips & tricks

Silverlight is the new cross-browser as well as cross-platform solution from Microsoft that helps one in building rich Internet applications as well as immersive media occurrences in the browser. However it is yet to provide the stout support with respect to localization as compared to the other components of Microsoft.NET framework.

Tips and tricks
  • It is better not to use the width and height properties of the Media Element as well as that of the Path objects.
  • The event handlers that are programmatically registered must be detached after use.
  • The transparent control backgrounds must be used sparingly.
  • It is better to encode the videos making use of the height and weight properties with which the Silverlight programmers intend to display rather than encoding them at one scale and displaying them at another.
  • This is recommended as the rendering engine in case of the chosen platform may avoid resizing of each frame on the fly and its is better to see those in a written form so as to know that the application is not doing any innovative thing for resizing video without going through any performance penalty.
  • Silverlight programmers should particularly be alert and thoroughly test the applications at the time of creating those that have transparent and embedded plug in backgrounds, or applications which use a hefty amount of C#, Visual Basic or other procedural codes.
Offer a Compelling Installation Experience
silverlight solution
It has been observed that many times the installation experience in case of application is based on not at all friendly for the users who do not have the application installed.

The function that is normally used for instantiating a Silverlight control displays a ‘Get Microsoft Silverlight’ button when the application is not present. The user gets transported to the Silver light website after clicking the button for downloading as well as installing the application.

In case of Silverlight web development, it is recommended to go for improving the experience by setting the parameter named Silverlight.createObjectEx's inplaceInstallPrompt to true, that enables the user to download the application after installing the application without having to leave the Web page.

Test on Multiple Platforms and Browsers
Developing Silverlight applications for several operating systems like, Windows and Macintosh as well as for browsers like, Mozilla Firefox, Internet Explorer and Apple Safari, makes it imperative to routinely test the applications making use of the platform as along with the browser combinations that one is targeting.

The performance of the application can be affected by the differences that exist in the platform or those in the browser behavior as well as the code that the platform uses for handling the behavior. Thus it is recommended to go for thoroughly testing the applications.

Set EnableFrameRateCounter to true During Development
The performance of the plug-in with respect to its rendering capability varies along with several hosting parameters which are specified and add to the content’s complexity. It is thus recommended to set the property of EnableFrameRateCounter to true during the development phase. This setting helps in displaying the fps (frames-per-second) of the content with respect to the rendered application in the status bar of the browser, so that one is able to fine-tune the application.

Use Transparent Background for a Silverlight Plug-in Sparingly
It is better to make use of a transparent background with respect to an embedded plug-in that consists of a non-rectangular shape like the picture of a car. It must also be used since in certain cases where a Silverlight programmer does not wish to make the rectangle that surrounds the car visible. One can make the car’s picture visible by setting the plug-in’s background of the domain to transparent mode. However, it is better to avoid this function as use of a transparent background in case of any Silverlight plug-in has a considerable effect on the performance of the Silverlight Solution.

You can hire developers from top silverlight solution companies in India who can help you build Ruby applications within allocated budgets and time schedules.

We provide silverlight web development services. If you would like to hire silverlight programmers from our team, please get in touch with us.

No comments: