What’s New for Presentation in Visual Studio 2008 SP 1? Mike Ormond Developer & Platform Group Microsoft Ltd [email protected] http://mikeo.co.uk.

Download Report

Transcript What’s New for Presentation in Visual Studio 2008 SP 1? Mike Ormond Developer & Platform Group Microsoft Ltd [email protected] http://mikeo.co.uk.

What’s New for Presentation
in Visual Studio 2008 SP 1?
Mike Ormond
Developer & Platform Group
Microsoft Ltd
[email protected]
http://mikeo.co.uk
1
Agenda
ASP.NET
• Silverlight Controls
• AJAX Enhancements
• Routing
• Dynamic Data
Windows Presentation Foundation
• Performance
• Application Model & Controls
• Effects and Direct 3D
• Deployment - .NET Client Profile
ASP.NET and Silverlight Controls
<asp:Silverlight> control
Hides the raw <OBJECT> tag needed for Silverlight
Handles both Silverlight V1 and V2
<asp:MediaPlayer> control
Generates a full Silverlight media player
Player defined in a templated XAML file
Templates also used in Expression Encoder 2
Driven by JavaScript embedded into the control
Support for CC, markers, chapters, thumbnails etc
Silverlight Controls
4
ASP.NET and “AJAX”
AJAX History Support
Provides a way of marking and restoring navigation
points in an AJAX application
AJAX Script Combining
<CompositeScript/> element
JavaScript
Formatting options in the IDE
Better Intellisense support for 3rd Party libraries
Eg JQuery, Prototype, Scriptaculous, ExtJS
AJAX and JavaScript
6
ASP.NET Routing
ASP.NET Webforms
ASP.NET Routing
System.Web.Routing
UrlRoutingModule
RouteTable
RouteHandler
IHttphandler
ASP.NET Routing
10
ASP.NET Dynamic Data
“Scaffolding” framework for “instant” ASP.NET
applications
Define Data Model
(currently LINQ to SQL/Entities)
Plug-In to Dynamic Data Framework
Working Website Ready to Customise
Routing
Pages
Item Display
Validation
ASP.NET Dynamic Data
12
Agenda
ASP.NET
• Silverlight Controls
• AJAX Enhancements
• Routing
• Dynamic Data
Windows Presentation Foundation
• Performance
• Application Model & Controls
• Effects and Direct 3D
• Deployment - .NET Client Profile
Performance Enhancements
Cold start-up time of WPF applications
Working-set of WPF applications
Various controls within WPF
Deferred scrolling
Recycling containers in ItemsControl
Virtualising the TreeView control
Other areas
Text Rendering
Better XBAP Startup/Download
ListView and TreeView
15
Effects & Direct3D Interop
Bitmap effects moved to hardware rendering
BlurBitmapEffect
DropShadowBitmapEffect
Deprecating other ( software ) effects
Bevel, Emboss, OuterGlow
Direct3D Interoperability class
D3DImage is an ImageSource
Allows for a D3D scene to be used anywhere an
Image or ImageBrush would be used
Beyond previous HWND-level interop which hits
“AirSpace” issues
Pixel Shader Effects
New, extensible Pixel Shader effects
Easier to use than to write
Can expose DependencyProperties for binding
Written in High Level Shader Language
Compile with DirectX SDK, embed in assembly
Link with WPF code via ShaderEffect base class
Supports multi-input shaders for transitions
Effects, Shaders & Direct3D
18
Application Model & Controls
Splash Screen – simple addition
WebBrowser control
Similar to what we see in Windows Forms
Load HTML from streams or strings
Call JavaScript functions from WPF
Call WPF functions from JavaScript
More controls coming post-Sp1
DataGrid and Ribbon
Early versions on CodePlex in the WPF Toolkit
WebBrowser, SplashScreen,
DataGrid
20
.NET Client Profile
Trimmed .NET Framework 3.5 Sp 1 for Clients
Customisable installation process
Online bootstrapper ( ~270KB )
Offline installer ( ~ 250MB )
Works with XBAP, ClickOnce, Setup.exe
No
Install ~28MB Client Profile
Target
has
.NET?
Yes
Install 3.5 Sp1
No Reboot
Reboot
Admin Required
Admin Required
Schedule 3.5 Sp1 Install
.NET Client Profile
Subset of .NET Framework V3.5 Sp1
Not technologies like ASP.NET, Workflow
Visual Studio 2008 Service Pack 1
Offers Client Profile as a target platform
Warns on use of non Client Profile assemblies
Marks Client Profile application configuration files
Adds Client Profile distribution to Publish and Setup
projects
NB: Applications without a “sku=Client” config
file do not run on the Client Profile
.NET Client Profile
23
Resources
www.asp.net
www.windowsclient.net
© 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.