Академический Документы
Профессиональный Документы
Культура Документы
3/12/13
About myself...
Gill Cleeren .NET Architect @Ordina (www.ordina.be) Microsoft Regional Director Silverlight MVP Speaker (TechDays, TechEd, DevReach, DevDays, NDC Norway, Telerik Usergroup tour Sweden, UK and Scotland...) Visug user group lead (www.visug.be) Author (Silverlight 4 Data and services cookbook)
3/12/13
3/12/13
3/12/13
Updated for Silverlight 5 Over 115 recipes (thats 30 extra!) Extended to about 700 pages (thats 250 extra!) Covering WP7, http://bit.ly/SL5DataAnd Services MVVM, RIA Services 3/12/13 and much more!
This may look like the typical Introduction to Silverlight for developers or something...
3/12/13
But its really all about transferring your current knowledge to Windows 8.
3/12/13
General XAML stuff for Windows 8 Old and new controls Finding your way with navigation
3/12/13
3/12/13
Focus on...
Metro style Apps
XAML C C++
Communication & Data
Desktop Apps
HTML
JavaScrip t
WinRT APIs
Graphics & Media Application Model
Session Focus
Internet Explorer
C C++
C# VB
Win32
.NET / SL
3/12/13
For every Metro topic you already know, you get a badge!
3/12/13
The user is free to select any device, Windows 8 will support it. Your app needs to adapt to bring the best possible experience.
3/12/13
Minimum app resolution is 1024x768 Baseline resolution is 1366x768 On any resolution, your app should still look good
3/12/13
3/12/13
<Grid x:Name="LayoutRoot" Background="Green"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> <ColumnDefinition Width="3*" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Rectangle Fill="Red" Grid.Column="1" /> </Grid>
Windows 8 supports new and changing formats for apps: an app can be snapped while running.
3/12/13
The Snapped app is always 320px wide User can choose to snap your app
Some apps dont make sense in snapped view, pausing them might be a good idea
flow of context
3/12/13
3/12/13
3/12/13
3/12/13
FullScreen
3/12/13
Snapped
Filled
3/12/13
And the user will rotate that device... He will (we all know that...). What will (or should we say Should?) your app do?
3/12/13
Apps behave consistently in orientation changes Apps can be tailored to be in specific orientations Apps can prefer and/or lock an 3/12/13
3/12/13
3/12/13
Resize
Layout
Orientation
3/12/13
3/12/13
VisualStateManager
3/12/13
VisualStateManager.GoToState()
DEMO
Controls
Same control model supported in Silverlight, WP7 and WPF Same properties (mostly) Animations, Visual State Manager (VSM) and Parts model
Content and item controls still exist, new 3/12/13 ones have been added
3/12/13
Butt on Checkb ox Hyperli nk Context Menu Web View Radio Button Combo Box
Grid View
Text Box
Spell Check
Progress Ring
List View
Semantic Zoom
Passwor d Navigati on
Flip View
List Box
Panning Indicator Too ltip Sli der Scroll Bar Progress Bar
Toggle Switch
3/12/13
DEMO
3/12/13
3/12/13
3/12/13
DEMO
And then there were collections... Collections are everywhere, also in Windows 8...
3/12/13
3/12/13
New XAML list controls that work almost identically to old ones have been added in Windows 8.
3/12/13
ListView GridView
Supports grouping
Single
3/12/13
ListView
Like a ListBox, but optimized for Windows 8 Supports virtualization Often handy in snapped view
3/12/13
Interaction model
3/12/13
DEMO
GridView
Allows creation of grid-based layouts Supports grouping of items (next slide) Has WrapGrid or VariableSizedWrapGrid
3/12/13
Needs to be done by the developer, control doesnt know on what it should group
3/12/13
DEMO
Semantic zoom
<JumpViewer> <JumpViewer.ContentView> ... //some xaml here ... </JumpViewer.ContentView> <JumpViewer.JumpView> ... //some more xaml here ... </JumpViewer.JumpView> </JumpViewer>
3/12/13
DEMO
Semantic zoom
3/12/13
Frame
Top-level container control Contains the page control Fills the entire content region of the frame Can navigate to other pages within frame Pages can share data...(!!!)
Page
3/12/13
Windows.UI.Xaml.Navigation
Frame
3/12/13
Page control represents discrete sections of content Share objects/data between your pages
3/12/13
Frame Page 1 2 3
This is new!
Page defines caching behavior on NavigationCacheMode Frame controls navigating history stack
3/12/13
Transitions
Integrate Windows 8 look and feel for transitions Frame supports content transitions
EntranceThemeTransition
3/12/13
DEMO
The Navigator
3/12/13
Summary
Look what you already know!
3/12/13
Q&A
3/12/13
Thanks!
3/12/13
3/12/13