網(wǎng)絡(luò)網(wǎng)站建設(shè)管理系統(tǒng)類(lèi)外文翻譯@中英文翻譯@外文文獻(xiàn)翻譯_第1頁(yè)
網(wǎng)絡(luò)網(wǎng)站建設(shè)管理系統(tǒng)類(lèi)外文翻譯@中英文翻譯@外文文獻(xiàn)翻譯_第2頁(yè)
網(wǎng)絡(luò)網(wǎng)站建設(shè)管理系統(tǒng)類(lèi)外文翻譯@中英文翻譯@外文文獻(xiàn)翻譯_第3頁(yè)
網(wǎng)絡(luò)網(wǎng)站建設(shè)管理系統(tǒng)類(lèi)外文翻譯@中英文翻譯@外文文獻(xiàn)翻譯_第4頁(yè)
網(wǎng)絡(luò)網(wǎng)站建設(shè)管理系統(tǒng)類(lèi)外文翻譯@中英文翻譯@外文文獻(xiàn)翻譯_第5頁(yè)
已閱讀5頁(yè),還剩7頁(yè)未讀 繼續(xù)免費(fèi)閱讀

付費(fèi)下載

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

.NET Compact Framework 2.0中的新事物 介紹 .NET Compact Framework 2.0版在以前版本 .NET Compact Framework1.0 版 上提供許多改善。雖然普遍改善 ,但他們都集中在共同的目標(biāo) 改進(jìn)開(kāi)發(fā)商生產(chǎn)力、以完整的 .NET Framwork提供更強(qiáng)的兼容性,以及加大對(duì)設(shè)備特性的支持。這篇文章提供一個(gè) .NET Compact Framework2.0 的變動(dòng)和改進(jìn)的高水平的概要。 用戶界面 相關(guān)的靈活的設(shè)備顯示器的小尺寸要求:應(yīng)用程序高效率地使用 可用空間。這在過(guò)去是要求開(kāi)發(fā)商花費(fèi)很多時(shí)間來(lái)設(shè)計(jì)和實(shí)施應(yīng)用的用戶界面。最近的在靈活的顯示能力方面的進(jìn)步,譬如高分辨率和多方位支持,使得用戶界面發(fā)展的工作更具挑戰(zhàn)性。為了簡(jiǎn)化創(chuàng)造應(yīng)用用戶界面的任務(wù), .NET Compact Framework2.0 提供許多關(guān)于這方面描述的新特性。 窗口形式控制 存在于用戶界面中心的是控制; .NET Compact Framework2.0 提供了很多新的控制。這些新控制由除了特別針對(duì)設(shè)備之外的控制組成。這種控制是 .NET Compact Framework 有的與 .NET Framework 一樣充分的控制。 MonthCalendar MonthCalendar 控制是提供日期顯示的可定制的日歷控制,而且是有利于為用戶提供一個(gè)圖解方式來(lái)精選日期。 DateTimePicker DateTimePicker 控制是為顯示和允許用戶進(jìn)入日期和時(shí)間信息的可定制的控制。由于它的一個(gè)緊湊顯示和圖解日期選擇格式的組合,它特別適用于靈活的設(shè)備應(yīng)用程序。當(dāng)顯示信息時(shí), DateTimePicker 控制與正文框相似;但是,當(dāng)用戶選擇了一個(gè)日期 , 可能顯示一個(gè)類(lèi)似于 MonthCalendar 控制的彈出日歷。 WebBrowser WebBrowser 控制壓縮了設(shè)備 Web 瀏覽器,并且提供強(qiáng)大的顯示能力和暴露很多事件。這些事件除了允許你的應(yīng)用程序提供對(duì)于這些事件的用戶化的行為,還允許你的應(yīng)用程序追蹤用戶與 Web 瀏覽器內(nèi)容的互動(dòng)。 Notification Notification控制壓縮了袖珍版?zhèn)€人電腦的通知特性,就是允許應(yīng)用程序寄給用戶一個(gè)沒(méi)有改變用戶當(dāng)前活動(dòng)的上下文的通知。通知文本可以是純文本或 HTML。除顯示信息之外,通知可以通過(guò)包含在通知的 HTML文本中的 HTML按鈕和鏈接來(lái)接受用戶的輸入。 DocumentList DocumentList 控制為顯示和處理文件提供一個(gè)標(biāo)準(zhǔn)的機(jī)制,譬如當(dāng)打開(kāi) Excel Mobile and Word Mobile 中的使用的文件。 DocumentList 控制提供給用戶操縱文件系統(tǒng)以及刪除、復(fù)制、行動(dòng)和重命名的能力。用戶也可以用 DocumentList 控制通過(guò)紅外線發(fā)送電子郵件和發(fā)送文件到其它設(shè)備。 Smartphone 中的 DataGrid Smartphone 現(xiàn)在支持 DataGrid 控制。就像袖珍個(gè)人電腦, Smartphone 中的 DataGrid控制支持構(gòu)形的大小、多種 顯示形式、數(shù)據(jù)捆綁、空值處理和跟蹤用戶單元選擇的事件。 LinkLabel LinkLabel控制是一個(gè)能顯示一個(gè)或更多超鏈接的標(biāo)簽控制。 Splitter Splitter 控制是一個(gè)提供恢復(fù)相接控制的能力的分離欄。 ToolBar ToolBar 控制是能將圖像以按鈕形式顯示的 Windows 工具欄。 用戶控制 .NET Compact Framework2.0 現(xiàn)在支持用戶控制。增加用戶控制的同時(shí), .NET Compact Framework 2.0 應(yīng)用程序現(xiàn)在可以用 Visual Studio 2005 圖像化 地創(chuàng)建控制,并且,就如完整的 .NET Framework 一樣, .NET Compact Framework2.0 的用戶控制自動(dòng)在控制工具箱出現(xiàn),而且可以用拖放安置在窗體上。 顯示和布局管理 現(xiàn)在可用的 Windows Mobile 窗體因素的廣泛多樣性,要求應(yīng)用程序開(kāi)發(fā)者開(kāi)發(fā)應(yīng)用程序用戶界面比以前更動(dòng)態(tài)化。為了簡(jiǎn)化創(chuàng)造動(dòng)態(tài)用戶界面的任務(wù), .NET Compact Framework2.0 提供許多新布局和管理特性。 控制相接 .NET Compact Framework2.0 控制現(xiàn)在支持相接。相接一個(gè)控制設(shè)置它與 雙親控制的邊緣相反,即填充邊緣。因?yàn)殡p親控制調(diào)整尺寸,相接控制自動(dòng)調(diào)整尺寸來(lái)填充雙親控制指定的邊緣??刂埔部梢韵嘟犹钛b整個(gè)雙親。 控制停滯 .NET Compact Framework2.0 控制也支持停滯。停滯控制識(shí)別,即控制的一邊或多邊應(yīng)該依然是與對(duì)應(yīng)的邊緣或雙親控制的邊緣保持的一個(gè)固定距離。因?yàn)殡p親控制調(diào)整尺寸,控制自動(dòng)地調(diào)整尺寸,因此控制的停滯的一邊依然是與雙親控制的對(duì)應(yīng)的邊緣保持的適當(dāng)?shù)木嚯x。 自動(dòng)卷曲 Form and Panel控制 除了繼承于 ScrollableControl控制的其他控制 現(xiàn)在提供AutoScroll屬性。當(dāng)設(shè)置為真,控制自動(dòng)地提供一個(gè)卷曲欄來(lái)允許用戶卷曲到任一個(gè)在控制可視范圍之外的孩子控制。 自動(dòng)縮放比例 所有 ContainerControl起源的控制,譬如 Form 控制,現(xiàn)在提供 AutoScaleMode 屬性。AutoScaleMode 屬性指出當(dāng)控制在一個(gè)不同于最初它設(shè)計(jì)的決議上顯示時(shí),控制應(yīng)該如何反映。當(dāng)設(shè)置為 AutoScrollMode.Dpi 時(shí) ,容器控制的所有孩子控制相應(yīng)地與執(zhí)行時(shí)間的顯示決議相匹配。 AutoScaleMode.None 的值表明縮放比例不會(huì)自動(dòng)完成, 這樣就使應(yīng)用程序有責(zé)任在不同的決議上準(zhǔn)確地提出。 SuspendLayout 和 ResumeLayout .NET Compact Framework2.0 Control類(lèi) 現(xiàn)在支持 SuspendLayout 和 ResumeLayout 方法。就像在完整的 .NETFramework 中一樣,這些方法在與一個(gè)異于聚集布局事件關(guān)聯(lián),譬如改變一系列的孩子控制的位置或調(diào)整它們的尺寸。 Graphics DpiX 和 DpiY 屬性 現(xiàn)在, Graphics 類(lèi)提供關(guān)于當(dāng)前設(shè)備顯示的決議的信息。 DpiX 屬性顯示水平的每英寸像素的數(shù) 量 , 而且 DpiY 屬性顯示垂直的每英寸像素的數(shù)量。 自定義圖畫(huà) 為了簡(jiǎn)化豐富的用戶界面的創(chuàng)作, .NET Compact Framework2.0 增加了很多特性。這些特性允許應(yīng)用程序更加容易運(yùn)用自定義圖畫(huà)。 可旋轉(zhuǎn)的字體 LogFont 類(lèi)添加到 .NET Compact Framework2.0 為在為在一個(gè)角度顯示文本提供支持,以及為合并其他文本作用提供支持。 自定義筆 現(xiàn)在,應(yīng)用程序可以創(chuàng)造具體顏色和大小的筆。 位圖 .NET Compact Framework2.0 為用位圖工作提供改進(jìn)。這種改進(jìn)包括:當(dāng)創(chuàng)建 位圖和有能力將一個(gè)位圖保存到一個(gè)文件或流時(shí),提供更多的選擇。 應(yīng)用程序可以運(yùn)用新加入的 BitmapData 類(lèi),通過(guò) LockBits 和 UnlockBits 方法的聯(lián)合更加容易觀察和操作位圖。因?yàn)閼?yīng)用程序需要在被處理的和自身的代碼之間分享位圖,現(xiàn)在,你可以通過(guò) GetHbitmap 方法檢索一個(gè)自身位圖對(duì)象的句柄。 DirectX Windows Mobile 5.0 軟件通過(guò)執(zhí)行 DirectX 應(yīng)用程序設(shè)計(jì)界面( APIs)包含二維和三維的圖畫(huà)特性。因?yàn)?.NET Compact Framework 2.0 的開(kāi)發(fā)商 瞄準(zhǔn) Windows Mobile 5.0 基礎(chǔ)設(shè)備的人, DirectX 特性集有能力貫穿包含在“ Microsoft.Windows.DirectX”命名域中的類(lèi)和對(duì)應(yīng)的匯編。 鍵盤(pán)管理 現(xiàn)在,靈活的設(shè)備的一個(gè)增長(zhǎng)數(shù)字包括鍵盤(pán)。為了允許管理開(kāi)發(fā)商利用可利用的鍵盤(pán), .NET Compact Framework2.0 為鍵盤(pán)提供改進(jìn)的支持。 注:在這部分提及的一些特性被作為一部分加到 .NET Compact Framework1.0 服務(wù)包,但在這里提它們,大家就肯定知道它們也是可用的。 制表符支持 現(xiàn)在,控制支持制表符命 令以允許應(yīng)用程序用戶通過(guò)按制表符鍵在控制之間切換。 Keyboard Events 和 Form.KeyPreview 現(xiàn)在,控制接受 KeyUp、 KeyDown和 KeyPress 事件。此外,現(xiàn)在, Form控制提供KeyPreview 屬性。當(dāng)設(shè)置為假 , keyboard 事件就會(huì)被直接發(fā)到控制。當(dāng) KeyPreview 被設(shè)置為真,所有 keyboard 事件就會(huì)被發(fā)到 Form實(shí)例以等待被發(fā)送到當(dāng)前聚焦的控制。通過(guò)在Form實(shí)例的對(duì)應(yīng)的事件處理設(shè)置 KeyPressEventArgs 屬性為真, Form 實(shí)例可以防止事件以焦點(diǎn)被 送到控制。 數(shù)據(jù) 當(dāng)然,數(shù)據(jù)是任一個(gè)應(yīng)用程序的重要部份。不管有無(wú)關(guān)系,針對(duì)數(shù)據(jù)的類(lèi)在必需訪問(wèn)和運(yùn)作以數(shù)據(jù)編程的努力上的水平有直接效應(yīng)。 .NET CompactFramework2.0 除了為現(xiàn)存的類(lèi)提供新特性,還提供很多新數(shù)據(jù)類(lèi)。 Updatable, Scrollable Access to SQL Server 2005 Mobile Edition .NET Compact Framework2.0 為進(jìn)入 SQL Server 2005 Mobile Edition ( SQL Mobile)數(shù)據(jù)庫(kù) SqlCeResultSet 提供新類(lèi)。新的 SqlCeResultSet 類(lèi)提供卷曲和可更新的直接存取SQL Mobile 數(shù)據(jù)庫(kù)。這個(gè)存取為存取 SQL Mobile 數(shù)據(jù)提供一種比 DatasSet 類(lèi)更加快速和更加資源高效率的解決方案。和 DataSet 類(lèi)一樣, SqlCeResultSet 可以作為數(shù)據(jù)綁定資源使用。 DataSet DataSet 類(lèi) 和相關(guān)的類(lèi)提供很多新特性。這些特性不僅提供改進(jìn)的功能而且?guī)?lái) .NET Compact Framework 的 DataSet 類(lèi)與整個(gè) .NET Framework 更多協(xié)調(diào)。 GetChanges 和 Merge Methods .NET Compact Framework2.0 將 GetChanges 和 Merge 方法增加到 DataSet 類(lèi)。 GetChanges方法返回一個(gè)包含所有自從最后訪問(wèn) AcceptChanges之后的所有變動(dòng)的 DataSet的副本。返回的 DataSet 優(yōu)化為合并。 DataSet 方法將 DataSet 合并到另一個(gè)里。它對(duì)于將變動(dòng)從一個(gè)由一個(gè) GetChanges 方法返回的 DataSet 合并到另一個(gè)特別有用。 Copy方法 現(xiàn)在, . NET Compact Framework 的 DataSet 類(lèi)提供 Copy方法。 Copy方法返回包含與原物相同的結(jié)構(gòu)和數(shù)據(jù)的新 DataSet。 DataTables Serialization 現(xiàn)在, DataTable 類(lèi)提供 WriteXml 和 ReadXml方法。這些方法提供各自的表的 XML連載和非連載。而且,連載和非連載的支持的結(jié)合允許 DataTables 作為 Web 服務(wù)論點(diǎn)而通過(guò)。 XML .NET Compact Framework2.0 對(duì)于與 XML相關(guān)類(lèi)提供了很多改進(jìn)。這些改進(jìn)不僅簡(jiǎn)化運(yùn)用 XML數(shù)據(jù)運(yùn)作的進(jìn)程,而且給 .NET Compact Framework 中 XML相關(guān)類(lèi)帶來(lái)更多與那些在整個(gè) .NET Framework 中可用的資源的協(xié)調(diào)。 XPath支持 現(xiàn)在, XmlDocument 類(lèi)支持 SelectSingleNode 和 SelectNodes 方法 二者都是提供用XPath搜索文檔的能力。 XML連載 .NET Compact Framework2.0與相關(guān)屬性類(lèi)一起增加 XmlSerializer類(lèi),譬如 XmlElement和 XmlAttribute。用 XmlSerializer,你可以從 XML保存和恢復(fù)類(lèi),以及保存和恢復(fù)類(lèi)到XML。 新的 XmlSerializer 類(lèi)也通過(guò) .NET Compact Framework2.0 的 Web 代理基本類(lèi)在內(nèi)部使用。新的 XmlSerializer 類(lèi)充分提供通過(guò) .NET Compact Framework1.0 在使用的機(jī)制上極大地改善以連載和非連載 Web 服務(wù)器論點(diǎn),因此提供改進(jìn)的 Web 服務(wù)器訪問(wèn)性能。 XML 圖解 現(xiàn)在, .NET Compact Framework2.0 為用 XML圖解文檔工作提供 XmlSchema 類(lèi)。這些類(lèi)也可以使用到動(dòng)態(tài)地產(chǎn)生圖解。 數(shù)據(jù)綁定 新的數(shù)據(jù)綁定類(lèi) BindingSource 包含在 .NET Compact Framework2.0 中。 BindingSource 通常分在一個(gè)或更多數(shù)據(jù)綁定控制和一個(gè)數(shù)據(jù)綁定源之間。當(dāng)使用時(shí),BindingSource 類(lèi)通過(guò)提供間接的層數(shù)和增加流動(dòng)管理、改變事件以及更多來(lái)簡(jiǎn)化數(shù)據(jù)綁定。 通信 通信實(shí)際上是每個(gè)靈活的設(shè)備應(yīng)用程序的一個(gè)重要部份。 .NET Compact Framework2.0增加了幾個(gè)新類(lèi)以簡(jiǎn)化共同的通信要求,同時(shí)提供整體的新能力。除新的通信類(lèi)之外, .NET Compact Framework2.0 還包括對(duì)現(xiàn)有的類(lèi)的改善。 Web 服務(wù) 就像之前提到的那樣,新的 XmlSerializer 類(lèi)通過(guò)提供一個(gè)更加快速的 Web 服務(wù)器論點(diǎn)的 XML連載和非連載而充分改進(jìn)了 Web 業(yè)務(wù)訪問(wèn)性能。 除性能改善之外,現(xiàn)在 .NET Compact Framework2.0 的 Web 服務(wù)器類(lèi)為 SOAP1.2 版提供支持。 MSMQ 作為想利用 MSMQ 異步信息特性的應(yīng)用程序開(kāi)發(fā)商, .NET Compact Framework2.0 在“ System.Messaging”命名域中提供類(lèi)。這些類(lèi)為發(fā)送和接收包含使用事物創(chuàng)建基本操作的信息提供支持。 連續(xù)端口 為了減 少當(dāng)用連續(xù)端口工作時(shí)必需的編程的努力, .NET Compact Framework2.0 包含了 SerialPort 類(lèi)。 SerialPort 類(lèi)提供一個(gè)簡(jiǎn)化的對(duì)連續(xù)通信端口的提取。這個(gè)端口提供很多簡(jiǎn)化追蹤和配置連續(xù)端口的特性。連續(xù)端口還簡(jiǎn)化以連續(xù)端口發(fā)送和接收數(shù)據(jù) 包括自動(dòng)編碼和解碼數(shù)據(jù)發(fā)送和從端口接收數(shù)據(jù)。 IPv6 支持 現(xiàn)在, .NET Compact Framework2.0 網(wǎng)絡(luò)類(lèi)除了為 IPv4 支持外,還為 IPv6 提供支持。 結(jié)論 希望這個(gè)摘要通過(guò)使用 .NET Compact Framework2.0 給了你一個(gè)關(guān)于有利于靈活設(shè)備開(kāi)發(fā)商的許多新特性。關(guān)于那些你想要的更多的細(xì)節(jié)的那些主題,你可以檢索文獻(xiàn)和MSDN。這篇文章里提到的有關(guān)每個(gè)主題的詳細(xì)文章在或者很快就會(huì)在 MSDN 上。 附件 2: 外文原文 Whats New in the .NET Compact Framework 2.0 Introduction The .NET Compact Framework version 2.0 offers many improvements over its predecessor, the .NET Compact Framework version 1.0. Although the improvements are widespread, they all focus on the common goals of improving developer productivity, providing greater compatibility with the full .NET Framework and increasing support for device features. This article provides a high-level summary of the .NET Compact Framework 2.0 changes and enhancements. User Interface The 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 .NET Compact Framework 2.0 provides the many new features that are described in this section. Windows Forms Controls At the heart of the user interface are the controls; the .NET Compact Framework 2.0 provides a number of new controls. These new controls consist of controls that the .NET Compact Framework has in common with the full .NET Framework in addition to controls that are specific to devices. MonthCalendar The 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. DateTimePicker The 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. Notification The Notification control encapsulates the Pocket PCs 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. DocumentList The 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 Smartphone Smartphone now supports the DataGrid control. Just like Pocket PC, the DataGrid control on Smartphone supports configurable column sizes, multiple display styles, data binding, null value handling, and events to track user cell selections. LinkLabel The LinkLabel control is a label control that is capable of displaying one or more hyperlinks. Splitter The Splitter control is a splitter bar that provides resizing capability to docked controls. ToolBar The ToolBar control is Windows toolbar that is capable of displaying images as buttons. User Controls The .NET Compact Framework 2.0 now supports user controls. With the addition of user controls, .NET Compact Framework 2.0 applications can now create controls graphically within Visual Studio 2005 and, just as the full .NET Framework, the .NET Compact Framework 2.0 user controls automatically appear on the control Toolbox and can be placed on forms by using drag-and-drop. Display and Layout Management The 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 .NET Compact Framework 2.0 provides many new layout and management features. Control Docking The .NET Compact Framework 2.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 Anchoring The .NET Compact Framework 2.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 Scrolling The 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 Scaling All 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 ResumeLayout The .NET Compact Framework 2.0 Control class now supports the SuspendLayout and ResumeLayout methods. Just as in the full .NET Framework, 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 properties The 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 Drawing To simplify the creation of rich user interfaces, the .NET Compact Framework 2.0 has added a number of features that allow applications to much more easily handle custom drawing. Rotatable Fonts The addition of the LogFont class to the .NET Compact Framework 2.0 provides support for displaying text at an angle and for incorporating other text effects. Custom Pens Applications can now create pens of a specific color and size. Bitmaps The .NET Compact Framework 2.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. DirectX Windows Mobile 5.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 .NET Compact Framework 2.0 developers who target Windows Mobile 5.0based devices, the DirectX feature set is available through the classes contained in the Microsoft.Windows.DirectX namespace and corresponding assembly. Keyboard Management An increasing number of smart devices now include keyboards. To allow managed developers to take advantage of the available keyboards, the .NET Compact Framework 2.0 provides enhanced support for keyboards. Note Some of the features mentioned in this section were added as part of the .NET Compact Framework 1.0 service packs but are mentioned here to be sure that everyone is aware that they are available. Tab Support Controls now support a tab order allowing application users to move between controls by pressing the tab key. Keyboard Events and Form.KeyPreview Controls 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. Data Data 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 .NET Compact Framework 2.0 provides a number of new data classes in addition to new features to existing classes. Updatable, Scrollable Access to SQL Server 2005 Mobile Edition The .NET Compact Framework 2.0 provides a new class for accessing a SQL Server 2005 Mobile Edition (SQL Mobile) 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. DataSet The DataSet class and related classes provide a number of new features. These features not only provide enhanced functionality but also bring the .NET Compact Framework DataSet class more in line with that of the full .NET Framework. GetChanges and Merge Methods The .NET Compact Framework 2.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 Method The .NET Compact Framework DataSet class now provides the Copy method. The Copy method returns a new DataSet containing the same structure and data as the original. DataTables Serialization The 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. XML The .NET Compact Framework 2.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 .NET Compact Framework XMLrelated classes much more in line with those available in the full .NET Framework. XPath Support The XmlDocument class now supports the SelectSingleNode and SelectNodes methodsboth of which provide the ability to search the document using XPath. XML Serialization The .NET Compact Framework 2.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 .NET Compact Framework 2.0 Web service proxy base classes. The new XmlSerializer class provides substantially improved performance over the mechanism used by the .NET Compact Framework 1.0 to serialize and deserialize Web service arguments thereby providing improved Web service call performance. XML Schema The .NET Compact Framework 2.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 Binding The new data binding class, BindingSource, is included in the .NET Compact Framework 2.0. The BindingSource is normally layered between one or more data bound controls and a data binding source. When used, the BindingSource class simplifies dat

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論