240 likes | 339 Views
What’s New for Presentation in Visual Studio 2008 SP 1?. Mike Ormond Developer & Platform Group Microsoft Ltd Mike.Ormond@microsoft.com http://mikeo.co.uk. Agenda. ASP.NET and Silverlight Controls. < asp:Silverlight > control Hides the raw <OBJECT> tag needed for Silverlight
E N D
What’s New for PresentationinVisual Studio 2008 SP 1? Mike Ormond Developer & Platform Group Microsoft Ltd Mike.Ormond@microsoft.com http://mikeo.co.uk
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 demo
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 • EgJQuery, Prototype, Scriptaculous, ExtJS
AJAX and JavaScript demo
ASP.NET Routing default.aspx search.aspx?q=a default.aspx
ASP.NET Routing http://../default.aspx search.aspx?q=a default.aspx
ASP.NET Routing demo
ASP.NET Dynamic Data • “Scaffolding” framework for “instant” ASP.NET applications Routing Pages Item Display Validation
ASP.NET Dynamic Data demo
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
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
Application Model & Controls • Splash Screen – simple addition • WebBrowsercontrol • 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 • DataGridand Ribbon • Early versions on CodePlex in the WPF Toolkit
.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 Target has .NET? No Yes Install ~28MB Client Profile 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 demo
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.