Upload
gordon-jackson
View
224
Download
1
Tags:
Embed Size (px)
Citation preview
What’s New in Visual Studio 2005 for Devices
Sean Puffett Developer & Platform [email protected]
The slides for this eventwill be posted at:
www.microsoft.com/uk/msdn/postevents
Agenda
Show me the ‘shiny’!
Visual Studio 2005 for Devices
.NET Compact Framework Where are we todayNew features in Version 2.0
Summary
Pocket PC SmartphoneSmartphone Portable Media Portable Media CenterCenter
Windows Mobile Products
Data-centric device
Touch screen and stylus
Integrated QWERTY
Applications Platform
Phone-centric device
One handed navigation
Keypad and joystick
Applications Platform
Media-centric device
Optimized media UIbased on MCE
Music, pictures, recorded TV
Dedicated Platform
Show me the ‘shiny’!
Sample fillcolor
Sample fillcolor
Sagem My-S7 Sierra Voq MDA III/XDA IIs Motorola MPX Symbol MC50 Garmin
HP Ipaq 63xxHTC TyphoonMPX 220T Mobile SDA
VS2005 Device Initiatives
VS2005 Device Initiatives
Extend the feature set, leveraging desktop features
Integrating Managed and Native development in same tool
Integrate with the Desktop code-base
Leveraging Desktop Features
NativeATL and MFC Class Libs and WizardsV8.0 CompilersResource EditorProject Properties and Settings
ManagedDesigner WYSIWYG
Forms
User/Custom Controls
Data
Partial ClassesInherited Forms
BothVS Project System, MSI and CAB projects
Native Development
Native C++ for Devices feature will include:Application and Class WizardsSDK integrationResource EditorRemote deployment/debuggingNative frameworks (MFC / ATL)EmulatorHelp
My first My first Native AppNative App
Managed DevelopmentLanguages: C#, VB .NETManaged/Native Projects in one solutionIntegrated Smartphone supportWYSIWYG Forms Designer
Catch inherited but unsupported properties, methods and eventsSupport for custom controls and inherited forms
More accurate IntelliSenseData Designer
SQL Mobile Data-Management ToolsNew EmulatorCAB and Setup ProjectsRemote Tools
Registry, process viewer, file viewer, heap walker, etc…
Emulator Features
ARM CPU instruction set
ActiveSync support
Shared Folder support
Four COM ports
Portrait and landscape orientation support
Data FeaturesTools for SQL Server and SQL Server CE
Database/Schema Creation
Table Editor
Data Connection
Data Source DatabaseBusiness ObjectWeb Service
Drag/Drop Data-bound controlsTablesFields
Master/Details Form
Parameterized Form
Data Form
CAB Project Features
CAB DesignerFile System Editor
Project Output
Content
Shortcuts
Registry
Custom Actions
One CAB format for Pocket PC and Smartphone
My first My first Managed AppManaged App
Compact Framework 2.0
.NET Compact Framework Today…
Service Pack 3 ImprovementsDownload it today from MSDNFocus on Stability: WM 2003 SEFrom SP 2:
~ 40% faster XML~ 20% faster ADO.NETForeColor and BackColor!!!
Developer AdoptionFourth most active .NET newsgroupDeveloper Focused Web sites like
http://www.OpenNetCF.orghttp://www.dotnetdn.com/http://www.pocketPCDN.com
http://msdn.microsoft.com/mobility/Information direct from product team members
http://blogs.msdn.com/windowsmobile
Compatibility And Performance.NET Compact Framework 2.0
Compatibility with full .NET FrameworkClassesInteroperability, Protocols
Compatibility with 1.0Side by sideApplication compatibility
Performance EnhancementsUnified JITImproved string handlingXmlTextReader and XmlTextWriter
.NETCF 1.0.NETCF 1.0(ROM)(ROM)
.NETCF 1.0.NETCF 1.0(ROM)(ROM)
.NETCF .NETCF 2.02.0
.NETCF .NETCF 2.02.0
Extensibility.NET Compact Framework 2.0
COM InteroperabilityRuntime Callable Wrappers (RCW) provide proxies for native COM objects
RCW support integrated into the Visual Studioshell
Enhanced Type MarshallingAdditional types – arrays, strings, structuresEmbedded arrays – structs with char[], array[]MarshalAs – type hinting
System.Windows.FormsControl.Handle – retrieve window handle
Language Support.NET Compact Framework 2.0
New language features make youmore productive
GenericsAnonymous methodsIteratorsPartial Types
Windows.Forms Controls
DateTimePicker
MonthCalendar
DocumentList
LinkLabel
Notification Bubble
Help
WebBrowser
DataContainer
UserControl
Clipboard support
Additional properties, methods, events by customer request including
Control.DoubleClick
ToolBarButton tooltips
More Treeview events
And more!
More Keyboard Support
Form.KeyPreview
TabIndex, TabStop
More Windows.Forms Features
HPHP43004300
Integrated Integrated keyboardskeyboards
Smartphone Features.NET Compact Framework 2.0
Data SupportSQL MobileDataGrid
Textbox IME switching
InputModeEditor
Enable multiple menu items on left softkey
Future Device
Orientations
Resolutions
Displays And Layout
.NET Compact Framework 1.0 Service Pack 2 (&3)Automatically provides scrolling Form contents for non-portrait displays
Form.Resize event
Automatically provides pixel doubling for high resolution
White paper on MSDN:Developing Screen Orientation-Aware Applications
Developing Orientation and dpi Aware Applications for the .NET Compact Framework
Displays And Layout.NET Compact Framework 2.0
Orientation SupportDocking and Anchoring
Tip – use panels to group controls
AutoScroll property – forms, panelsSuspend/Resume Layout methodsChangeOrientation method
Resolution SupportAutomatic scalingGraphics DpiX/DpiY
System.Drawing.NET Compact Framework 2.0
BitmapsBitmap.LockBits(…)Image.Save(…)
png, jpg, bmp, tif, gif
Bitmap Pattern Brushes
Create font from LOGFONT structure
Custom Pens
Rotated text Rotated text using LOGFONT using LOGFONT
Networking And Web ServicesSystem.MessagingWeb Services
Performance boost from faster XmlSerializer
Support for new standard: SOAP 1.2
Enhanced AuthenticationAdding Kerberos and NTLM
Automatically select most secure authentication method
IPv6
WebService service = new WebService();service.Credentials = new NetworkCredential(username, password, domain);
System.Xml And System.Data
System.XmlSerialization
live objects like application settingsSchemas
Validate XML against schema constraintsGenerate schemas on the fly programmatically
XPath 1.0
DataPowerful tools integrated into Visual Studio 2005
Data Designer
SQL Mobile (“SSCE 3.0” or “Laguna”)SqlCeResultSet (Updateable scrollable cursor)Storage Engine - Multi-User and Multi-Connection support
ADO.NETAdding features to match full .NET Framework
Class Libraries
Serial PortFour ports nowSupported in the emulator
Generic collections
CryptographyaZ#S- ghro @*rw --v<E[1~Encrypt System.Messaging messages, passwords
Control.Invoke.NET Compact Framework 1.0
.NET System.Windows.Forms requires use of Control.Invoke to marshal a delegate from a user thread back to the GUI thread
Otherwise your user interface will stop responding. More on MSDNInvoking Method Parameters on a ThreadMultithreaded Windows Forms Control Example
1.0 supported type EventHandler delegate only
// on a thread you (the user) createdEventHandler x;x = new EventHandler(this.UpdateProgressBar);this.Invoke(x); // marshal back to GUI thread
void UpdateProgressBar(object o, EventArgs e);{ // this needs to execute on the GUI thread
this.progressBar1.Value++;}
Support for custom delegatesReturn valuesCustom parameters
Asynchronous supportBeginInvoke/EndInvoke
Exception for cross-thread GUI callsunique to .NET Compact Framework
Control.Invoke.NET Compact Framework 2.0
IAsyncResult result = this.BeginInvoke(myDelegate,
new object[]{“hello”});// do other processing here while thread
runsint returnCode = (int)this.EndInvoke(result);
public delegate int myDelegate(string s);
Summary
You can make great device applications today with Visual Studio .NET 2003
VS2005 introduces large improvements in device application design, unifying it with desktop experience
.NET Compact Framework 2.0 is about next generation features and productivity enhancers.
Additional Information
Try Visual Studio 2005 Beta 2http://lab.msdn.microsoft.com/vs2005/get/
Mobile Developer Centerhttp://msdn.microsoft.com/mobility/
.Net Compact Framework v2.0 FAQhttp://msdn.microsoft.com/smartclient/community/cffaq/cf20.aspx
Additional Information
Post Events SiteAll information on past events, slide decks etc
http://www.microsoft.com/uk/msdn/postevents
The UK MSDN Site & FlashLocal news, events, webcasts
http://www.microsoft.com/uk/msdnRegister to receive the bi-weekly MSDN Flash by email
http://www.microsoft.com/uk/msdn/flash.aspx
Take a look at the Express productshttp://msdn.microsoft.com/express
GotDotNet and ASP.NET – lots of excellent resources
http://www.gotdotnet.comhttp://www.asp.net
Attend a free chat or web casthttp://www.microsoft.com/communities/chats/default.mspx http://www.microsoft.com/usa/webcasts/default.asp
List of newsgroupshttp://communities2.microsoft.com/communities/newsgroups/en-us/default.aspx
MS Community Siteshttp://www.microsoft.com/communities/default.mspx
Locate Local User Groupshttp://www.microsoft.com/communities/usergroups/default.mspx
Community siteshttp://www.microsoft.com/communities/related/default.mspx
Community Resources
© 2005 Microsoft Corporation. All rights reserved.© 2005 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.