TECHNOLOGY Preview - Windows Forms Technology Preview March 2004

xiaoxiao2021-03-06  57

Overview

Over the next several months, Microsoft will release more frequent builds of Visual Studio for our customers. These "Technology Previews" are intended to help customers plan for future projects, evaluate Microsoft's development tools, and provide feedback to Microsoft throughout the development process. They are not "alpha" or "beta" quality - they are truly interim builds and as such, minimal effort is made to ensure their stability and quality in some cases, features may simply work, while in others they may be quite unstable..

....................

Data binding

DataConnector and Datanavigator

These controls replace the DataContainer control. The DataConnector is a component that replaces the binding indirection and the DataNavigator is a control which offers the VCR controls from the DataContainer. The reason that the container model was dropped for binding indirection is that users often create their UI And the decapsulating the indirection code in a container Required Users to re-layout a formwhen all to bind to data.

BindingList

..................... ..

New Data Binding Design Experience

The editors for DataSource and DataMember properties have been redesigned. The DataSource editor now allows users to add new project data sources and it also allows binding to anything in the project data sources window.

DataGridView Control

The DataGridView Control Replaces The Gridview Control That..

New DataGridView Design Experience

.

The Column Editing Experience Has Been Simplified and Streamlined Since The Alpha.

Advanced Row-Level Customization

Row Template Support Has Been Added To Allow for Advanced Customization Scenarios Like The Inbox List in Outlook 2003. this is expected through the datagridview.rowTemplate property.

CLIPBOARD COPY Support

Automatic support for copy operations has been added to the DataGridView. Selecting a row and hitting ctrl c will copy the row to the clipboard. This can be customized using the ClipboardCopyMode property on DataGridView.

Linklabel Column / Cells

A new link cell / column type has been added to the DataGridView. This is very similar to a button cell, except that it is rendered like an HTML hyperlink. This new column type can be added through the "Edit Columns" or "Add Column Dialogs.

Tooltip Support

Default tooltip support has been added to the DataGridView. Each cell has a string ToolTipText property. Automatic tooltips can be disabled using the DataGridView.ShowCellTooptips property if more advanced tooltip support is desired.

Scrolling IMPROVEMENTS

Support for Automatic Horizontal and / or Vertical Scrolling During Drag Selections Has Been Added.

Toolstrip, Menustrip and StatusStrip Controls

Thase Controls Replace The Winbarxx Controls That WERE IN The Alpha Build.

Professional Look and Feel

ToolStrip, MenuStrip and StatusStrip all support a new professional look and feel. This is in addition to the system look and feel. Using the new RenderMode property, the look and feel of ToolStrips, MenuStrips and StatusStrips can be quickly changed.New Design Experience

The design experience for ToolStrip, MenuStrip and StatusStip has been overhauled since the alpha build. The new design is similar to the menu editor from Visual Studio .net 2003. Other improvements include item type morphing (changing a button item to a combobox item) and Smart Tag Support for Common Actions and Properties.

Rafting and Drag Docking

ToolStrips, MenuStrips and StatusStrips have added support for rafting (relocating a toolbar while still docked to the same side of a container) and drag docking. Rafting behavior can be modified using the Raft property.

Menu Merging

Automatic Menu Merging Support Has Been Added for MDI Scenarios. Because of this, Menustrips CAN Act As Full Replacements to the Mainmenu Control When Using MDI.

MaskedTextBox Control

This control is new since the alpha build. The control supports a mask language which is similar to Access and the VB6 MaskEd control. Support for TypeValidation is also included. This allows users to set the desired output data Type for the control and the control will Try and Parse The Input Text As That Type.

MaskedTextBox Mask Picker

IN A Visual Designer, The MaskedTextBox Mask Property Editor Launches A Dialog Which Contains a list of pre-defined masks and the ability to test Each Mask. This list is also customization by users.

Layout

Autorelocate Property

This property was called Pinned in the alpha build. It specifies whether a control should relocate on the Form if adjacent controls resize due to content changes. This is very helpful for localization scenarios.TableLayoutPanel Design Experience

The design experience for the TableLayoutPanel has been overhauled. Support for dragging controls to individual cells and resizing rows and columns has been added. Also, a smart tag has been added to help manage the rows and columns on a TableLayoutPanel.

Client Application Settings (config)

Client Configuration IS A New Feature for Storing Application and User Settings.

Config designtime

The design experience for config is similar to the dynamic properties design from Visual Studio .net 2003. Using this dialog will automatically generate a class that inherits from ApplicationSettingsBase with property definitions. This can be accessed through the "(ApplicationSettings)" property on each control .

Designer Features

Smart tags

. ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Snaplines

Snapline support has been extended since the alpha. Text baseline and margin / padding snaplines have been added. Also, snaplines now appear when resizing a control and when dragging a control from the toolbox. Also, snaplines are accessible from the keyboard by hitting ctrl An Arrow Key.

Document Outline

Context Menu Support Has Been Added To The Document Outline.

Edit Properties Mode

Edit Properties Mode Has Been Streamlined To Only Support String Based Properties. Also, The Look and Feel Has Been Changed To Help Highlight Which Control Is Being Modified.statusbar Size and Location

.

Sending feedback to Microsoft

We would really like to know what you think about these features. If you have suggestions for adding new features or for changing existing features, we'd like to know. Such feedback is very important and very useful for us to make Windows Forms better for Customers.

Thank you

转载请注明原文地址:https://www.9cbs.com/read-118677.html

New Post(0)