Tuesday, December 27, 2011

SilverLight


SilverLight?
What is XAML ?
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.

What is the 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), which also has a particular implementation.

Can you name built-in layout panels you have been using with SilverLight?
You are looking for Canvas, StackPanel and Grid.

How can I switch to Expression Blend from Visual Studio?
Expression blend provide great extensibility for XAML files.To switch to Expression Blend, right-click on the XAML file and select Open in Expression Blend

How can you set image Source dynamically from C# application to” test.png” file?
Surprisingly it is not as straight forward as it might sound, but anyone who seriously worked with SilverLight should be easily answer it. One of the ways is: img.Source = new BitmapImage(new Uri("test.png", UriKind.Relative));

How can I create image pieces/sub image?
Ans
: In straight way you create a subimage from an existing image. Here you just clip an image, Clipping is just different from Cropping. In clipping, first you have to dictate which part of the images to draw and later you have to remove all but the desired part of the image. SilverLight does not support cropping.

How does SilverLight 2 differ from Adobe Flash?
As I am from .Net background so in my views you can get C# / Vb.net compiled code but in Flash there is only action script.
You can find difference in depth at : http://SilverLight.net/forums/t/3015.aspx

How can I switch to Expression Blend from Visual Studio?
Expression blend provide great extensibility for XAML files.To switch to Expression Blend, right-click on the XAML file and select Open in Expression Blend.

How to start a SilverLight application with Visual Studio?
In the following step(s) I am giving the ideas all about:
1.Create a project:Here you just start your visual studio, Select your programming language [C#/VB], Choose Silverligh Template give the name and save it.
2. Adding SilverLight COntrols:One thing is happened here, controls cannot dragged onto the designer, you can draw/drag the controls on XAML page.
(a) Naming to control:In this step just give the name to your silverligt control like for Button you can give name as : btnmySilverligtButton
(b)Adding event handlers to SilverLight controls:Here you can give the event handlers like for click etc.
(c)Testing SilverLight applications in Visual Studio:Now just press F5 and test your application

What are the different ways to display text with SilverLight?
SilverLight supports displaying static preformatted text that is comprised out of glyph elements and also dynamic text that uses TextBlock. With glyphs, one needs to position the characters individually while TextBlock supports simple layout.

What kinds of fonts are supported with SilverLight?
Beyond standard and western fonts, SilverLight also supports East Asian characters, double-byte characters, and can work with any East Asian font or Middle Eastern font by using the glyphs element and a supporting TrueType font file that supports the requested glyph
Will SilverLight work with my new or existing Windows Media services platform for streaming?
Yes, in the final release. The CTP supports progressive download and playback from any server. In its final release, SilverLight will take advantage of Windows Server features for streaming

Will SilverLight support the full range of APIs offered by the Windows Media Player ActiveX control today?
We are actively speaking to customers and partners about their needs

Will SilverLight support digital rights management?
For content providers, SilverLight will support digital rights management (DRM) built on the recently announced Microsoft PlayReady content access technology on Windows-based computers and Macintosh computers

Will SilverLight-based applications run in Media Center? What about Media Center Extender?
SilverLight-based applications can run in Media Center but may have rendering issues on Media Center Extenders. Applications that are implemented using the Media Center SDK will provide a better experience.

Are there any new tools for creating and publishing media content with SilverLight?
Yes. The recently announced Expression Media Encoder, a feature of Expression Media, will support live and on-demand encoding and template-based publishing of SilverLight-based experiences and applications. In addition, SilverLight works with the broad range of Windows Media encoding tools and utilities available today. Additional details will be made available shortly.

What video encoding formats are supported?
The designer or developer is free to use any encoding format for their video supported by the Windows Media Video codec. This includes Variable Bit Rate (VBR) encoding for DVD-quality video and the use of the VC-1 codec for high-definition content. However, for HD content, be aware that the maximum output rate from the service is 700 kilobit/s, which means the client will not receive real-time delivery of HD video

What scalability does this system deliver? What if I have a large number of visitors to my Web site at the same time?
This service uses the Microsoft content delivery network specifically optimized for long-form video content. It has a provisioned global aggregate data rate in excess of 1 terabit/second.

Does this solution compete with content delivery networks (CDNs)?
No, this service uses the Microsoft CDN for the low latency delivery of media, and it does not compete with CDNs because it is specifically optimized for use with SilverLight RIAs

How is my content secured from unauthorized access?
You will have to be signed into the SilverLight Streaming service to manage your account and your SilverLight applications. Your SilverLight Streaming ID and secret key, associated to your Windows Live ID, will authenticate you as the unique and legitimate owner of the applications and content you upload to the service. You will also need this information to manage your SilverLight applications using the API. The SilverLight Streaming ID is public. However, the secret key should be kept confidential.

Can Microsoft® SilverLight Streaming service be used for non-video files such as music files?
Yes. All valid content encoded for SilverLight applications and presented with SilverLight can be used. This includes music files such as WMA and MP3. Business logic written in JavaScript can also be stored and streamed to the client, and in the future, any SilverLight Dynamic Language Runtime assemblies can also be used.
What are the main features and benefits of SilverLight?

-Compelling cross-platform user experiences.
-Flexible Programming Model with Collaboration Tools.
-High-quality media, low-cost delivery
-Connected to data, servers, and services

What audio or video formats are supported in SilverLight?
SilverLight supports Windows Media Audio and Video (WMA, WMV7–9) and VC-1, as well as MP3 audio. Additional formats may be available by the final release based on customer feedback.

Will SilverLight support all the codecs Windows Media Player supports?
Since SilverLight is a lightweight cross-platform technology, it only carries the most common codecs that are needed for Web playback. However, we are gathering information from customers about the needed codecs and can update SilverLight when necessary.

Will SilverLight support digital rights management?
For content providers, SilverLight will support digital rights management (DRM) built on the recently announced Microsoft PlayReady content access technology on Windows-based computers and Macintosh computers

Explain the relationship between SilverLight and Windows Media technologies?
SilverLight is built on top of Windows Media enabling developers and designers to collaborate in building media experiences and RIAs. SilverLight is released by the Server and Tools Division at Microsoft as a part of the .NET Framework

What is the relationship between SilverLight and Windows Media Player?
The SilverLight browser plug-in is a separate component, independent of Windows Media Player. SilverLight is designed for delivery of cross-platform, cross-browser media experiences and rich interactive applications (RIAs) inside a Web browser combining audio, video, animation, overlays, and more. Windows Media Player delivers a breadth of local playback and user focused experiences, while also offering support for application and Web page embedding

Will SilverLight-based applications and content run on any Web Server? What are the benefits to running it on servers running Windows?
Ans
: SilverLight works with any web server just like HTML. Video and audio content can also be downloaded and played back from any Web server platform.The main advantages of Windows server-based distribution of SilverLight applications include Windows Media Services with Fast Stream and Fast reconnect technologies, lower distribution costs and tap into the full Windows server ecosystem of platform components and partner solutions.

What features are missing from SilverLight presentation markup that will be supported in Windows Presentation Foundation?
High-end Windows specific features of WPF, such as real 3D, hardware-based video acceleration, and full document support, will not be supported in SilverLight. This is by design in order to serve SilverLight’s cross-browser, cross-platform reach scenario that demands a light weight plug-in.

Is SilverLight supported on various locales?
SilverLight installs on localized versions of Macintosh computers and Windows. At this time, the installation is available in an international English format. Final releases will render international text (using double-byte characters) and support the full 64K Unicode character set. SilverLight uses simple input mechanism that
treats all the languages in the same way.

What are the different ways to display text with SilverLight?
SilverLight supports displaying static preformatted text that is comprised out of glyph elements and also dynamic text that uses TextBlock. With glyphs, one needs to position the characters individually while TextBlock supports simple layout.
What kinds of fonts are supported with SilverLight?
Beyond standard and western fonts, SilverLight also supports East Asian characters, double-byte characters, and can work with any East Asian font or Middle Eastern font by using the glyphs element and a supporting TrueType font file that supports the requested glyph.

How much is the pay-for-use service if I chose not to use Microsoft-sponsored advertising?
We’re not prepared to discuss the final pricing of the nonadvertising-based product at this time except to say that it will be extremely cost competitive. The advertising-based product will continue to be free in perpetuity.

What is the difference between SilverLightTM Streaming and other video sharing services?
SilverLightTM Streaming is focused on developers who want to build their own media-rich applications or Web sites. Unlike other video sharing services, there are no third-party branding requirements for the use of SilverLightTM Streaming, and the developer is in full control over their rich media experience within the context of their Web site.

Why is this service branded with Windows LiveTM?
This service is part of the Windows LiveTM Platform.

It’s free—what’s the catch?
There is no catch. This is a new offering designed to accelerate the development of the next generation of media rich applications.

Can I tap into other Windows LiveTM services?
Yes, customers are able to use Windows Live IDTM and other Windows Live APIs today and in the future. SilverLight provides a great platform to consume these services.

Do you support digital rights management to protect my videos?
In the future, SilverLightTM Streaming will provide support for DRM-encoded video as an optional paid turnkey offering.

How does the service stream content?
Content is streamed progressively using a progressive download mechanism today. Active streaming support using Windows Media Services is being considered based on customer feedback in the future.

Can I stream live content/events?
No, the service only supports on-demand content today. Customers requiring additional capabilities are encouraged to contact a Windows Media Streaming Hosting Provider

Do I need to have the latest version of Windows Media Player installed?
No. SilverLight is completely independent and when installed is less than 2 MB in size.

Will SilverLight support all the codecs Windows Media Player supports?
Since SilverLight is a lightweight cross-platform technology, it only carries the most common codecs that are needed for Web playback. However, we are gathering information from customers about the needed codecs and can update SilverLight when necessary

Will SilverLight support live streaming events as well as downloading media?
Yes, in the final release. The February CTP is optimized for progressive "download and play" scenarios to test the platform.

Does SilverLight support MPEG4 and H.264 video, or Advanced Audio Coding (AAC) audio, or Flash video?
No. However, content from many of these formats can be transcoded into formats that are supported by SilverLight, such as by an automated server function (many available third-party solutions support this workflow), and then incorporated into a SilverLight-based application
What applications will Microsoft provide to make hosting easy?
Microsoft is building a simple uploading tool and working to add publishing support directly to SilverLight Streaming via Expression Media Encoder, a feature of Expression Media. In addition, third-party companies are adding support to their own applications for SilverLight Streaming

What is SMPTE VC-1?
VC-1 is an industry-standard video format, recognized by the Society of Motion Picture and Television Engineers (SMPTE), and most notably ships in all HD-DVD and Blu-ray Disc–certified electronics, hardware, and tools. Windows Media Video 9 (WMV-9) is the Microsoft implementation of the SMPTE VC-1 standard video codec. Microsoft initiated development of the standard with the release of WMV-9 to SMPTE

Will SilverLight support HD quality?
Yes, SilverLight supports 720p, HD quality with considerable performance benefits over other solutions. Performance is dependent upon the central processing unit (CPU) capabilities of your computer and configurations. Generally, in testing, a 3-gigahertz (GHz) CPU and/or dual-core support greatly benefit the HD playback experience

What is Microsoft® SilverLight Streaming by Windows LiveTM?
Microsoft® SilverLight Streaming by Windows LiveTM offers a free cloud-based hosting and streaming solution for quickly delivering high-quality, high-scale, cross-platform, cross-browser, media-enabled RIAs.

How much does SilverLight Streaming cost?
While the product is in Beta, hosting is free of charge. Up to 4 GB of data and streaming is free of charge up to 700 kilobit/s. At the conclusion of the Beta program, the developer can chose to enable Microsoft-sponsored advertising in the application for continued free use of the service to or subscribe to a pay-for-use service that is free of advertisements

How much storage do I get and what is the bit-rate?
A user receives 4 GB of free storage for SilverLight Streaming applications. Each media element in a SilverLight Streaming application cannot exceed a 10-minute uninterrupted video stream at 300 kilobit/s. The peak outbound bit rate for SilverLight Streaming is 700 kilobit/s. As the limit is set based on byte size instead of duration, by using the full bandwidth of 700 kilobit/s, the video will be truncated to approximately 4 minutes. Customers requiring additional capabilities are encouraged to contact aWindows Media Streaming Hosting Provider

Does SilverLight Streaming replace other video and file sharing services?
This service does not replace other video or file sharing services. SilverLight Streaming is intended to allow developers the power and flexibility to build such services themselves, and more.

What steps are being taken to ensure copyrighted content or illegal material is not uploaded?
The media owners as well as the SilverLight developers rendering content in their third-party Web sites are responsible for respecting the copyright of the content they expose. Microsoft reserves the right to remove from our servers any copyrighted content brought to our attention. The front page of our service has a Report Abuse button and the free-of-charge XAML templates that we provide include a similar button

Can I string together longer clips made of 10-minute files in a playlist?
Yes, so long as the total size of your SilverLight application content does not exceed the 4-GB storage limits of this free service
What is SilverLight Tool Kit?
To create an application or game you need to design, code and give some extra feature to your output. To do the above, you need some controls, IDE etc.
SilverLight Tool kit is nothing but is a collection of SilverLight Tools, Components etc. It includes source code describing the all you need to develop an application.
Please visit this link for more info:http://www.codeplex.com/SilverLight

What happened when I press F5 within Visual Studio to run SilverLight application?
When you run the SilverLight application within Visual Studio, a new folder created in the web-site project for SilverLight solution and it happened only first time. The folder name is ClientBin and having package with XAP extension which contains compiled project.

What is Storyboard in SilverLight?
Storyboard is a SilverLight class with controls animations with a timeline, and provides object and property targeting information for its child animations

Can I add more than one .xaml pages in SilverLight application?
Yes, you can have multiple .xaml files in a single project.
In the App.xaml, in the method Application_Startup you can choose, which page you want to initially display.

What is the best place to start SilverLight application?
There is no hard and fast rule to start SilverLight application. Every developer  can start as per his/her experience. like as per my case I always prefer Visual Studio. SO, in my view Visual Studio is the best place to start with SilverLight2 applications.Microsoft provides
templates for creating SilverLight applications and libraries in C# and Visual Basic.

Is SilverLight supported on various locales?
SilverLight installs on localized versions of Macintosh computers and Windows. At this time, the installation is available in an international English format. Final releases will render international text (using double-byte characters) and support the full 64K Unicode character set. SilverLight uses simple input mechanism that treats all the languages in the same way.

Is SilverLight the official name for "WPF/E"?
Yes. SilverLight was formerly code-named "WPF/E."

Does SilverLight web application work with all browsers ?
Yes, A web application developed by SilverLight technology can work with any browser

Is SilverLight a new media player?
No. SilverLight is a cross-browser, cross-platform plug-in for delivering media experiences and RIAs. It is not a desktop application or stand-alone media player.

How is my content secured from unauthorized access?
You will have to be signed into the SilverLightTM Streaming service to manage your account and your SilverLight applications. Your SilverLightTM Streaming ID and secret key, associated to your Windows Live ID, will authenticate you as the unique and legitimate owner of the applications and content you upload to the service. You will also need this information to manage your SilverLight applications using the API. The SilverLightTM Streaming ID is public. However, the secret key should be kept confidential.
What is the use of ClientBin folder?
ClientBin folder is used to place the .xap file of SilverLight application. You can keep this anywhere in your web application but this is the default that is used by the SilverLight.
What is name of Linux version of SilverLight?
The name is MoonLight.
What is RIA?
RIA means rich internet applications.
They are web applications with rich features.
Rich features include built in AJAX support, animations, layouts, audio and video components.
SilverLight applications are examples of RIA.
What is the difference between SilverLight 1 and SilverLight 2?
Nothing, SilverLight 2 is a full superset of SilverLight 1.0 - it is 100% compatible with SilverLight 1.0 applications and provides significantly more powerful features and functionality. SilverLight 1.0 applications even benefit from improvements in media playback and performance characteristics of SilverLight 2 with no additional work
How does XAP work in SilverLight?
A basic xap file in SilverLight will have an assembly related to specific code for the application, an application manifest file and any additional assemblies need to run the application. At a minimum, two files are needed, the application manifest file and the application assembly. For example:

AppManifest.xaml
MyPianoV2.dll

Once you have created the .xap file, the SilverLight 2 or 3 plug-in downloads the file and runs it in a separate work space.

A .xap file is used to contain and transfer the assemblies and resources of a managed code application. This managed code application must be run within the SilverLight 2 browser plug-in.
How you will Change application to full screen Mode in SilverLight?
Application.Current.Host.Content.IsFullScreen=true;
What is the difference Between WCF and RIA Services?
RIA Services is a library of client and server components that bolt on to ADO.NET Data Services. When the full stack of RIA Services is used the difference between RIA Services and plain WCF are as follow:

1.The client side data objects are generated using reflection at compile time based on the actual server side objects instead of a service contract. This allows RIA Services to provide a much richer client side object model by including any business rules and relationships between objects. However, this does mean that RIA Services gives up some flexibility compared to plain WCF. For example, the RIA Services serializaer does not currently support some data types which WCF would be able to handle.

2.RIA Services, like ADO.NET Data Services, supports serializing LINQ queries between the client and the server. This means that the client can create the LINQ query and have it run server side.

3.RIA Services, unlike plain ADO.NET Data Services, does not automatically generate CRUD at runtime. For people familiar with SQL Server, I describe ADO.NET Data Services as supporting regular triggers (aka query interceptors) while RIA Services requires INSTEAD OF triggers.
What do you mean by Deep Zoom and Deep Zoom Composer?
Deep zoom helps to view high resolution images in SilverLight application, using deep zoon one can zoom in and out with out affecting the performance of the application.

Deep zoom composer helps to create high resolution images for panning and smooth zooming.
Is dotnet framework needed to implement SilverLight?
No, It's a cross platform version of the .NET Framework which is included in the 6 MB SilverLight 4 download, so you do not need to have anything extra to be installed on the client in order to access SilverLight applications in the browser.
What is meant by Rich Internet Application(RIA)?
Microsoft .NET RIA Services provides support to make the n-tier application pattern by combining the ASP.NET and SilverLight platforms in a simple manner.
RIA Services presents a pattern which a help of that you can write application logic that can run on the mid-tier and controls access to data for queries, changes, and custom operations.
It support data validation, authentication, and roles by integrating with SilverLight components on the client and ASP.NET on the middle tier.
What are the different Layout controls available in SilverLight?
There are three controls available, they are;
StackPanel - this will position the child elements either in horizontal or in a vertical manner.
Grid - This will position the child elements in either columns or rows.
Canvas - This will position the child elements according to X,Y space.
What are the features and advantages of SilverLight?
It compel cross-platform user experiences.
It has Flexible programming model with collaboration tools.
It outputs High-quality media and with a low-cost delivery.
It can be Connected to data, servers, and services.
How to change the default page of a SilverLight application?
In a simple way we can set the default page, what we have to do is to change the default page of a SilverLight application, we have to set the RootVisual property inside the Application_Startup event of the App.xaml file.
    private void Application_Startup(object sender, StartupEventArgs e)
    {
        this.RootVisual = new MainPage();
    }
Name the Methods of a MediaElement object in SilverLight?
Play, Pause, and Stop are the methods of MediaElement.
Name the LayOut Management controls in SilverLight?
1)Canvas
2)Grid
3)StackPanel
How many Types of Brushes are there in Sivlerlight?
The different types of brushes in SilverLight are:-
1)SolidColorBrush
2)LinearGradientBrush
3)RadialGradientBrush
4)ImageBrush
5)VideoBrush.
Is there a way to generate more then on .xap file from a same SilverLight application?
Since for each .xap file we have to create a new SilverLight application.
How many ways you can display text using SilverLight?
SilverLight supports displaying static pre formatted text that is comprised out of glyph elements and also dynamic text that uses TextBlock. With glyphs, one needs to position the characters individually while TextBlock supports simple layout.
How do I use a .xap file in SilverLight?
A .xap file is used to contain and transfer the assemblies and resources of a managed code application. This managed code application must be run within the SilverLight 2 browser plug-in.
What are the files contained in the .xap file in SilverLight?
A basic xap file in SilverLight will have an assembly related to specific code for the application, an application manifest file and any additional assemblies need to run the application. At a minimum, two files are needed, the application manifest file and the application assembly.
For example:
AppManifest.xaml
MyPianoV2.dll
What is contained in the AppManifest.xaml file in SilverLight?
The AppManifest.xaml file contains the deployment details needed to run the SilverLight application.
Basic example:
<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" EntryPointAssembly="MyPianoV2" EntryPointType="MyPianoV2.App" RuntimeVersion="2.0.30523.4"> <Deployment.Parts> <AssemblyPart x:Name="MyPianoV2" Source="MyPianoV2.dll" /> </Deployment.Parts></Deployment>
What is the XAP mime type in SilverLight?
The .xap mime type is: application/x-SilverLight
Which platforms and browsers will SilverLight 2 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. Microsoft will extend the support for SilverLight on Linux through a partnership with Novell.


   
   
Thanks,
Anil

No comments: