Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Microsoft (Silverlight)

  • 1,960 views
Uploaded on

 

More in: Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,960
On Slideshare
1,960
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
14
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Microsoft Silverlight
  • 2. Agenda
    • What is Silverlight ?
    • Features
    • What’s new in C# 3.0
    • Controls and Containers
    • Third Party Tools
    • Hello World
  • 3. What is Silverlight?
    • Browser Plugin
    • Earlier known as WPF/E (Windows Presentation Foundation / Everywhere)
    • Cross-browser, cross-platform, cross-device implementation of the .NET Framework.
    • < 10 sec download
    • Provides animations, vector graphics, audio-video playback
  • 4. Cross Browser
    • Works on all major browsers
  • 5. Cross Platform
    • Works on Windows, Linux and Mac OS X
  • 6. Cross Device
    • Coming to Nokia and Windows Mobile phones
  • 7. How to Install ?
    • Install Visual Studio 2008.
    • Install Visual Studio Service Pack 1.
    • Install Silverlight Tools for Visual Studio.
    • (Optional) Install Expression Blend for designing XAML.
  • 8. Supported Languages
    • Silverlight 1.0
      • Javascript
    • Silverlight 2.0
      • C#
      • VB.NET
      • Dynamic Lanaguages Supported
        • Microsoft JScript
        • IronPython
        • IronRuby
  • 9. Advantages
    • Single, consistent runtime for browser-based applications.
    • Performance is promising . (Prime Number Calculator)
    • There is an official open source implementation of Silverlight (Moonlight)
    • Search engines can potentially index text within a Silverlight application, just as they can with Flash.
    • Silverlight interprets XAML directly (Flex doesn’t)
  • 10. Disadvantages
    • The design tools (Expression Blend and Expression Design) are comparatively new.
    • Silverlight supports SOAP web services, or REST but doesn’t have an optimized binary protocol like Adobe’s ActionScript Message Format (AMF), which likely means slower performance in some scenarios.
    • Silverlight is a browser-only solution (Adobe has AIR).
    • Development on Windows platform only.
    • Yet to penetrate market.
  • 11. Architecture
  • 12. New Features in C# 3.0
  • 13. New Features in C# 3.0
    • Implicit Type Variables var i = 1; When the compiler sees this in the code, it tries to figure out the type of the variable based on the value you assigned it.
    • Object Initializer Human h = new Human { Name = “Fahim”, Age = 23};
  • 14. Lambda Expressions
    • A lambda expression is an anonymous function that can contain expressions and statements.
    • Example x => x > 3 An Anonymous function that takes x (int) as an input and returns whether x is greater than 3 or not ( true or false).
  • 15. Lambda Expression (Cont)
    • F unc<int,bool> myFunction = x => x > 3; Console.WriteLine (myFunction ( 4 ) ); True
    • Func<int,int,bool> myFunction = ( x ,y ) => x < y; Console.WriteLine( myFunction ( 4 , 3 ) ); False
  • 16. Attached Property
    • An attached property is intended to be used as a type of global property that is settable on any object.
    • Example
    • <DockPanel>
    • <CheckBox DockPanel.Dock =&quot;Top&quot;>Hello</CheckBox>
    • </DockPanel>
  • 17. Extension Methods
    • Special Kind of Static Methods
    • Enable you to add methods to instances of existing types without creating a new derived type, recompiling, or modifying the original type.
  • 18. Extension Methods
    • class Program
    • {
    • static void Main(string[] args)
    • {
    • string name = &quot;folio3&quot;;
    • Console .WriteLine(name.Decorate());
    • }
    • }
    • public static class StringExtension
    • {
    • public static string Decorate( this string str)
    • {
    • return &quot;**** &quot; + str + &quot; ****&quot;;
    • }
    • }
  • 19. LINQ LINQ is a series of language extensions that supports data querying in a type-safe way
  • 20. LINQ Language INtegrated Query
    • The most common extension methods are the LINQ standard query operators.
  • 21. Delayed Evaluation
    • Results from a LINQ query are as IEnumerable<T>
    • Evaluation does not occur until you iterate the results.
    • Some extension methods (e.g Count) iterate the results.
    • Delayed evaluation means latest is always evaluated. Re-evaluated if iterated again.
    • Use ToArray or ToList to get a “snapshot”
  • 22. XAML
    • XAML or eXtensible Application Markup Language is a general purpose declarative language to create the tree of .net objects .
    • Like XHTML and MXML.
  • 23. XAML Example
    • <Grid>
    • <Button x:Name=&quot;buttonClick&quot; Click=&quot;buttonClick_Click&quot; Content=&quot;Click Here&quot; Width=&quot;100&quot; Height=&quot;100&quot; />
    • <Label Content=&quot;Click the button&quot; />
    • </Grid>
  • 24. Layout Manager Controls
    • Canvas
    • StackPanel
    • Grid
    • Border
  • 25. Richer User Interfaces
    • Calendar
    • TextBox (w/ Watermark)
    • Sliders
    • Buttons
    • Lists
    • Lots more!
  • 26. XAP File
    • Really a zip file in disguise
    • Contains any content marked to be included in download and built in assemblies.
    • .XAP file is what is downloaded to client machine
  • 27. App.Xaml
    • Contains Application Resources
    • Entry point for the application
    • This where you set your start page for the application
    • Handles following events
      • Application Startup
      • Application Exit
      • Application Unhandled Exception
  • 28. Job Trends
  • 29. Third Party Tools
  • 30. Visifire http://www.visifire.com/
  • 31. Component One http://www.componentone.com/
  • 32. Useful Links
    • Official Website http://www.silverlight.net
    • Useful Article
    • http://fahimilyas.blogspot.com/2008/05/road-to-silverlight-part-1.html
    • Silverlight Articles http://www.silverlightarticles.com
  • 33. Demo Collected By Vinayak Nandikal