Top Banner
Silverlight 2 Ronnie Saurenmann Principal Architect Microsoft Switzerland
36

Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Dec 21, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Silverlight 2

Ronnie SaurenmannPrincipal ArchitectMicrosoft Switzerland

Page 2: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Silverlight 2

“WPF/.NET for the WEB”4 MB, <1 Minute installOS

Win (2000, XP, Vista) Mac OS-X Linux (Moonlight)

IE, Firefox and Safari

Page 3: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Silverlight Roadmap

Silverlight V2March 5th Beta 1 (non-commercial go-live)Q208: Beta 2 (go live)

ToolsExpression Blend and Visual Studio updates for all public Silverlight releasesVisual Studio Designer support (Cider) later this year

Page 4: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Hardrockcafe

demo

Page 5: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Layout

Subset of WPFLayout containers

Canvas, Grid, StackPanel, BorderLayout properties

Width, MinWidth, MaxWidth, ActualWidthHeight, MinHeight, MaxHeight, ActualHeightMargin and Padding

Layout extensibility

Page 6: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Layout

demo

Page 9: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

WebClient

demo

Page 10: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

XML processing

Convert XML data to .NET objectsOptions:

LINQ to XML XMLReaderXML Serialization

Page 11: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Beta 1 Controls

Page 12: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Beta 1 Controls

CanvasFileOpenDialogGridImageItemsControlMediaElementMultiScaleImageStackPanelTextBoxTextBlockButtonPopup

CheckBox*DataGrid*DateTimePicker*GridSplitter*Hyperlink*ListBox*Calendar*RadioButton*Slider*ToggleButton*Tooltip*WatermarkTextBox*

* ship in a separate libraryNote: additional controls to follow between Beta 1 and final

release

Page 13: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Data Binding

Property BindingOne way, two way and one timeUse “DataContext” propertySupports value converters

Collection/List BindingSupport data templates (repeater)Use “ItemsSource” property

Page 14: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

LINQ to XML & DataGrid

demo

Page 15: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Style / Template

Customize the look of an application without changing it’s behavior3 levels of customization:

Page 16: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Style / Template

Customize the look of an application without changing it’s behavior3 levels of customization: default

Page 17: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Style / Template

Customize the look of an application without changing it’s behavior3 levels of customization: style

Page 18: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Style / Template

Customize the look of an application without changing it’s behavior3 levels of customization: template

Page 19: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

List Binding with Data Templates

Data Template:

Page 20: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Template Data Bindings & Finish up

demo

Page 21: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

UserControl

ScenarioFixed look with some logicSplit large page into smaller chunksReuse xaml/logic in multiple places

Platform Support<UserControl x:Class=“MyControl”> … </>public partial class MyControl : UserControl {}XAML is optional

Page 22: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

UserControl with Blend

demo

Page 23: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Open File Dialog

Allows an end-user to choose a fileApplication gets access to a streamSupports multi-selection and file extension filteringEnables:

File uploading (w/ HttpWebRequest)Viewing local images (w/ Image element)Playing local media (w/ MediaElement)

Page 25: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Multi file upload

demo

Page 26: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

HTML DOM Integration

Silverlight apps are browser appsInteracting with the browser host is critical

Interact with HTML elements and script objects through .NET codeExpose .NET objects to javascript

Page 27: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Browser History & Keyboard navigation

demo

Page 28: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

How can you live without

Start using WPF & Silverlight todayYou will not regret it

www.silverlight.net

Page 29: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Silverlight Mobile

V1 announced last week (no .NET)CTP available shortlyRuns on Windows Mobile and Symbian!

V2 (with .NET) coming next year

Page 30: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Image Deep Zoom

Provides seamless viewing & zooming of huge imagesLoads only the data necessary to show the part of an image the user is viewingEffectively turns a large image into an efficiently scaling vector

Page 31: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Image Deep Zoom

Preprocessing tool breaks image into 256 x 256 tilesThen generates pyramids of tiles at lower resolutions

Page 32: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Deep Zoom – How does it work?

When the image is displayed on the client the lowest resolution tiles are shown firstThen as the higher quality tiles are downloaded, they are smoothly blended in

Page 33: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Deep Zoom – How does it work?

When the image is displayed on the client the lowest resolution tiles are shown firstThen as the higher quality tiles are downloaded, they are smoothly blended in

Page 34: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Deep Zoom – How does it work?

When the image is displayed on the client the lowest resolution tiles are shown firstThen as the higher quality tiles are downloaded, they are smoothly blended in

Page 35: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

Image Deep Zoom

Exposed through the MultiScaleImagePreprocessing tool outputs image tiles and XML description file

Page 36: Ronnie Saurenmann Principal Architect Microsoft Switzerland.

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

The information herein is for informational purposes only and represents the current view 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.