外文资料翻译

上传人:痛*** 文档编号:142420733 上传时间:2022-08-25 格式:DOC 页数:12 大小:102KB
返回 下载 相关 举报
外文资料翻译_第1页
第1页 / 共12页
外文资料翻译_第2页
第2页 / 共12页
外文资料翻译_第3页
第3页 / 共12页
点击查看更多>>
资源描述
.NET Compact Framework 2.0中的新事物介绍.NET Compact Framework 2.0版在以前版本.NET Compact Framework1.0版上提供许多改善。虽然普遍改善,但他们都集中在共同的目标改进开发商生产力、以完整的.NET Framwork提供更强的兼容性,以及加大对设备特性的支持。这篇文章提供一个.NET Compact Framework2.0的变动和改进的高水平的概要。用户界面相关的灵活的设备显示器的小尺寸要求:应用程序高效率地使用可用空间。这在过去是要求开发商花费很多时间来设计和实施应用的用户界面。最近的在灵活的显示能力方面的进步,譬如高分辨率和多方位支持,使得用户界面发展的工作更具挑战性。为了简化创造应用用户界面的任务,.NET Compact Framework2.0提供许多关于这方面描述的新特性。 窗口形式控制存在于用户界面中心的是控制;.NET Compact Framework2.0提供了很多新的控制。这些新控制由除了特别针对设备之外的控制组成。这种控制是.NET Compact Framework有的与.NET Framework一样充分的控制。 MonthCalendarMonthCalendar控制是提供日期显示的可定制的日历控制,而且是有利于为用户提供一个图解方式来精选日期。 DateTimePickerDateTimePicker控制是为显示和允许用户进入日期和时间信息的可定制的控制。由于它的一个紧凑显示和图解日期选择格式的组合,它特别适用于灵活的设备应用程序。当显示信息时,DateTimePicker控制与正文框相似;但是,当用户选择了一个日期, 可能显示一个类似于MonthCalendar控制的弹出日历。 WebBrowser WebBrowser控制压缩了设备Web浏览器,并且提供强大的显示能力和暴露很多事件。这些事件除了允许你的应用程序提供对于这些事件的用户化的行为,还允许你的应用程序追踪用户与Web浏览器内容的互动。 NotificationNotification控制压缩了袖珍版个人电脑的通知特性,就是允许应用程序寄给用户一个没有改变用户当前活动的上下文的通知。通知文本可以是纯文本或HTML。除显示信息之外,通知可以通过包含在通知的HTML文本中的HTML按钮和链接来接受用户的输入。 DocumentListDocumentList控制为显示和处理文件提供一个标准的机制,譬如当打开Excel Mobile and Word Mobile中的使用的文件。DocumentList控制提供给用户操纵文件系统以及删除、复制、行动和重命名的能力。用户也可以用DocumentList控制通过红外线发送电子邮件和发送文件到其它设备。 Smartphone中的DataGrid Smartphone现在支持DataGrid 控制。就像袖珍个人电脑,Smartphone中的DataGrid控制支持构形的大小、多种显示形式、数据捆绑、空值处理和跟踪用户单元选择的事件。 LinkLabelLinkLabel控制是一个能显示一个或更多超链接的标签控制。 SplitterSplitter控制是一个提供恢复相接控制的能力的分离栏。 ToolBarToolBar控制是能将图像以按钮形式显示的Windows工具栏。 用户控制.NET Compact Framework2.0现在支持用户控制。增加用户控制的同时,.NETCompactFramework2.0应用程序现在可以用Visual Studio 2005图像化地创建控制,并且,就如完整的.NET Framework一样,.NET Compact Framework2.0的用户控制自动在控制工具箱出现,而且可以用拖放安置在窗体上。 显示和布局管理现在可用的Windows Mobile窗体因素的广泛多样性,要求应用程序开发者开发应用程序用户界面比以前更动态化。为了简化创造动态用户界面的任务,.NET Compact Framework2.0提供许多新布局和管理特性。 控制相接.NET Compact Framework2.0控制现在支持相接。相接一个控制设置它与双亲控制的边缘相反,即填充边缘。因为双亲控制调整尺寸,相接控制自动调整尺寸来填充双亲控制指定的边缘。控制也可以相接填装整个双亲。 控制停滞.NET Compact Framework2.0控制也支持停滞。停滞控制识别,即控制的一边或多边应该依然是与对应的边缘或双亲控制的边缘保持的一个固定距离。因为双亲控制调整尺寸,控制自动地调整尺寸,因此控制的停滞的一边依然是与双亲控制的对应的边缘保持的适当的距离。 自动卷曲Form and Panel控制除了继承于ScrollableControl控制的其他控制现在提供AutoScroll属性。当设置为真,控制自动地提供一个卷曲栏来允许用户卷曲到任一个在控制可视范围之外的孩子控制。 自动缩放比例所有ContainerControl起源的控制,譬如Form控制,现在提供AutoScaleMode属性。AutoScaleMode属性指出当控制在一个不同于最初它设计的决议上显示时,控制应该如何反映。当设置为AutoScrollMode.Dpi时,容器控制的所有孩子控制相应地与执行时间的显示决议相匹配。AutoScaleMode.None的值表明缩放比例不会自动完成,这样就使应用程序有责任在不同的决议上准确地提出。 SuspendLayout和ResumeLayout.NET Compact Framework2.0 Control类现在支持SuspendLayout和ResumeLayout 方法。就像在完整的.NETFramework中一样,这些方法在与一个异于聚集布局事件关联,譬如改变一系列的孩子控制的位置或调整它们的尺寸。 Graphics DpiX和DpiY属性现在,Graphics类提供关于当前设备显示的决议的信息。DpiX 属性显示水平的每英寸像素的数量, 而且DpiY属性显示垂直的每英寸像素的数量。 自定义图画为了简化丰富的用户界面的创作,.NET Compact Framework2.0增加了很多特性。这些特性允许应用程序更加容易运用自定义图画。 可旋转的字体LogFont类添加到.NET Compact Framework2.0为在为在一个角度显示文本提供支持,以及为合并其他文本作用提供支持。 自定义笔现在,应用程序可以创造具体颜色和大小的笔。 位图.NET Compact Framework2.0为用位图工作提供改进。这种改进包括:当创建位图和有能力将一个位图保存到一个文件或流时,提供更多的选择。应用程序可以运用新加入的BitmapData类,通过LockBits和UnlockBits方法的联合更加容易观察和操作位图。因为应用程序需要在被处理的和自身的代码之间分享位图,现在,你可以通过GetHbitmap方法检索一个自身位图对象的句柄。 DirectXWindowsMobile5.0软件通过执行DirectX应用程序设计界面(APIs)包含二维和三维的图画特性。因为.NETCompactFramework2.0的开发商瞄准WindowsMobile5.0基础设备的人,DirectX特性集有能力贯穿包含在“Microsoft.Windows.DirectX”命名域中的类和对应的汇编。 键盘管理现在,灵活的设备的一个增长数字包括键盘。为了允许管理开发商利用可利用的键盘,.NET Compact Framework2.0为键盘提供改进的支持。 注:在这部分提及的一些特性被作为一部分加到.NET Compact Framework1.0服务包,但在这里提它们,大家就肯定知道它们也是可用的。 制表符支持现在,控制支持制表符命令以允许应用程序用户通过按制表符键在控制之间切换。 Keyboard Events和Form.KeyPreview现在,控制接受KeyUp、KeyDown和KeyPress事件。此外,现在,Form控制提供KeyPreview属性。当设置为假, keyboard事件就会被直接发到控制。当KeyPreview被设置为真,所有keyboard事件就会被发到Form实例以等待被发送到当前聚焦的控制。通过在Form实例的对应的事件处理设置KeyPressEventArgs属性为真,Form实例可以防止事件以焦点被送到控制。数据当然,数据是任一个应用程序的重要部份。不管有无关系,针对数据的类在必需访问和运作以数据编程的努力上的水平有直接效应。.NET CompactFramework2.0 除了为现存的类提供新特性,还提供很多新数据类。 Updatable, Scrollable Access to SQLServer2005 Mobile Edition .NET Compact Framework2.0为进入SQLServer2005 Mobile Edition (SQLMobile)数据库SqlCeResultSet提供新类。新的SqlCeResultSet类提供卷曲和可更新的直接存取SQL Mobile数据库。这个存取为存取SQL Mobile数据提供一种比DatasSet类更加快速和更加资源高效率的解决方案。和DataSet类一样,SqlCeResultSet可以作为数据绑定资源使用。 DataSetDataSet类和相关的类提供很多新特性。这些特性不仅提供改进的功能而且带来.NET Compact Framework的 DataSet类与整个.NETFramework更多协调。 GetChanges和Merge Methods.NET Compact Framework2.0 将GetChanges和Merge方法增加到DataSet类。 GetChanges方法返回一个包含所有自从最后访问AcceptChanges之后的所有变动的DataSet的副本。返回的DataSet优化为合并。DataSet方法将DataSet合并到另一个里。它对于将变动从一个由一个GetChanges方法返回的DataSet合并到另一个特别有用。 Copy方法现在,. NET Compact Framework 的DataSet类提供Copy方法。Copy方法返回包含与原物相同的结构和数据的新DataSet。 DataTables Serialization现在,DataTable类提供WriteXml和ReadXml方法。这些方法提供各自的表的XML连载和非连载。而且,连载和非连载的支持的结合允许DataTables作为Web服务论点而通过。 XML.NET Compact Framework2.0对于与XML相关类提供了很多改进。这些改进不仅简化运用XML数据运作的进程,而且给.NET Compact Framework中XML相关类带来更多与那些在整个.NETFramework中可用的资源的协调。 XPath支持现在,XmlDocument类支持SelectSingleNode和SelectNodes方法二者都是提供用XPath搜索文档的能力。 XML连载.NET Compact Framework2.0与相关属性类一起增加XmlSerializer类,譬如XmlElement和XmlAttribute。用XmlSerializer,你可以从XML保存和恢复类,以及保存和恢复类到XML。新的XmlSerializer类也通过.NET Compact Framework2.0的Web代理基本类在内部使用。新的XmlSerializer类充分提供通过.NET Compact Framework1.0在使用的机制上极大地改善以连载和非连载Web服务器论点,因此提供改进的Web服务器访问性能。 XML 图解现在,.NET Compact Framework2.0为用XML图解文档工作提供XmlSchema类。这些类也可以使用到动态地产生图解。 数据绑定新的数据绑定类BindingSource包含在.NET Compact Framework2.0中。 BindingSource通常分在一个或更多数据绑定控制和一个数据绑定源之间。当使用时,BindingSource类通过提供间接的层数和增加流动管理、改变事件以及更多来简化数据绑定。通信通信实际上是每个灵活的设备应用程序的一个重要部份。.NET Compact Framework2.0增加了几个新类以简化共同的通信要求,同时提供整体的新能力。除新的通信类之外,.NET Compact Framework2.0还包括对现有的类的改善。 Web服务就像之前提到的那样,新的XmlSerializer类通过提供一个更加快速的Web服务器论点的XML连载和非连载而充分改进了Web业务访问性能。除性能改善之外,现在.NET Compact Framework2.0的Web服务器类为SOAP1.2版提供支持。 MSMQ作为想利用MSMQ异步信息特性的应用程序开发商,.NET Compact Framework2.0在“System.Messaging”命名域中提供类。这些类为发送和接收包含使用事物创建基本操作的信息提供支持。 连续端口为了减少当用连续端口工作时必需的编程的努力,.NET Compact Framework2.0 包含了SerialPort类。SerialPort类提供一个简化的对连续通信端口的提取。这个端口提供很多简化追踪和配置连续端口的特性。连续端口还简化以连续端口发送和接收数据包括自动编码和解码数据发送和从端口接收数据。 IPv6 支持现在,.NET Compact Framework2.0网络类除了为IPv4支持外,还为IPv6提供支持。结论希望这个摘要通过使用.NET Compact Framework2.0给了你一个关于有利于灵活设备开发商的许多新特性。关于那些你想要的更多的细节的那些主题,你可以检索文献和MSDN。这篇文章里提到的有关每个主题的详细文章在或者很快就会在MSDN上。附件2:外文原文(复印件)Whats New in the .NET Compact Framework 2.0IntroductionThe .NETCompactFramework version2.0 offers many improvements over its predecessor, the .NETCompactFramework version1.0. Although the improvements are widespread, they all focus on the common goals of improving developer productivity, providing greater compatibility with the full .NETFramework and increasing support for device features. This article provides a high-level summary of the .NETCompactFramework2.0 changes and enhancements.User InterfaceThe relatively small size of smart device displays requires that applications use the available space efficiently, which historically has required that developers spend a great deal of time designing and implementing an applications user interface. Recent advances in smart display capabilities, such as high-resolution and multiple orientation support have made the job of user interface development even more challenging. To simplify the task of creating application user interfaces, the .NETCompactFramework2.0 provides the many new features that are described in this section.Windows Forms ControlsAt the heart of the user interface are the controls; the .NETCompactFramework2.0 provides a number of new controls. These new controls consist of controls that the .NETCompactFramework has in common with the full .NETFramework in addition to controls that are specific to devices.MonthCalendarThe MonthCalendar control is a customizable calendar control that provides a visual display of dates and is useful for providing a graphical way for users to select dates. DateTimePickerThe DateTimePicker control is a customizable control for displaying and allowing users to enter date and time information. It is especially well suited for smart device applications due to its combination of a compact display and graphical date selection format. When displaying information, the DateTimePicker control renders similar to a text box; however, when the user is selecting a date, a pop-up calendar similar to the MonthCalendar control can be displayed. WebBrowser The WebBrowser control encapsulates the device Web browser, providing rich display capabilities and exposing a variety of events that allow your application to both track the users interaction with the Web browser content in addition to allowing your application to provide customized behaviors for these events. NotificationThe Notification control encapsulates the PocketPCs notification feature that allows applications to send the user a notification without changing the context of the users current activity. The notification text can be plain text or HTML. In addition to displaying information, notifications can receive input from the user by including HTML buttons and links in the HTML text of the notification.DocumentListThe DocumentList control provides a standard mechanism for displaying and managing files such as that which is used when opening files in Excel Mobile and Word Mobile. The DocumentList control provides the user with the ability to navigate around the file system and to delete, copy, move, and rename files. The user can also use the DocumentList control to send e-mail messages and send files by means of infrared to other devices.DataGrid on SmartphoneSmartphone now supports the DataGrid control. Just like PocketPC, the DataGrid control on Smartphone supports configurable column sizes, multiple display styles, data binding, null value handling, and events to track user cell selections.LinkLabelThe LinkLabel control is a label control that is capable of displaying one or more hyperlinks.SplitterThe Splitter control is a splitter bar that provides resizing capability to docked controls.ToolBarThe ToolBar control is Windows toolbar that is capable of displaying images as buttons.User ControlsThe .NETCompactFramework2.0 now supports user controls. With the addition of user controls, .NETCompactFramework2.0 applications can now create controls graphically within Visual Studio 2005 and, just as the full .NETFramework, the .NETCompactFramework2.0 user controls automatically appear on the control Toolbox and can be placed on forms by using drag-and-drop. Display and Layout ManagementThe wide variety of Windows Mobile form factors that are now available requires that application developers develop application user interfaces to be much more dynamic than in the past. To simplify the task of creating dynamic user interfaces, the .NETCompactFramework2.0 provides many new layout and management features.Control DockingThe .NETCompactFramework2.0 controls now support docking. Docking a control places it against the edge of the parent controlfilling that edge. As the parent control is resized, the docked control automatically resizes to always fill the specified edge of the parent control. Controls can also be docked to fill the entire parent.Control AnchoringThe .NETCompactFramework2.0 controls also support anchoring. Anchoring a control identifies that one or more sides of the control should remain a fixed distance from the corresponding edge or edges of the parent control. As the parent control is resized, the control automatically resizes so the anchored sides of the control remain the appropriate distance from the corresponding edges of the parent control. Automatic ScrollingThe Form and Panel controlin addition to other controls that inherit from the ScrollableControl controlnow provide the AutoScroll property. When set to true, the control automatically provides a scroll bar to allow the user to scroll to any child controls that are outside the controls visible boundary. Automatic ScalingAll ContainerControl derived controls, such as the Form control, now provide the AutoScaleMode property. The AutoScaleMode property indicates how the control should render when it is displayed on a resolution different than the resolution it was originally designed for. When set to AutoScrollMode.Dpi, all child controls of the container control are scaled to match the runtime displays resolution. A value of AutoScaleMode.None indicates that no automatic scaling will be done, making the application responsible to render correctly on the different resolutions.SuspendLayout and ResumeLayoutThe .NETCompactFramework2.0 Control class now supports the SuspendLayout and ResumeLayout methods. Just as in the full .NETFramework, these methods are used in conjunction with one another to group multiple layout events, such as repositioning or resizing a series of child controls. Graphics DpiX and DpiY propertiesThe Graphics class now provides information as to the resolution of the current device display. The DpiX property indicates the number of horizontal dots per inch, and DpiY indicates the number of vertical dots per inch. Custom DrawingTo simplify the creation of rich user interfaces, the .NETCompactFramework2.0 has added a number of features that allow applications to much more easily handle custom drawing.Rotatable FontsThe addition of the LogFont class to the .NETCompactFramework2.0 provides support for displaying text at an angle and for incorporating other text effects. Custom PensApplications can now create pens of a specific color and size. BitmapsThe .NETCompactFramework2.0 provides many enhancements for working with bitmaps. Enhancements include providing more options when creating bitmaps and having the ability to save a bitmap to a file or stream. Applications can more easily view and manipulate bitmaps through the combination of the LockBits and UnlockBits methods with the newly added BitmapData class. For applications needing to share bitmaps between managed and native code, you can now retrieve a handle to the native bitmap object through the GetHbitmap method.DirectXWindowsMobile5.0 software includes a number of rich two-dimensional and three-dimensional drawing features through its native implementation of the DirectX application programming interfaces (APIs). For .NETCompactFramework2.0 developers who target WindowsMobile5.0based devices, the DirectX feature set is available through the classes contained in the Microsoft.Windows.DirectX namespace and corresponding assembly.Keyboard ManagementAn increasing number of smart devices now include keyboards. To allow managed developers to take advantage of the available keyboards,the .NETCompactFramework2.0 provides enhanced support for keyboards. NoteSome of the features mentioned in this section were added as part of the .NETCompactFramework1.0 service packs but are mentioned here to be sure that everyone is aware that they are available. Tab SupportControls now support a tab order allowing application users to move between controls by pressing the tab key. Keyboard Events and Form.KeyPreviewControls now receive KeyUp, KeyDown, and KeyPress events. In addition, the Form control now provides the KeyPreview property. When set to false, keyboard events are sent directly to the control. When KeyPreview is set to true, all keyboard events are sent to the Form instance prior to being sent to the control that currently has focus. The Form instance can prevent an event from being sent to the control with focus by setting the KeyPressEventArgs.Handled property to true in the Form instances corresponding event handler.DataData is of course a central part of any application. Whether relational, data-oriented classes have a direct effect on the level of programming effort that is required to access and work with data. The .NETCompactFramework2.0 provides a number of new data classes in addition to new features to existing classes.Updatable, Scrollable Access to SQLServer2005 Mobile Edition The .NETCompactFramework2.0 provides a new class for accessing a SQLServer2005 Mobile Edition (SQLMobile) database, SqlCeResultSet. The new SqlCeResultSet class provides scrolling and updatable access directly to the SQL Mobile database. This access provides a much faster and more resource-efficient solution for accessing SQL Mobile data than the DataSet class. Like the DataSet class, SqlCeResultSet can be used as a data binding source.DataSetThe DataSet class and related classes provide a number of new features. These features not only provide enhanced functionality but also bring the .NETCompactFramework DataSet class more in line with that of the full .NETFramework.GetChanges and Merge MethodsThe .NETCompactFramework2.0 adds the GetChanges and Merge methods to the DataSet class. The GetChanges method returns a copy of DataSet that contains all of the changes since AcceptChanges was last called. The returned DataSet is optimized for merging.The Merge method merges one DataSet into another. It is particularly useful for merging changes from one DataSet, returned by the GetChanges method, into another. Copy MethodThe .NETCompactFramework DataSet class now provides the Copy method. The Copy method returns a new DataSet containing the same structure and data as the original.DataTables SerializationThe DataTable class now provides the WriteXml and ReadXml methods, which provide XML serialization and deserialization of individual tables. Also the addition of serialization and deserialization support allows DataTables to be passed as Web service arguments.XMLThe .NETCompactFramework2.0 provides a number of enhancements to the XMLrelated classes. These enhancements both simplify the process of working with XML data and also bring the .NETCompactFramework XMLrelated classes much more in line with those available in the full .NETFramework.XPath SupportThe XmlDocument class now supports the SelectSingleNode and SelectNodes methodsboth of which provide the ability to search the document using XPath.XML SerializationThe .NETCompactFramework2.0 adds the XmlSerializer class along with the related attribute classes, such as XmlElement and XmlAttribute. Using XmlSerializer allows you to save and restore classes to and from XML.The new XmlSerializer class is also used internally by the .NETCompactFramework2.0 Web service proxy base classes. The new XmlSerializer class provides substantially improved performance over the mechanism used by the .NETCompactFramework1.0 to serialize and deserialize Web service arguments thereby providing improved Web service call performance.XML SchemaThe .NETCompactFramework2.0 now provides the XmlSchema class and related classes for working with XML schema documents. These classes can also be used to dynamically generate schemas.Data BindingThe new data binding class, BindingSource, is included in the .NETCompactFramework2.0. The BindingSource is normally layered between one or more data bound controls and a data binding source. When used, the BindingSource class simplifies data binding by providing a layer of indirection and adding currency management, change events, and more.CommunicationsCommunications is an important part of virtually every smart device application. The .NETCompactFramework2.0 has added several new classes to simplify common communications requirements as well as providing entirely new capabilities. In addition to the new communications classes, the .NETCompactFramework2.0 also includes improvements to existing classes.Web ServicesAs noted earlier, the new XmlSerializer class substantially improves the performance of Web service calls by providing a much faster XML serialization and deserialization of Web service arguments.In addition to the performance improvements, the .NETCompactFramework2.0 Web service classes now provide support for SOAP version1.2. MSMQFor applic
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 图纸专区 > 成人自考


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!