對使用者的意見反應Feedback to the user

Visual StudioVisual Studio 整合式開發環境 (IDE) 中,有關可用功能的視覺化意見反應是以使用者目前的選取範圍和全域選取內容為基礎。In the Visual StudioVisual Studio integrated development environment (IDE), visual feedback regarding available functionality is based on the user's current selection and global selection context. 下表列出不同的選取內容中可用的功能。The following table lists the functionality that is available in different selection contexts.

選取內容Selection context 可用的功能Available functionality
IDEIDE 全球Global
目前的產品集Current product set 特定產品Product specific
主動階層Active hierarchy 階層類型特定Hierarchy type specific
現用階層專案Active hierarchy item 階層專案類型特定Hierarchy item type specific
活動文檔Active document 特定檔案類型Document type specific
(MDI) 視窗的最上層多重文件介面Topmost multiple-document interface (MDI) window 特定視窗類型Window type specific
目前的選取範圍內容Current selection context 選取內容特定Selection context specific

如果您只是要呈現使用者所需的功能,並持續提供一致的選取範圍和環境內容回饋,您就可以降低 IDE 中的複雜度。If you only surface the functionality users need and continually provide consistent selection and environment context feedback, you reduce the complexity in the IDE. 當視窗在 IDE 中開啟時,適用下列規則:The following rules apply whenever a window is opened in the IDE:

  • 如果視窗變更其選取內容,則會在視窗中清楚指出選取的意見反應,而且 動態 說明視窗(如所示)會更新以反映目前的內容。If the window changes its selection context, selection feedback is clearly indicated in the window, and the Dynamic Help window, if shown, is updated to reflect the current context.

  • 如果視窗變更全域選取內容,則會更新所有內容特定的功能表、作用中的階層視窗和應用程式標題列,以反映目前的內容。If the window changes global selection context, all context-specific menus, the active hierarchy window, and the application title bar are updated to reflect the current context.

  • 視窗應該會在 [ 屬性 ] 視窗中顯示目前選取範圍的屬性,並選擇性地呈現 [ 屬性頁 ] 對話方塊。The window should surface properties for the current selection in the Properties window and optionally, if shown, the Property Pages dialog box.

  • 如果視窗未顯示 [屬性] 或 [變更全域選取內容],當它不再是 IDE 中的使用中視窗時,就不應該將選取的意見反應保留在視窗中。If the window does not surface properties or change global selection context, selection feedback should not remain in the window when it is no longer the active window in the IDE.

  • 所有檔特定工具視窗都應該持續反映使用中的檔。All document-specific tool windows should continually reflect the active document.

  • 功能表、工具列和應用程式標題列應該會反映 (MDI) 用戶端視窗的最上層多重文件介面。Menus, toolbars, and the application title bar should reflect the topmost multiple-document interface (MDI) client window.

    例如,當開啟 Visual Basic Web 應用程式專案內的 Web 表單 HTML 視圖,而且使用者選取 <td> 標記時,會以下列方式提供意見反應:For example, when the HTML view of a Web Form inside a Visual Basic Web Application project is opened and the user selects a <td> tag, feedback is provided in the following manner:

  • 選取範圍會顯示在使用中視窗中,並反映在 [ 屬性 ] 視窗中。Selection is indicated in the active window and reflected in the Properties window.

  • 檔特定的 工具箱 會更新,以反映使用中的檔。The document-specific Toolbox is updated to reflect the active document.

  • 編輯器 工具列和 資料表 功能表隨即顯示,且標題列會更新以反映 Web 表單視窗。The Editor toolbar and Table menu are displayed and the title bar updates to reflect the Web Form window.

  • 使用中的階層視窗(通常是 方案總管)及其標題列更新,以反映目前的內容,而且即時線上的 [ 專案 ] 功能表命令會套用至使用中的 Web 應用程式專案。The active hierarchy window, which is typically Solution Explorer, and its title bar update to reflect the current context and the context-sensitive Project menu commands now apply to the active Web Application project.

另請參閱See also