Automatic Scaling
All ContainerControl derived controls, such as the Form control, now provide the AutoScaleMode property. The AutoScaleMode property本文来自辣.文~论^文·网原文请找腾讯32491.14 for. When set to AutoScrollMode.Dpi, all child controls of the container control are scaled to match the runtime display's 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
ICPS训练课程案例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.0–based 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. 本文来自辣.文~论^文·网原文请找腾讯324.9114 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 instance's corresponding event handler.
上一页 [1] [2] [3] [4] [5] 下一页
asp.net-Framework外文参考文献和翻译 第3页下载如图片无法显示或论文不完整,请联系qq752018766