Download presentation
Presentation is loading. Please wait.
Published byGordon Jackson Modified over 8 years ago
1
What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com
2
The slides for this event will be posted at: www.microsoft.com/uk/msdn/postevents
3
Agenda Show me the ‘shiny’! Visual Studio 2005 for Devices.NET Compact Framework Where are we today New features in Version 2.0 Summary
4
Pocket PC Smartphone Portable Media Center 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 UI based on MCE Music, pictures, recorded TV Dedicated Platform
5
Show me the ‘shiny’! Sample fill color Sagem My-S7Sierra Voq MDA III/XDA IIs Motorola MPX Symbol MC50Garmin HP Ipaq 63xxHTC TyphoonMPX 220T Mobile SDA
6
VS2005 Device Initiatives
7
Extend the feature set, leveraging desktop features Integrating Managed and Native development in same tool Integrate with the Desktop code-base
8
Leveraging Desktop Features Native ATL and MFC Class Libs and Wizards V8.0 Compilers Resource Editor Project Properties and Settings Managed Designer WYSIWYG Forms User/Custom Controls Data Partial Classes Inherited Forms Both VS Project System, MSI and CAB projects
9
Native Development Native C++ for Devices feature will include: Application and Class Wizards SDK integration Resource Editor Remote deployment/debugging Native frameworks (MFC / ATL) Emulator Help
10
My first Native App Native App
11
Managed Development Languages: C#, VB.NET Managed/Native Projects in one solution Integrated Smartphone support WYSIWYG Forms Designer Catch inherited but unsupported properties, methods and events Support for custom controls and inherited forms More accurate IntelliSense Data Designer SQL Mobile Data-Management Tools New Emulator CAB and Setup Projects Remote Tools Registry, process viewer, file viewer, heap walker, etc…
12
Emulator Features ARM CPU instruction set ActiveSync support Shared Folder support Four COM ports Portrait and landscape orientation support
13
Data Features Tools for SQL Server and SQL Server CE Database/Schema Creation Table Editor Data Connection Data Source Database Business Object Web Service Drag/Drop Data-bound controls Tables Fields Master/Details Form Parameterized Form Data Form
14
CAB Project Features CAB Designer File System Editor Project Output Content Shortcuts Registry Custom Actions One CAB format for Pocket PC and Smartphone
15
My first Managed App Managed App
16
Compact Framework 2.0
17
.NET Compact Framework Today… Service Pack 3 Improvements Download it today from MSDN Focus on Stability: WM 2003 SE From SP 2: ~ 40% faster XML ~ 20% faster ADO.NET ForeColor and BackColor!!! Developer Adoption Fourth most active.NET newsgroup Developer Focused Web sites like http://www.OpenNetCF.org http://www.dotnetdn.com/ http://www.pocketPCDN.com http://msdn.microsoft.com/ mobility / Information direct from product team members http://blogs.msdn.com/windowsmobile
18
Compatibility And Performance.NET Compact Framework 2.0 Compatibility with full.NET Framework Classes Interoperability, Protocols Compatibility with 1.0 Side by side Application compatibility Performance Enhancements Unified JIT Improved string handling XmlTextReader and XmlTextWriter.NETCF 1.0 (ROM) (ROM).NETCF 2.0
19
Extensibility.NET Compact Framework 2.0 COM Interoperability Runtime Callable Wrappers (RCW) provide proxies for native COM objects RCW support integrated into the Visual Studio shell Enhanced Type Marshalling Additional types – arrays, strings, structures Embedded arrays – structs with char[], array[] MarshalAs – type hinting System.Windows.Forms Control.Handle – retrieve window handle
20
Language Support.NET Compact Framework 2.0 New language features make you more productive Generics Anonymous methods Iterators Partial Types
21
Windows.Forms Controls DateTimePicker MonthCalendar DocumentList LinkLabel Notification Bubble Help WebBrowser DataContainer UserControl
22
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 HP4300 Integrated keyboards
23
Smartphone Features.NET Compact Framework 2.0 Data Support SQL Mobile DataGrid Textbox IME switching InputModeEditor Enable multiple menu items on left softkey
24
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 Screen Orientation-Aware Applications Developing Orientation and dpi Aware Applications for the.NET Compact Framework
25
Displays And Layout.NET Compact Framework 2.0 Orientation Support Docking and Anchoring Tip – use panels to group controls AutoScroll property – forms, panels Suspend/Resume Layout methods ChangeOrientation method Resolution Support Automatic scaling Graphics DpiX/DpiY
26
System.Drawing.NET Compact Framework 2.0 Bitmaps Bitmap.LockBits(…) Image.Save(…) png, jpg, bmp, tif, gif Bitmap Pattern Brushes Create font from LOGFONT structure Custom Pens Rotated text using LOGFONT
27
Networking And Web Services System.Messaging Web Services Performance boost from faster XmlSerializer Support for new standard: SOAP 1.2 Enhanced Authentication Adding Kerberos and NTLM Automatically select most secure authentication method IPv6 WebService service = new WebService(); service.Credentials = new NetworkCredential(username, password, domain);
28
System.Xml And System.Data System.Xml Serialization live objects like application settings Schemas Validate XML against schema constraints Generate schemas on the fly programmatically XPath 1.0 Data Powerful 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.NET Adding features to match full.NET Framework
29
Class Libraries Serial Port Four ports now Supported in the emulator Generic collections Cryptography aZ#S- ghro @*rw --v<E[1~ Encrypt System.Messaging messages, passwords
30
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 MSDN Invoking Method Parameters on a Thread Multithreaded Windows Forms Control Example 1.0 supported type EventHandler delegate only // on a thread you (the user) created EventHandler 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++; }
31
Support for custom delegates Return values Custom parameters Asynchronous support BeginInvoke/EndInvoke Exception for cross-thread GUI calls unique 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 runs int returnCode = (int)this.EndInvoke(result); public delegate int myDelegate(string s);
32
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.
33
Additional Information Try Visual Studio 2005 Beta 2 http:// lab.msdn.microsoft.com/vs2005/get / Mobile Developer Center http://msdn.microsoft.com/mobility/.Net Compact Framework v2.0 FAQ http://msdn.microsoft.com/smartclient/community/cffa q/cf20.aspx
34
Additional Information Post Events Site All information on past events, slide decks etc http://www.microsoft.com/uk/msdn/postevents The UK MSDN Site & Flash Local news, events, webcasts http://www.microsoft.com/uk/msdn Register to receive the bi-weekly MSDN Flash by email http://www.microsoft.com/uk/msdn/flash.aspx Take a look at the Express products http://msdn.microsoft.com/express GotDotNet and ASP.NET – lots of excellent resources http://www.gotdotnet.com http://www.asp.net
35
Attend a free chat or web cast http://www.microsoft.com/communities/chats/default.mspx http://www.microsoft.com/usa/webcasts/default.asp List of newsgroups http://communities2.microsoft.com/ communities/newsgroups/en-us/default.aspx MS Community Sites http://www.microsoft.com/communities/default.mspx Locate Local User Groups http://www.microsoft.com/communities/usergroups/default.mspx Community sites http://www.microsoft.com/communities/related/default.mspx Community Resources
36
© 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.