Building Silverlight Application using .NET (ScottGu)

download Building Silverlight Application using .NET (ScottGu)

of 83

Transcript of Building Silverlight Application using .NET (ScottGu)

  • 8/7/2019 Building Silverlight Application using .NET (ScottGu)

    1/14

    4/13/2011 11:33 AM

    2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.

    The information herein is for informational purposes only and represents the current view o f Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market co nditions, itshould not be interpreted to be a commitment on the part of Micros oft, and Microsof t cannot guarantee the accurac y of any information provid ed after the date of this presentation.MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. 1

    Scott GuthrieScott GuthrieGeneral ManagerGeneral ManagerMicrosoft CorporationMicrosoft [email protected]@microsoft.com

    Silverlight + .NET OverviewSilverlight + .NET Overview

    Getting StartedGetting Started

    XAMLXAML

    ShapesShapes

    ControlsControls

    LayoutLayout

    Brushes and TransformsBrushes and Transforms

    Events and CodeEvents and Code

    Building Custom ControlsBuilding Custom Controls

    HTML and Script IntegrationHTML and Script Integration

    File Open DialogFile Open Dialog

    HTTP Network AccessHTTP Network Access

    Web ServicesWeb Services

    Isolated StorageIsolated Storage

    Lots of contentLots of content 2+ talks2+ talks worthworth

    http://weblogs.asp.net/scottguhttp://weblogs.asp.net/scottgu

    Web deploymentWeb deployment

    Broad client reachBroad client reach

    Secure sandboxed environmentSecure sandboxed environment

    Rich UI experiences beyond server generated HTMLRich UI experiences beyond server generated HTML

    Highly capable UI modelHighly capable UI model

    Signifigant clientSignifigant client--side application logicside application logic

    Highly productive development environmentHighly productive development environment

    CrossCross--platform & crossplatform & cross--browser pluginbrowser plugin

    Works with Safari, Firefox and IE on MAC & W indowsWorks with Safari, Firefox and IE on MAC & W indows

    Fast, easy install processFast, easy install process

    HighlyHighly productive development Frameworkproductive development Framework

    MultiMulti--language supportlanguage support VB, C#, JavaScript, Python, RubyVB, C#, JavaScript, Python, Ruby

    Rich class library of functionality that can be usedRich class library of functionality that can be used

    Great tools with Visual Studio &Great tools with Visual Studio & ExpressionExpression

  • 8/7/2019 Building Silverlight Application using .NET (ScottGu)

    2/14

  • 8/7/2019 Building Silverlight Application using .NET (ScottGu)

    3/14

  • 8/7/2019 Building Silverlight Application using .NET (ScottGu)

    4/14

  • 8/7/2019 Building Silverlight Application using .NET (ScottGu)

    5/14

  • 8/7/2019 Building Silverlight Application using .NET (ScottGu)

    6/14

  • 8/7/2019 Building Silverlight Application using .NET (ScottGu)

    7/14

  • 8/7/2019 Building Silverlight Application using .NET (ScottGu)

    8/14

  • 8/7/2019 Building Silverlight Application using .NET (ScottGu)

    9/14

  • 8/7/2019 Building Silverlight Application using .NET (ScottGu)

    10/14

  • 8/7/2019 Building Silverlight Application using .NET (ScottGu)

    11/14

  • 8/7/2019 Building Silverlight Application using .NET (ScottGu)

    12/14

    4/13/2011 11:33 AM

    2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.

    The information herein is for informational purposes only and represents the current view o f Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market co nditions, itshould not be interpreted to be a commitment on the part of Micros oft, and Microsof t cannot guarantee the accurac y of any information provid ed after the date of this presentation.MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. 12

    Other interesting HTML integration scenarios:Other interesting HTML integration scenarios:Persisent linksPersisent links

    Fwd/Back IntegrationFwd/Back Integration

    Notes:Notes:

    Simple type marshalling only inSimple type marshalling only in ththe Alphae Alpha

    Complex type support on the wayComplex type support on the way

    Silverlight supports ability to prompt for local filesSilverlight supports ability to prompt for local files

    Developers can then work with file contents locallyDevelopers can then work with file contents locallywithout having to first upload them to the serverwithout having to first upload them to the server

    OpenFileDialog openFileDlg = new OpenFileDialog();openFileDlg.EnableMultipleSelection = false;openFileDlg.Filter = "Text files (*.txt;*.xml)|*.txt;*.xml";openFileDlg.Title = "Select an image to upload";

    if (openFileDlg.ShowDialog() == DialogResult.OK){

    // Do something with the file or files// Do something with the file or files}}

    Silverlight does not allow developer to control or accessSilverlight does not allow developer to control or accessthe origional file path on the local machinethe origional file path on the local machine

    Silverlight does not allow direct file access without firstSilverlight does not allow direct file access without firstgoing through the OpenFileDialoggoing through the OpenFileDialog

  • 8/7/2019 Building Silverlight Application using .NET (ScottGu)

    13/14

  • 8/7/2019 Building Silverlight Application using .NET (ScottGu)

    14/14