SlideShare ist ein Scribd-Unternehmen logo
1 von 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/

Weitere ähnliche Inhalte

Ähnlich wie 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
 

Ähnlich wie 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
 

Kürzlich hochgeladen

Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 

Kürzlich hochgeladen (20)

Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 

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/

Hinweis der Redaktion

  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.