SlideShare une entreprise Scribd logo
1  sur  22
miguel.saez@microsoft.com          santiago@autocosmos.com
    http://blogs.msdn.com/masaez   http://weblogs.asp.net/SantiagoLeguiza
cross-browser, cross-plataforma, cross-device
     para la construcción y entrega de la siguiente generación de


         experiencias multimedia y RIA
               basadas en .NET
                   para la Web
Silverlight Demos
Qué sabes de Silverlight?
Arquitectura
Designer/Developer Collaboration




                         =
<Introducción> – XAML
• XAML = Extensible Application Markup Language
• Lenguaje orientado a objetos
• Schema Flexible.
  • Ejemplos:
    • Windows Presentation Foundation
    • Silverlight
    • Windows Workflow Foundation
• Mas compacto que el código




</Introducción>
Silverlight – XAML (OO)
  <Canvas
     MouseEnter=quot;OnMouseEnterquot;>

     <TextBlock Canvas.Top=quot;30quot; Foreground=quot;#FFFF3333quot;>
        Aquí va algún texto
     </TextBlock>

  </Canvas>

  Canvas canvas = new Canvas();
  canvas.MouseEnter += new MouseEventHandler(OnMouseEnter);

  TextBlock t = new TextBlock();
  t.SetValue(Canvas.TopProperty, 30);
  t.Text = “Aquí va algún textoquot;;
  Color ratherRed = Color.FromArgb(0xFF, 0xFF, 0x33, 0x33);
  t.Foreground = new SolidColorBrush(ratherRed);
  canvas.Children.Add(t);
Silverlight – XAML (OO)

• Usa nombres para acceder desde código


  <Rectangle x:Name=quot;rectquot; />


  void OnMouseEnter(object sender, MouseEventArgs e)   {
      rect.Height = 75;
  }
Silverlight – XAML (OO)
 <Canvas Width=“250” Height=“200”>

    <Rectangle Canvas.Top=“25quot; Canvas.Left =“25” Width=“200”
 Height=“15” Fill=“Yellow” />

 </Canvas>




El Canvas

El Rectángulo
Controles – Layout
Container    Descripción
                                             <Grid ShowGridLines=quot;Truequot;>
                                              <Grid.ColumnDefinitions>
             Posiciona elementos hijos      en <ColumnDefinition/>
                                                un espacio
Canvas
             absoluto x,y.                     <ColumnDefinition/>
                                             </Grid.ColumnDefinitions>
                                             <Grid.RowDefinitions>
                                               <RowDefinition/>
                                               <RowDefinition/>
                                             </Grid.RowDefinitions>
             Posiciona elementos hijos relativos unos a
StackPanel                                 <Rectangle Fill=quot;Redquot; Width=quot;150quot; Height=quot;100quot;
             otros en pilas verticales u horizontales.
                                                        Grid.Column=quot;1quot; Grid.Row=quot;1quot;/>
                                            </Grid>




Grid         Position child elements in rows and columns.
Desarrollo RIA
Biblioteca de controles



                          Canvas
                          Grid
                          Popup
                          StackPanel
Templates y Estilos - Demostración




                streaming.live.com
Demostración
• Controles de Usuario
• Templates y estilos
Explicacion Data Binding y WebServices
• + Demo anterior yendo al código.
Silverlight Sandbox
   • Silverlight lives in the browser Sandbox
   • Developers cannot extend the sandbox
   • Silverlight extends in a secure way                                               http://catalog.video.msn.com/clientaccesspolicy.xml
       • Local storage (isolated storage)
         • Similar to cookies                                                          <?xml version=quot;1.0quot; encoding=quot;utf-8quot;?>
                                                                                       <access-policy>
                                                                                         <cross-domain-access>
       • FileOpen dialog                                                                   <policy>
                                                                                              <allow-from>
       • Sockets                                                                                <domain uri=quot;*quot;/>
                                                                                              </allow-from>
         • Beta 1: Site of origin, port restrictions                                          <grant-to>
                                                                                                <resource path=quot;/quot; include-
       • Cross domain HTTP(S) requests                                                 subpaths=quot;truequot;/>
                                                                                              </grant-to>
         • Support Silverlight and Subset of Flash                                         </policy>
                                                                                         </cross-domain-access>
           policy files                                                                </access-policy>

   • Browser DOM access controled by
     page tags and app flags

http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/
Animaciones en Silverlight

• XAML Event Triggers (Declarativos)
  <Canvas xmlns=http://schemas.microsoft.com/client/2007
   xmlns=http://schemas.microsoft.com/winfx/2006/xaml>
   <Canvas.Triggers>
   <EventTriggers>
   <EventTrigger RoutedEvent=“Canvas.Loaded”>
   <BeginStoryboard>
            <Storyboard>
                      <DoubleAnimation Storyboard.Targetname=“Rectangle1”
                                Storyboard.TargetProperty=“(Rectangle.Height)”
                                Duration=“0:00:01” Value=“400” />
            </Storyboard>
   </BeginStoryboard>
   </EventTrigger>
   </EventTriggers>
   </Canvas.Triggers>

   <Rectangle x:Name=“Rectangle1”
            Width=“300” Height=“300”
            Fill=“Blue” Stroke=“Black” />
  </Canvas>
Animaciones en Silverlight

• Animaciones invocadas por
  procedimientos en código
  <Canvas xmlns=http://schemas.microsoft.com/client/2007
   xmlns=http://schemas.microsoft.com/winfx/2006/xaml>
   <Canvas.Resources>
            <Storyboard x:Name=“Grow1”>
                      <DoubleAnimation
            Storyboard.Targetname=“Rectangle1”
                      Storyboard.TargetProperty=“(Rectangle.Height)”
                                Duration=“0:00:01” Value=“400” />
            </Storyboard>
   </Canvas.Resources>
   <Rectangle x:Name=“Rectangle1”
            MouseLeftButtonUp=“handleClick”
            Width=“300”
            Height=“300”                     function handleClick(sender, args){
            Fill=“Blue”
                                                 var anim = sender.findName(“grow1”);
            Stroke=“Black” />
  </Canvas>                                      anim.begin();
                                             }
Animaciones en silverlight (2)
             Animación
 Tipo de
             Basica            Animación KeyFrames             Ejemplo de Uso
 Propiedad
             (From/To/By)



                                                               Animar el Color de
 Color       ColorAnimation    ColorAnimationUsingKeyFrames
                                                               una figura.




                                                               Animar el ancho, y
 Double      DoubleAnimation   DoubleAnimationUsingKeyFrames
                                                               alto de una figura.




                                                               Animar la posición
 Point       PointAnimation    PointAnimationUsingKeyFrames
                                                               de una figura.
Demostración
• Animaciones con Expression Blend
Silverlight 2 Runtime Features
 •                              .NET Support
     2D, Graphics           •
 •                               • C# and VB.NET
     Audio, Video
 •                               • Generics
     Animations
 •                              LINQ
     Text, Text Input       •
 •                              XML APIs
     Controls               •
 •                              HTML Integration
     Layout                 •
 •                               • JSON Serializer
     Styles/Templates
 •                              Local storage
     Data Binding           •
                                (Isolated)
 •   Networking
                                Crypto APIs (AES)
     • HTTP/S and Sockets   •
  • DeepZoom                    Threading
                            •
* New in Silverlight 2
Recursos
• Silverlight 2 Beta 2 - Development with the .NET Framework
http://msdn.microsoft.com/en-us/library/bb404700(VS.95).aspx
• Deploying Silverlight
http://msdn.microsoft.com/en-us/library/cc189057(VS.95).aspx
• Silverlight Showcase
http://silverlight.net/showcase/
• Silverlight Streaming
http:// streaming.live.com/

Contenu connexe

Similaire à Webcast 09/2008 - Silverlight 2 Beta 2

Cleveland Silverlight Firestarter - XAML Basics
Cleveland Silverlight Firestarter - XAML BasicsCleveland Silverlight Firestarter - XAML Basics
Cleveland Silverlight Firestarter - XAML BasicsSarah Dutkiewicz
 
JavaOne 2009 - 2d Vector Graphics in the browser with Canvas and SVG
JavaOne 2009 -  2d Vector Graphics in the browser with Canvas and SVGJavaOne 2009 -  2d Vector Graphics in the browser with Canvas and SVG
JavaOne 2009 - 2d Vector Graphics in the browser with Canvas and SVGPatrick Chanezon
 
Plone Interactivity
Plone InteractivityPlone Interactivity
Plone InteractivityEric Steele
 
[Muir] Seam 2 in practice
[Muir] Seam 2 in practice[Muir] Seam 2 in practice
[Muir] Seam 2 in practicejavablend
 
Basics of Rich Internet Applications
Basics of Rich Internet ApplicationsBasics of Rich Internet Applications
Basics of Rich Internet ApplicationsSubramanyan Murali
 
Ruby & Python with Silverlight O RLY? YA RLY!
Ruby & Python with Silverlight O RLY? YA RLY!Ruby & Python with Silverlight O RLY? YA RLY!
Ruby & Python with Silverlight O RLY? YA RLY!Martha Rotter
 
Google's HTML5 Work: what's next?
Google's HTML5 Work: what's next?Google's HTML5 Work: what's next?
Google's HTML5 Work: what's next?Patrick Chanezon
 
How Not To Code Flex Applications
How Not To Code Flex ApplicationsHow Not To Code Flex Applications
How Not To Code Flex Applicationsjeff tapper
 
Open and Accessible UI
Open and Accessible UIOpen and Accessible UI
Open and Accessible UIMark Meeker
 
Exploiting the newer perl to improve your plugins
Exploiting the newer perl to improve your pluginsExploiting the newer perl to improve your plugins
Exploiting the newer perl to improve your pluginsMarian Marinov
 
Blueprint talk at Open Hackday London 2009
Blueprint talk at Open Hackday London 2009Blueprint talk at Open Hackday London 2009
Blueprint talk at Open Hackday London 2009Ricardo Varela
 
Web Development for Mobile: GTUG Talk at Google
Web Development for Mobile: GTUG Talk at GoogleWeb Development for Mobile: GTUG Talk at Google
Web Development for Mobile: GTUG Talk at GoogleEstelle Weyl
 
Real-World AJAX with ASP.NET
Real-World AJAX with ASP.NETReal-World AJAX with ASP.NET
Real-World AJAX with ASP.NETgoodfriday
 
IPhone Web Development With Grails from CodeMash 2009
IPhone Web Development With Grails from CodeMash 2009IPhone Web Development With Grails from CodeMash 2009
IPhone Web Development With Grails from CodeMash 2009Christopher Judd
 
Jscript Fundamentals
Jscript FundamentalsJscript Fundamentals
Jscript Fundamentalsrspaike
 
Mozilla Firefox Extension Development, Course 1: Basic
Mozilla Firefox Extension Development, Course 1: BasicMozilla Firefox Extension Development, Course 1: Basic
Mozilla Firefox Extension Development, Course 1: Basiclittlebtc
 
Wide Open Spaces Using My Sql As A Web Mapping Service Backend
Wide Open Spaces Using My Sql As A Web Mapping Service BackendWide Open Spaces Using My Sql As A Web Mapping Service Backend
Wide Open Spaces Using My Sql As A Web Mapping Service BackendMySQLConference
 

Similaire à Webcast 09/2008 - Silverlight 2 Beta 2 (20)

Cleveland Silverlight Firestarter - XAML Basics
Cleveland Silverlight Firestarter - XAML BasicsCleveland Silverlight Firestarter - XAML Basics
Cleveland Silverlight Firestarter - XAML Basics
 
JavaOne 2009 - 2d Vector Graphics in the browser with Canvas and SVG
JavaOne 2009 -  2d Vector Graphics in the browser with Canvas and SVGJavaOne 2009 -  2d Vector Graphics in the browser with Canvas and SVG
JavaOne 2009 - 2d Vector Graphics in the browser with Canvas and SVG
 
Plone Interactivity
Plone InteractivityPlone Interactivity
Plone Interactivity
 
[Muir] Seam 2 in practice
[Muir] Seam 2 in practice[Muir] Seam 2 in practice
[Muir] Seam 2 in practice
 
Basics of Rich Internet Applications
Basics of Rich Internet ApplicationsBasics of Rich Internet Applications
Basics of Rich Internet Applications
 
Ruby & Python with Silverlight O RLY? YA RLY!
Ruby & Python with Silverlight O RLY? YA RLY!Ruby & Python with Silverlight O RLY? YA RLY!
Ruby & Python with Silverlight O RLY? YA RLY!
 
GWT
GWTGWT
GWT
 
Google's HTML5 Work: what's next?
Google's HTML5 Work: what's next?Google's HTML5 Work: what's next?
Google's HTML5 Work: what's next?
 
Sinatra
SinatraSinatra
Sinatra
 
How Not To Code Flex Applications
How Not To Code Flex ApplicationsHow Not To Code Flex Applications
How Not To Code Flex Applications
 
Open and Accessible UI
Open and Accessible UIOpen and Accessible UI
Open and Accessible UI
 
Exploiting the newer perl to improve your plugins
Exploiting the newer perl to improve your pluginsExploiting the newer perl to improve your plugins
Exploiting the newer perl to improve your plugins
 
Blueprint talk at Open Hackday London 2009
Blueprint talk at Open Hackday London 2009Blueprint talk at Open Hackday London 2009
Blueprint talk at Open Hackday London 2009
 
Web Development for Mobile: GTUG Talk at Google
Web Development for Mobile: GTUG Talk at GoogleWeb Development for Mobile: GTUG Talk at Google
Web Development for Mobile: GTUG Talk at Google
 
Real-World AJAX with ASP.NET
Real-World AJAX with ASP.NETReal-World AJAX with ASP.NET
Real-World AJAX with ASP.NET
 
IPhone Web Development With Grails from CodeMash 2009
IPhone Web Development With Grails from CodeMash 2009IPhone Web Development With Grails from CodeMash 2009
IPhone Web Development With Grails from CodeMash 2009
 
Jscript Fundamentals
Jscript FundamentalsJscript Fundamentals
Jscript Fundamentals
 
Wpf Tech Overview2009
Wpf Tech Overview2009Wpf Tech Overview2009
Wpf Tech Overview2009
 
Mozilla Firefox Extension Development, Course 1: Basic
Mozilla Firefox Extension Development, Course 1: BasicMozilla Firefox Extension Development, Course 1: Basic
Mozilla Firefox Extension Development, Course 1: Basic
 
Wide Open Spaces Using My Sql As A Web Mapping Service Backend
Wide Open Spaces Using My Sql As A Web Mapping Service BackendWide Open Spaces Using My Sql As A Web Mapping Service Backend
Wide Open Spaces Using My Sql As A Web Mapping Service Backend
 

Dernier

Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 

Dernier (20)

Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 

Webcast 09/2008 - Silverlight 2 Beta 2

  • 1. miguel.saez@microsoft.com santiago@autocosmos.com http://blogs.msdn.com/masaez http://weblogs.asp.net/SantiagoLeguiza
  • 2. cross-browser, cross-plataforma, cross-device para la construcción y entrega de la siguiente generación de experiencias multimedia y RIA basadas en .NET para la Web
  • 4. Qué sabes de Silverlight?
  • 7. <Introducción> – XAML • XAML = Extensible Application Markup Language • Lenguaje orientado a objetos • Schema Flexible. • Ejemplos: • Windows Presentation Foundation • Silverlight • Windows Workflow Foundation • Mas compacto que el código </Introducción>
  • 8. Silverlight – XAML (OO) <Canvas MouseEnter=quot;OnMouseEnterquot;> <TextBlock Canvas.Top=quot;30quot; Foreground=quot;#FFFF3333quot;> Aquí va algún texto </TextBlock> </Canvas> Canvas canvas = new Canvas(); canvas.MouseEnter += new MouseEventHandler(OnMouseEnter); TextBlock t = new TextBlock(); t.SetValue(Canvas.TopProperty, 30); t.Text = “Aquí va algún textoquot;; Color ratherRed = Color.FromArgb(0xFF, 0xFF, 0x33, 0x33); t.Foreground = new SolidColorBrush(ratherRed); canvas.Children.Add(t);
  • 9. Silverlight – XAML (OO) • Usa nombres para acceder desde código <Rectangle x:Name=quot;rectquot; /> void OnMouseEnter(object sender, MouseEventArgs e) { rect.Height = 75; }
  • 10. Silverlight – XAML (OO) <Canvas Width=“250” Height=“200”> <Rectangle Canvas.Top=“25quot; Canvas.Left =“25” Width=“200” Height=“15” Fill=“Yellow” /> </Canvas> El Canvas El Rectángulo
  • 11. Controles – Layout Container Descripción <Grid ShowGridLines=quot;Truequot;> <Grid.ColumnDefinitions> Posiciona elementos hijos en <ColumnDefinition/> un espacio Canvas absoluto x,y. <ColumnDefinition/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition/> </Grid.RowDefinitions> Posiciona elementos hijos relativos unos a StackPanel <Rectangle Fill=quot;Redquot; Width=quot;150quot; Height=quot;100quot; otros en pilas verticales u horizontales. Grid.Column=quot;1quot; Grid.Row=quot;1quot;/> </Grid> Grid Position child elements in rows and columns.
  • 12. Desarrollo RIA Biblioteca de controles Canvas Grid Popup StackPanel
  • 13. Templates y Estilos - Demostración streaming.live.com
  • 14. Demostración • Controles de Usuario • Templates y estilos
  • 15. Explicacion Data Binding y WebServices • + Demo anterior yendo al código.
  • 16. Silverlight Sandbox • Silverlight lives in the browser Sandbox • Developers cannot extend the sandbox • Silverlight extends in a secure way http://catalog.video.msn.com/clientaccesspolicy.xml • Local storage (isolated storage) • Similar to cookies <?xml version=quot;1.0quot; encoding=quot;utf-8quot;?> <access-policy> <cross-domain-access> • FileOpen dialog <policy> <allow-from> • Sockets <domain uri=quot;*quot;/> </allow-from> • Beta 1: Site of origin, port restrictions <grant-to> <resource path=quot;/quot; include- • Cross domain HTTP(S) requests subpaths=quot;truequot;/> </grant-to> • Support Silverlight and Subset of Flash </policy> </cross-domain-access> policy files </access-policy> • Browser DOM access controled by page tags and app flags http://scorbs.com/2008/04/05/silverlight-http-networking-stack-part-1-site-of-origin-communication/
  • 17. Animaciones en Silverlight • XAML Event Triggers (Declarativos) <Canvas xmlns=http://schemas.microsoft.com/client/2007 xmlns=http://schemas.microsoft.com/winfx/2006/xaml> <Canvas.Triggers> <EventTriggers> <EventTrigger RoutedEvent=“Canvas.Loaded”> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.Targetname=“Rectangle1” Storyboard.TargetProperty=“(Rectangle.Height)” Duration=“0:00:01” Value=“400” /> </Storyboard> </BeginStoryboard> </EventTrigger> </EventTriggers> </Canvas.Triggers> <Rectangle x:Name=“Rectangle1” Width=“300” Height=“300” Fill=“Blue” Stroke=“Black” /> </Canvas>
  • 18. Animaciones en Silverlight • Animaciones invocadas por procedimientos en código <Canvas xmlns=http://schemas.microsoft.com/client/2007 xmlns=http://schemas.microsoft.com/winfx/2006/xaml> <Canvas.Resources> <Storyboard x:Name=“Grow1”> <DoubleAnimation Storyboard.Targetname=“Rectangle1” Storyboard.TargetProperty=“(Rectangle.Height)” Duration=“0:00:01” Value=“400” /> </Storyboard> </Canvas.Resources> <Rectangle x:Name=“Rectangle1” MouseLeftButtonUp=“handleClick” Width=“300” Height=“300” function handleClick(sender, args){ Fill=“Blue” var anim = sender.findName(“grow1”); Stroke=“Black” /> </Canvas> anim.begin(); }
  • 19. Animaciones en silverlight (2) Animación Tipo de Basica Animación KeyFrames Ejemplo de Uso Propiedad (From/To/By) Animar el Color de Color ColorAnimation ColorAnimationUsingKeyFrames una figura. Animar el ancho, y Double DoubleAnimation DoubleAnimationUsingKeyFrames alto de una figura. Animar la posición Point PointAnimation PointAnimationUsingKeyFrames de una figura.
  • 21. Silverlight 2 Runtime Features • .NET Support 2D, Graphics • • • C# and VB.NET Audio, Video • • Generics Animations • LINQ Text, Text Input • • XML APIs Controls • • HTML Integration Layout • • • JSON Serializer Styles/Templates • Local storage Data Binding • (Isolated) • Networking Crypto APIs (AES) • HTTP/S and Sockets • • DeepZoom Threading • * New in Silverlight 2
  • 22. Recursos • Silverlight 2 Beta 2 - Development with the .NET Framework http://msdn.microsoft.com/en-us/library/bb404700(VS.95).aspx • Deploying Silverlight http://msdn.microsoft.com/en-us/library/cc189057(VS.95).aspx • Silverlight Showcase http://silverlight.net/showcase/ • Silverlight Streaming http:// streaming.live.com/

Notes de l'éditeur

  1. Availability of ProductsSilverlight 2 Beta 1 including a non-commercial Go-Live license.Silverlight 2 support for .NET and cross-device OS.MicrosoftExpression Studio 2 Beta for targeting the latest supported Microsoft platform technologies including Microsoft .NET 3.5 and Silverlight 1.0.Microsoft Expression Blend 2.5 March 2008 Preview with support for Silverlight 2, Silverlight 1.0 and WPF.Expression Professional Subscription introduced as a premium offering for professional designers that complements the existing MSDN subscriptions for developers.Visual Studio 2008 tooling and IIS 7 Media Pack enhancements for Silverlight 2.Internet Explorer 8 Beta for delivering enhanced user experiences with significantly improved standards-support and developer platform investments that enable it to uniquely deliver on the promise of the world of online services.Industry Momentum and Customer/Partner AnnouncementsDemonstration of Silverlight on Windows MobileMicrosoft is planning a relationship with Move Networks to extend the functionality of Silverlight 2Announcement/demonstration of Silverlight-based experiences from customers such as Nokia (to support Silverlight in S60 devices), DoubleClick (preview of its Silverlight 2 SDK for in-stream advertising), AOL, Weatherbug, Aston Martin, Cirque du Soleil, Hard Rock, and NBC Olympics.
  2. Availability of ProductsSilverlight 2 Beta 1 including a non-commercial Go-Live license.Silverlight 2 support for .NET and cross-device OS.MicrosoftExpression Studio 2 Beta for targeting the latest supported Microsoft platform technologies including Microsoft .NET 3.5 and Silverlight 1.0.Microsoft Expression Blend 2.5 March 2008 Preview with support for Silverlight 2, Silverlight 1.0 and WPF.Expression Professional Subscription introduced as a premium offering for professional designers that complements the existing MSDN subscriptions for developers.Visual Studio 2008 tooling and IIS 7 Media Pack enhancements for Silverlight 2.Internet Explorer 8 Beta for delivering enhanced user experiences with significantly improved standards-support and developer platform investments that enable it to uniquely deliver on the promise of the world of online services.Industry Momentum and Customer/Partner AnnouncementsDemonstration of Silverlight on Windows MobileMicrosoft is planning a relationship with Move Networks to extend the functionality of Silverlight 2Announcement/demonstration of Silverlight-based experiences from customers such as Nokia (to support Silverlight in S60 devices), DoubleClick (preview of its Silverlight 2 SDK for in-stream advertising), AOL, Weatherbug, Aston Martin, Cirque du Soleil, Hard Rock, and NBC Olympics.
  3. Availability of ProductsSilverlight 2 Beta 1 including a non-commercial Go-Live license.Silverlight 2 support for .NET and cross-device OS.MicrosoftExpression Studio 2 Beta for targeting the latest supported Microsoft platform technologies including Microsoft .NET 3.5 and Silverlight 1.0.Microsoft Expression Blend 2.5 March 2008 Preview with support for Silverlight 2, Silverlight 1.0 and WPF.Expression Professional Subscription introduced as a premium offering for professional designers that complements the existing MSDN subscriptions for developers.Visual Studio 2008 tooling and IIS 7 Media Pack enhancements for Silverlight 2.Internet Explorer 8 Beta for delivering enhanced user experiences with significantly improved standards-support and developer platform investments that enable it to uniquely deliver on the promise of the world of online services.Industry Momentum and Customer/Partner AnnouncementsDemonstration of Silverlight on Windows MobileMicrosoft is planning a relationship with Move Networks to extend the functionality of Silverlight 2Announcement/demonstration of Silverlight-based experiences from customers such as Nokia (to support Silverlight in S60 devices), DoubleClick (preview of its Silverlight 2 SDK for in-stream advertising), AOL, Weatherbug, Aston Martin, Cirque du Soleil, Hard Rock, and NBC Olympics.
  4. In addition, Silverlight 2 uses XML-based markup to describe applications and ships with many prebuilt controls and layouts.
  5. The platform and the provided controls support “skinning” and styling making it possible for designers to change the look and feel of things without changing (and breaking) the codeEven at the platform level, we’re trying to better support designer/developer collaboration.