SlideShare a Scribd company logo
Introdução ao Silverlight 2.0  Ramon Durães MVP, Especialista em Visual Studio Team System http://www.ramonduraes.net Preparando o ambiente: http://tinyurl.com/6v3f6b
O que é o Silverlight ? Microsoft Silverlight é uma implementação cross browser, cross-platform do .NET  destinada a construção e distribuição  da próxima geração de mídia  e aplicações ricas para a Web.
? New Web()
Demo d= new Demo();  “ Video”, “Negócios”, “Games”,”ZOOM ;”
Rich Interactive Applications (RIA) Video Aplicações de negócio Publicidade Aplicações moveis Games Search engine optimization (SEO)
Instalando i= new Instalando() ; “ Plugin”; *Windows Update / Windows Live Tools*
Colaboração  Designer/Developer =
Colaboração Designer-Developer Designers-Interface com Usuário Atravéz do XAML designers e desenvolvedores podem ter extrema colaboração Desenvovedor-Lógica de Negócios
XAML (Extensive Application Markup Language) &quot; Z ammel”  Padrão baseado no XML. Separação de código e conteúdo. UI / DataBind / Event / Objects. Storyboard, Rotations /  Animations, Effects. <Button Width=&quot;100&quot;> OK <Button.Background> LightBlue </Button.Background> </Button> XAML Button b1 = new Button(); b1.Content = &quot;OK&quot;; b1.Background = new SolidColorBrush(Colors.LightBlue); b1.Width = 100; C# Dim b1 As New Button b1.Content = &quot;OK&quot; b1.Background = New _   SolidColorBrush(Colors.LightBlue) b1.Width = 100 VB.NET
XAML “ Z ammel”   < Canvas  Width=&quot;300&quot; Height=&quot;300&quot; xmlns=&quot;http://schemas.microsoft.com/client/2007&quot; xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;> < Ellipse  Canvas.Left=&quot;20&quot; Canvas.Top=&quot;20&quot; Height=&quot;200&quot; Width=&quot;200&quot; Stroke=&quot;Black&quot; StrokeThickness=&quot;10&quot; Fill=&quot;Yellow&quot; /> < Ellipse  Canvas.Left=&quot;80&quot; Canvas.Top=&quot;80&quot; Height=&quot;35&quot; Width=&quot;25&quot; Stroke=&quot;Black&quot; Fill=&quot;Black&quot; /> < Ellipse  Canvas.Left=&quot;140&quot; Canvas.Top=&quot;80&quot; Height=&quot;35&quot; Width=&quot;25&quot; Stroke=&quot;Black&quot; Fill=&quot;Black&quot; /> < Path  Data=&quot;M 70, 150 A 60, 60 0 0 0 170, 150&quot; Stroke=&quot;Black&quot; StrokeThickness=&quot;15&quot;  StrokeStartLineCap=&quot;Round&quot; StrokeEndLineCap=&quot;Round&quot; /> </ Canvas>
Colocando um ID nos objetos XAML   Atributo x:Name muito similar  ao identificador do ASP.NET < Rectangle  Canvas.Left=&quot;50&quot; Canvas.Top=&quot;50&quot;  Fill=&quot;Yellow“  Width=&quot;300&quot; Height=&quot;200&quot;  Stroke=&quot;Black&quot; StrokeThickness=&quot;10&quot; x:Name=“ MeuRetangulo &quot;  /> Esse objeto agora pode ser referenciando no código fonte  (VB.NET / C#).
Demo d= new Demo()  “ XAML” , “Hello World”
Controlando o Layout Definindo o posicionamento dos objetos Canvas  - Posicionamento absoluto em uma linha / coluna(Canvas.Left and Canvas.Top) StackPanel  - Posicionamento em uma linha ou coluna(StackPanel.Orientation) Grid  – Posicionamento usando linhas e colunas. GridSplitter – Permite o redimensionamento de linhas e colunas.
Canvas <Canvas Width=&quot;300&quot; Height=&quot;560&quot; xmlns=&quot;... xmlns:x=&quot;...&quot;> <Canvas Canvas.Left=&quot;40&quot; Canvas.Top=&quot;40&quot; Width=&quot;220&quot; Height=&quot;220&quot;> <Ellipse Canvas.Left=&quot;40&quot; Canvas.Top=&quot;40&quot; Height=&quot;140&quot; Width=&quot;140&quot; /> </Canvas> <Canvas Canvas.Left=&quot;40&quot; Canvas.Top=&quot;300&quot; Width=&quot;220&quot; Height=&quot;220&quot;> <Ellipse Canvas.Left=&quot;40&quot; Canvas.Top=&quot;40&quot; Height=&quot;140&quot; Width=&quot;140&quot; /> </Canvas> </Canvas> (40,40) (0,0) (40,300) (80,80) (80,340)
StackPanel <StackPanel Orientation=&quot;Horizontal|Vertical&quot;> <Rectangle Width=&quot;100&quot; Height=&quot;60&quot; Fill=&quot;Red&quot; Margin=&quot;10&quot; /> <Rectangle Width=&quot;100&quot; Height=&quot;60&quot; Fill=&quot;Green&quot; Margin=&quot;10&quot; /> <Rectangle Width=&quot;100&quot; Height=&quot;60&quot; Fill=&quot;Blue&quot; Margin=&quot;10&quot; /> <Rectangle Width=&quot;100&quot; Height=&quot;60&quot; Fill=&quot;Yellow&quot; Margin=&quot;10&quot; /> </StackPanel> Orientation=&quot;Horizontal&quot; Orientation=&quot;Vertical&quot;
Suporte Shapes (Rectangle,Ellipse,Polygon,Line,PolyLine,Path) Brush (LinearGradientBrush, RadialGradientBrush) Text Fonts (Embarcadas juntos com o XAP) Images (Stretch=None|Fill|Uniform|UniformToFill) MediaElement (Audio / Video)
Silverlight é um “micro” .NET Framework
Silverlight e .NET: Juntos Alta produtividade no desenvolvimento Suporte a várias linguagens (C#; VB.NET …) Language integrated Query  (LINQ) Integração com JavaSCript / HTML / DOM / AJAX / ASP.NET / JSON / WCF / Web Services /  Asynchronous Support . Otimas ferramentas  Visual Studio Expression Studio Cross-platform & cross-browser plugin Funciona Chorme ,Safari, Firefox e Internet Explorer  Mac OS, Windows e  Linux Funciona em qualquer servidor Web Instalação rápida e fácil do plugin Básico Qualquer editor de texto Qualquer servidor Web
Ferramentas para usar com XAML BLEND KAXAML ECLIPSE
Core UI Capabilities Vector Based Graphics 2D graphics Primitives (ellipse, rectangle, path etc) Composition engine Transforms Brushes Text Ink  Animation system Media Video Audio
Access the HTML DOM from Managed Code HTML access available in new namespace  HtmlPage.Navigate(&quot; http://www.microsoft.com &quot;); String  server = HtmlPage.DocumentUri.Host; using  System.Windows.Browser; HtmlElement myButton = HtmlPage.Document.GetElementByID(&quot; myButtonID &quot;); myButton.AttachEvent(&quot; onclick &quot;,  new EventHandler( this .myButtonClicked)); private   void   myButtonClicked( object  sender, EventArgs e)  { ... } Static HtmlPage class provides entry point  Hookup events, call methods, or access properties
Access Managed Code from JavaScript Mark a property, method or event as [Scriptable] WebApplication.Current.RegisterScriptableObject (&quot; EntryPoint &quot;,  this ); [Scriptable] public   void   Search( string   Name) { ... } var  control = document.getElementById(&quot; SilverlightControl &quot;); control.Content.EntryPoint.Search(input.value); Register a scriptable object Access the managed object from script
Mouse Events
InkPresenter Usando tinta para escrever
InkPresenter i= new  InkPresenter ()  “ Mouse””
Silverlight Toolkit Conjunto de novos controles disponíveis com código fonte para ampliar mais ainda o poder do Silverlight Preparando o ambiente: http://tinyurl.com/6v3f6b
Cartão de visita OBRIGADO!!!! Perguntas? Ramon Durães http://www.ramonduraes.net Aprenda mais em : http://www.desenvolvendoparaweb.net Preparando o ambiente: http://tinyurl.com/6v3f6b

More Related Content

PPT
Ruby & Python with Silverlight O RLY? YA RLY!
PPTX
Monkey Conf 2020: Xamarin Community Toolkit: More possibilities with Xamarin....
ODP
Working With Canvas
PPTX
Essential html tweaks for accessible themes
PPTX
JavaScript Presentation Frameworks and Libraries
KEY
Mobile HTML, CSS, and JavaScript
PDF
lecture5
PDF
TDC2013: Arquitetura de apps com Sencha Touch 2
Ruby & Python with Silverlight O RLY? YA RLY!
Monkey Conf 2020: Xamarin Community Toolkit: More possibilities with Xamarin....
Working With Canvas
Essential html tweaks for accessible themes
JavaScript Presentation Frameworks and Libraries
Mobile HTML, CSS, and JavaScript
lecture5
TDC2013: Arquitetura de apps com Sencha Touch 2

What's hot (17)

PDF
HTML 5 - Overview
PDF
HTML5 and CSS3 Shizzle
PDF
Death of a Themer
PPS
WPF (Windows Presentation Foundation Unit 01)
PDF
What Web Developers Need to Know to Develop Windows 8 Apps
PPTX
Presentation1
PPTX
JavaScript DOM - Dynamic interactive Code
PPTX
Using Components to Build Native-Quality HTML5 Apps
PDF
I Can't Believe It's Not Flash
PPTX
Monster JavaScript Course - 50+ projects and applications
PPTX
Building Rich Internet Applications with HTML5 and WebGL
PPT
Sergey Ilinsky Presentation Ample Sdk
PPTX
WebGL For Game Development Spring 2013
PPT
POLITEKNIK MALAYSIA
PDF
High-Quality JavaScript
PDF
WPF L01-Layouts, Controls, Styles and Templates
PDF
WPF L02-Graphics, Binding and Animation
HTML 5 - Overview
HTML5 and CSS3 Shizzle
Death of a Themer
WPF (Windows Presentation Foundation Unit 01)
What Web Developers Need to Know to Develop Windows 8 Apps
Presentation1
JavaScript DOM - Dynamic interactive Code
Using Components to Build Native-Quality HTML5 Apps
I Can't Believe It's Not Flash
Monster JavaScript Course - 50+ projects and applications
Building Rich Internet Applications with HTML5 and WebGL
Sergey Ilinsky Presentation Ample Sdk
WebGL For Game Development Spring 2013
POLITEKNIK MALAYSIA
High-Quality JavaScript
WPF L01-Layouts, Controls, Styles and Templates
WPF L02-Graphics, Binding and Animation
Ad

Similar to Introdução ao Microsoft Silverlight 2.0 - Campus Party Brasil 2009 (20)

PPTX
DODN2009 - Jump Start Silverlight
PPT
Presentation wpf
PPT
Developing Applications for WebOS
PPT
Silverlight Training
PPT
Web II - 01 - Introduction to server-side development
PPT
PPTX
Html5 - Novas Tags na Prática!
PPT
Atlas Php
PDF
Speak the Web 15.02.2010
PDF
Web Development for UX Designers
PPTX
Building a Twitter App with Silverlight 3 - Part 1
PPTX
PPTX
HTML5 - Future of Web
PDF
Plunge into HTML5 Canvas – Let’s begin
PPT
JavaScript UI Architecture: Be all that you can be
PDF
Bd conf sencha touch workshop
PPT
Flex In Portal Final
PPTX
2008 - TechDays PT: Building Software + Services with Volta
PDF
Cape Cod Web Technology Meetup - 2
PDF
30 Tools for Modern .NET Web Development in 60 Minutes (Jonathan Tower)
DODN2009 - Jump Start Silverlight
Presentation wpf
Developing Applications for WebOS
Silverlight Training
Web II - 01 - Introduction to server-side development
Html5 - Novas Tags na Prática!
Atlas Php
Speak the Web 15.02.2010
Web Development for UX Designers
Building a Twitter App with Silverlight 3 - Part 1
HTML5 - Future of Web
Plunge into HTML5 Canvas – Let’s begin
JavaScript UI Architecture: Be all that you can be
Bd conf sencha touch workshop
Flex In Portal Final
2008 - TechDays PT: Building Software + Services with Volta
Cape Cod Web Technology Meetup - 2
30 Tools for Modern .NET Web Development in 60 Minutes (Jonathan Tower)
Ad

More from Ramon Durães (20)

PDF
O futuro do software
PDF
Microservices e o desenvolvimento cloud-native 10 anos depois
PDF
10 ANOS do VSSUMMIT
PDF
DevOps e a transformação digital de aplicações
PPTX
A nova jornada DevOps & SRE
PPTX
The new SaaS "Software as a strategy"
PPTX
O futuro do software
PPTX
Keynote Visual Studio Summit 2016
PPTX
Impacto do DevOps nos negócios
PPTX
Cloud ALM - Gestão moderna de aplicações
PPTX
Desafios da Microsoft no desenvolvimento Ágil de serviços - Regional scrum g...
PPTX
Os 10 erros mais comuns usando controle de versão - Ramon Durães
PPTX
Continous Quality Enabement
PPTX
Gestão ágil de projetos - ALM SUMMIT 2013
PPTX
Pitch Plataforma Mozit para investidores 2013
PPT
Como montar o seu ambiente de ALM Gratuito em apenas 15 minutos
PPTX
AGILE ALM usando SCRUM e Team Foundation Server 2010
PPTX
Campus Party Brasil 2011: Integrando SCRUM & TFS
PPT
Campus Party Brasil 2010 - Introdução ao ASP.NET 4.0
PPT
Campus Party Brasil 2010 - ALM - Application Lifecycle Management
O futuro do software
Microservices e o desenvolvimento cloud-native 10 anos depois
10 ANOS do VSSUMMIT
DevOps e a transformação digital de aplicações
A nova jornada DevOps & SRE
The new SaaS "Software as a strategy"
O futuro do software
Keynote Visual Studio Summit 2016
Impacto do DevOps nos negócios
Cloud ALM - Gestão moderna de aplicações
Desafios da Microsoft no desenvolvimento Ágil de serviços - Regional scrum g...
Os 10 erros mais comuns usando controle de versão - Ramon Durães
Continous Quality Enabement
Gestão ágil de projetos - ALM SUMMIT 2013
Pitch Plataforma Mozit para investidores 2013
Como montar o seu ambiente de ALM Gratuito em apenas 15 minutos
AGILE ALM usando SCRUM e Team Foundation Server 2010
Campus Party Brasil 2011: Integrando SCRUM & TFS
Campus Party Brasil 2010 - Introdução ao ASP.NET 4.0
Campus Party Brasil 2010 - ALM - Application Lifecycle Management

Recently uploaded (20)

PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Tartificialntelligence_presentation.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Encapsulation theory and applications.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Getting Started with Data Integration: FME Form 101
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Big Data Technologies - Introduction.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Empathic Computing: Creating Shared Understanding
Diabetes mellitus diagnosis method based random forest with bat algorithm
A comparative analysis of optical character recognition models for extracting...
Tartificialntelligence_presentation.pptx
Spectral efficient network and resource selection model in 5G networks
20250228 LYD VKU AI Blended-Learning.pptx
Encapsulation_ Review paper, used for researhc scholars
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
SOPHOS-XG Firewall Administrator PPT.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Per capita expenditure prediction using model stacking based on satellite ima...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Encapsulation theory and applications.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Dropbox Q2 2025 Financial Results & Investor Presentation
Getting Started with Data Integration: FME Form 101
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Big Data Technologies - Introduction.pptx
MYSQL Presentation for SQL database connectivity
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Empathic Computing: Creating Shared Understanding

Introdução ao Microsoft Silverlight 2.0 - Campus Party Brasil 2009

  • 1. Introdução ao Silverlight 2.0 Ramon Durães MVP, Especialista em Visual Studio Team System http://www.ramonduraes.net Preparando o ambiente: http://tinyurl.com/6v3f6b
  • 2. O que é o Silverlight ? Microsoft Silverlight é uma implementação cross browser, cross-platform do .NET destinada a construção e distribuição da próxima geração de mídia e aplicações ricas para a Web.
  • 4. Demo d= new Demo(); “ Video”, “Negócios”, “Games”,”ZOOM ;”
  • 5. Rich Interactive Applications (RIA) Video Aplicações de negócio Publicidade Aplicações moveis Games Search engine optimization (SEO)
  • 6. Instalando i= new Instalando() ; “ Plugin”; *Windows Update / Windows Live Tools*
  • 8. Colaboração Designer-Developer Designers-Interface com Usuário Atravéz do XAML designers e desenvolvedores podem ter extrema colaboração Desenvovedor-Lógica de Negócios
  • 9. XAML (Extensive Application Markup Language) &quot; Z ammel” Padrão baseado no XML. Separação de código e conteúdo. UI / DataBind / Event / Objects. Storyboard, Rotations / Animations, Effects. <Button Width=&quot;100&quot;> OK <Button.Background> LightBlue </Button.Background> </Button> XAML Button b1 = new Button(); b1.Content = &quot;OK&quot;; b1.Background = new SolidColorBrush(Colors.LightBlue); b1.Width = 100; C# Dim b1 As New Button b1.Content = &quot;OK&quot; b1.Background = New _ SolidColorBrush(Colors.LightBlue) b1.Width = 100 VB.NET
  • 10. XAML “ Z ammel” < Canvas Width=&quot;300&quot; Height=&quot;300&quot; xmlns=&quot;http://schemas.microsoft.com/client/2007&quot; xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;> < Ellipse Canvas.Left=&quot;20&quot; Canvas.Top=&quot;20&quot; Height=&quot;200&quot; Width=&quot;200&quot; Stroke=&quot;Black&quot; StrokeThickness=&quot;10&quot; Fill=&quot;Yellow&quot; /> < Ellipse Canvas.Left=&quot;80&quot; Canvas.Top=&quot;80&quot; Height=&quot;35&quot; Width=&quot;25&quot; Stroke=&quot;Black&quot; Fill=&quot;Black&quot; /> < Ellipse Canvas.Left=&quot;140&quot; Canvas.Top=&quot;80&quot; Height=&quot;35&quot; Width=&quot;25&quot; Stroke=&quot;Black&quot; Fill=&quot;Black&quot; /> < Path Data=&quot;M 70, 150 A 60, 60 0 0 0 170, 150&quot; Stroke=&quot;Black&quot; StrokeThickness=&quot;15&quot; StrokeStartLineCap=&quot;Round&quot; StrokeEndLineCap=&quot;Round&quot; /> </ Canvas>
  • 11. Colocando um ID nos objetos XAML Atributo x:Name muito similar ao identificador do ASP.NET < Rectangle Canvas.Left=&quot;50&quot; Canvas.Top=&quot;50&quot; Fill=&quot;Yellow“ Width=&quot;300&quot; Height=&quot;200&quot; Stroke=&quot;Black&quot; StrokeThickness=&quot;10&quot; x:Name=“ MeuRetangulo &quot; /> Esse objeto agora pode ser referenciando no código fonte (VB.NET / C#).
  • 12. Demo d= new Demo() “ XAML” , “Hello World”
  • 13. Controlando o Layout Definindo o posicionamento dos objetos Canvas - Posicionamento absoluto em uma linha / coluna(Canvas.Left and Canvas.Top) StackPanel - Posicionamento em uma linha ou coluna(StackPanel.Orientation) Grid – Posicionamento usando linhas e colunas. GridSplitter – Permite o redimensionamento de linhas e colunas.
  • 14. Canvas <Canvas Width=&quot;300&quot; Height=&quot;560&quot; xmlns=&quot;... xmlns:x=&quot;...&quot;> <Canvas Canvas.Left=&quot;40&quot; Canvas.Top=&quot;40&quot; Width=&quot;220&quot; Height=&quot;220&quot;> <Ellipse Canvas.Left=&quot;40&quot; Canvas.Top=&quot;40&quot; Height=&quot;140&quot; Width=&quot;140&quot; /> </Canvas> <Canvas Canvas.Left=&quot;40&quot; Canvas.Top=&quot;300&quot; Width=&quot;220&quot; Height=&quot;220&quot;> <Ellipse Canvas.Left=&quot;40&quot; Canvas.Top=&quot;40&quot; Height=&quot;140&quot; Width=&quot;140&quot; /> </Canvas> </Canvas> (40,40) (0,0) (40,300) (80,80) (80,340)
  • 15. StackPanel <StackPanel Orientation=&quot;Horizontal|Vertical&quot;> <Rectangle Width=&quot;100&quot; Height=&quot;60&quot; Fill=&quot;Red&quot; Margin=&quot;10&quot; /> <Rectangle Width=&quot;100&quot; Height=&quot;60&quot; Fill=&quot;Green&quot; Margin=&quot;10&quot; /> <Rectangle Width=&quot;100&quot; Height=&quot;60&quot; Fill=&quot;Blue&quot; Margin=&quot;10&quot; /> <Rectangle Width=&quot;100&quot; Height=&quot;60&quot; Fill=&quot;Yellow&quot; Margin=&quot;10&quot; /> </StackPanel> Orientation=&quot;Horizontal&quot; Orientation=&quot;Vertical&quot;
  • 16. Suporte Shapes (Rectangle,Ellipse,Polygon,Line,PolyLine,Path) Brush (LinearGradientBrush, RadialGradientBrush) Text Fonts (Embarcadas juntos com o XAP) Images (Stretch=None|Fill|Uniform|UniformToFill) MediaElement (Audio / Video)
  • 17. Silverlight é um “micro” .NET Framework
  • 18. Silverlight e .NET: Juntos Alta produtividade no desenvolvimento Suporte a várias linguagens (C#; VB.NET …) Language integrated Query (LINQ) Integração com JavaSCript / HTML / DOM / AJAX / ASP.NET / JSON / WCF / Web Services / Asynchronous Support . Otimas ferramentas Visual Studio Expression Studio Cross-platform & cross-browser plugin Funciona Chorme ,Safari, Firefox e Internet Explorer Mac OS, Windows e Linux Funciona em qualquer servidor Web Instalação rápida e fácil do plugin Básico Qualquer editor de texto Qualquer servidor Web
  • 19. Ferramentas para usar com XAML BLEND KAXAML ECLIPSE
  • 20. Core UI Capabilities Vector Based Graphics 2D graphics Primitives (ellipse, rectangle, path etc) Composition engine Transforms Brushes Text Ink Animation system Media Video Audio
  • 21. Access the HTML DOM from Managed Code HTML access available in new namespace HtmlPage.Navigate(&quot; http://www.microsoft.com &quot;); String server = HtmlPage.DocumentUri.Host; using System.Windows.Browser; HtmlElement myButton = HtmlPage.Document.GetElementByID(&quot; myButtonID &quot;); myButton.AttachEvent(&quot; onclick &quot;, new EventHandler( this .myButtonClicked)); private void myButtonClicked( object sender, EventArgs e) { ... } Static HtmlPage class provides entry point Hookup events, call methods, or access properties
  • 22. Access Managed Code from JavaScript Mark a property, method or event as [Scriptable] WebApplication.Current.RegisterScriptableObject (&quot; EntryPoint &quot;, this ); [Scriptable] public void Search( string Name) { ... } var control = document.getElementById(&quot; SilverlightControl &quot;); control.Content.EntryPoint.Search(input.value); Register a scriptable object Access the managed object from script
  • 24. InkPresenter Usando tinta para escrever
  • 25. InkPresenter i= new InkPresenter () “ Mouse””
  • 26. Silverlight Toolkit Conjunto de novos controles disponíveis com código fonte para ampliar mais ainda o poder do Silverlight Preparando o ambiente: http://tinyurl.com/6v3f6b
  • 27. Cartão de visita OBRIGADO!!!! Perguntas? Ramon Durães http://www.ramonduraes.net Aprenda mais em : http://www.desenvolvendoparaweb.net Preparando o ambiente: http://tinyurl.com/6v3f6b