silverlight 4 - community tour (rtm)
TRANSCRIPT
![Page 1: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/1.jpg)
Silverlight 4.0Technology overview
Andrea BoschinMost Valuable Professional - Silverlight
![Page 2: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/2.jpg)
Timeline Silverlight
1.0 2.0 3.0 4.0
Settem
bre
2007 Ottob
re 2
008
Lugl
io 2
009
Ogg
i
• X-Browser• X-Platform• XAML• Javascript
•Managed Code• C# / VB.NET• Styles• DataBinding•WCF• Controls•Multimedia• Visual State Manager
• Out of browser•Writable Bitmap• Client HTTP Stack• Enhanced Controls• Pixel Shaders• Plane Projections• Easing Functions• Bitmap Effects• Lifetime Objects• Local Connections
+ Silverlight 1.1 Alpha
![Page 3: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/3.jpg)
Silverlight 4.0
o Business Applicationo Multi Mediao Beyond the Browser
SL4
• Drag & Drop• Right Click• Notification Window• Printing• DataBinding DO• INotifyDataErrorInfo• RichTextEditor•Webcam & Mic•WebBrowser• HTML Brush• OOB Full Trust• UDP Multicast• Chromeless• Relaxed security• ...
![Page 4: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/4.jpg)
Silverlight 4.0 – Random Notes
o Miglioramento compatibilità WPFo Binary compatibility SL4 / .NETo WCF Ria Serviceso Silverlight Toolkit 4.0o Visual Studio 2010 Designer now
works!
SL4
![Page 5: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/5.jpg)
Business Applications
![Page 6: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/6.jpg)
Drag & Drop
Ogni elemento del Visual Tree può essere configurato come Drop Target.
o AllowDrop = "true"o Imposta un elemento come DropTarget
o Eventi Drag & Drop (in, out, drop)o Gli eventi consentono di gestire il Drag & Drop
o IDataObject o Fornisce dettagli sull’oggetto del Drop
![Page 7: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/7.jpg)
Right Click
E’ consentito gestire anche il tasto destro del mouse e nascondere il menù di contesto di default
o Ogni elemento può gestire il Right-Click separatamente
o Si usano gli eventi MouseRightButtonUp & MouseRightButtonDown
o E.Handled = true impedisce la visualizzazione del menù di default
![Page 8: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/8.jpg)
Notification Window
Permette di avere notifiche sul desktop
o Funziona solo in modalità Out Of Browsero Le notifiche possono essere solo rettangolario Nessun effetto applicabileo Si imposta esclusivamente la durata
Notification
• Silverlight 4.0 RTM shipped!
![Page 9: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/9.jpg)
Printo Stampa di un elemento del VisualTreeo L’elemento può anche essere nascostoo Solo stampa Bitmap based
o Nella RTM è possibile conoscere le dimensioni dell'area di stampa scelta dall'utente
Note: se dovete fare stampe complesse create uno UserControl con Blend
![Page 10: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/10.jpg)
Databinding
o Sempre più vicino a WPF
o Ora si possono bindare anche DependencyObject
o Nuovi parametri della BindingExpressiono StringFormat : formato da usareo TargetNullValue : valore da sostituire a nullo FallbackValue : valore se la proprietà non
esiste
![Page 11: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/11.jpg)
Databinding - Validazione
Nuove interfacce per la validazione
o IDataErrorInfo esiste soprattutto per compatibilità
o INotifyDataErrorInfo permette la validazione asincrona
![Page 12: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/12.jpg)
RichTextBoxo Editor di contenuti Richo Popolato con elementi XAMLo Supporta un set ridotto di tagso Supporta RTL (FlowDirection)o Supporta Arabo e Ebraicoo Fornisce il risultato sotto forma di XAML
o Nella RTM è possibile leggere il contenuto mediante la proprietà XAML, anche nelle selezioni.
Controo Nessun altro formato (HTML, RTF)
![Page 13: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/13.jpg)
Multimedia
![Page 14: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/14.jpg)
Webcam & Mic
o Webcam & Mic
o CaptureSource consente di catturare contenuti live da Webcam e da Microfono.
o I contenuti possono essere facilmente «proiettati»o Si possono «scattare» istantanee dalla webcamo Si possono individuare le periferiche connesseo E’ necessario chiedere conferma all’utente.
![Page 15: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/15.jpg)
Web Browser – HTML Brush
o WebBrowser
o Solo in OOBo Accesso al dominio di origine se non in full-trusto Uso di <iframe> per domini esternio Non supporta Trasformazioni e Proiezioni
o WebBrowserBrusho Permette di trasformare una pagina in un brusho Consente le trasformazioni
![Page 16: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/16.jpg)
UDP Multicast
Supporto per il protocollo UDP in scenari di conference
o UDP Multicast usa l’infrastruttura di rete per distribuire i pacchetti ai client connessi
o Modalità "Any Source" e "Single Source"
o Richiede un server di policy
Controo I firewall normalmente "tagliano" questo protocollo.
![Page 17: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/17.jpg)
Oltre il browser
![Page 18: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/18.jpg)
New in Out of browsero Possibilità di
specificare la posizione della finestra
o Gestione del menù di installazione
o Modalità FullTrust
o Supporto a Chromeless Windows in OOB
![Page 19: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/19.jpg)
Custom Chrome
o Piena customizzazione della chrome
o Supporto ad angoli smussati
o API per il drag & resize semplicissime
![Page 20: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/20.jpg)
Full trust
Sì può richiedere il full-trust per le applicazioni Out of Browser al momento dell’installazione
o Cross Domain senza file di policyo Pieno accesso a Open/SaveFileDialog a API di manipolazione dei
File o Il fullscreen e Open/SaveFileDialogs non richiedono user-initiationo Uso della tastiera in full-screen o Accesso a My Documentso Accesso a COM interop (Windows only) o Sockets non limitati a un range ristretto di porte
![Page 21: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/21.jpg)
Che altro?o Implicit Styles
o Possibile creare temi che si applicano a tutti i controlli dello stesso tipo
o Navigation loadero Classe che consente di controllare la navigazione con maggiore dettaglio
o ICommand o Apertura a MVVM con il supporto di Command e CommandParameter (solo su
Button)
o Accesso alla Clipboardo API per impostare e leggere dalla Clipboard
o Mouse Wheel for "Scrollable"o ScrollViewer, ListBox, etc. Supportanto automaticamente la Wheel
o Client HTTP Stack o Supporto autenticazione Membership
o Signed XAPo Supporto alla firma dei file XAP
![Page 22: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/22.jpg)
Andrea Boschin
Blog: http://blog.boschin.it
Email: [email protected]
Site: http://www.silverlightplayground.org
Twitter: http://twitter.com/aboschin
Gamertag: codeblock68
![Page 23: Silverlight 4 - Community Tour (RTM)](https://reader036.vdocuments.us/reader036/viewer/2022062707/55856827d8b42ab5228b4e9b/html5/thumbnails/23.jpg)
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Visual Studio, the Visual Studio logo, and [list other trademarks referenced] are trademarks of the Microsoft group of companies.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond
to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.
MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED, OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.