The designer host works with the design-time environment to manage designer state, activities (such as transactions), and components.
设计器宿主使用设计时环境来管理设计器状态、活动(例如,事务)和组件。
When users select components, the SetSelectedComponents method is called by the design-time environment with the selected components.
当用户选择组件时,SetSelectedComponents方法由带有所选组件的设计时环境调用。
The design-time environment provides a forms designer and a properties editor to allow you to manipulate components and build user interfaces.
设计时环境提供了一个窗体设计器和一个属性编辑器,以使您可以操纵组件和生成用户界面。
The design-time environment uses the IDictionaryService on every site to maintain a data table that is used throughout the designer framework.
设计时环境使用每个站点上的IDictionaryService来维护在整个设计器框架中使用的数据表。
Each time the method is called, the design-time environment tells us which components are affected and how (via the SelectionTypes enumeration).
每次调用该方法时,设计时环境都会告诉我们哪些组件受到了影响,以及受到了怎样的影响(通过selectiontypes枚举)。
Designers who want to modify the metadata available to the design-time environment for the component they are designing can do so by implementing IDesignerFilter.
如果设计器希望为它正在设计的组件修改设计时环境可用的元数据,则可以通过实现IDesignerFilter来完成该工作。
Now that you understand the basic concepts behind the design-time environment, I'll build upon them by examining the architecture of the forms designer (see Figure 3).
既然您已经了解了设计时环境背后的基本概念,那么我将以它们为基础来分析窗体设计器的体系结构(请参见图3)。
When a user right-clicks a TAB control on the design surface, the design-time environment calls the ShowContextMenu method on the IMenuCommandService (see Figure 11).
当用户右键单击设计图面上的选项卡控件时,设计时环境将调用IMenuCommandService上的ShowContextMenu方法(请参见图11)。
The function of middleware is to provide a simplified run-time and design-time environment and to help user integrate more flexible and complicated application system.
中间件的作用是为处于自己上层的应用软件提供运行与开发的环境,帮助用户灵活、高效地开发和集成复杂的应用软件。
The IComponent interface is the fundamental contract between the design-time environment and an element to be hosted on a design surface (such as the Visual Studio forms designer).
IComponent接口是设计时环境和要在设计图面(例如,VisualStudio窗体设计器)上承载的元素之间的基本协定。
As you drag and drop components from the toolbox onto the design surface, the design-time environment USES an implementation of INameCreationService to generate each component's name.
当您将组件从工具箱中拖放到设计图面上时,设计时环境会使用INameCreationService的实现来生成每个组件的名称。
The final step in the process is to hook the service implementation into the design-time environment, which I'll demonstrate how to do after I discuss how to implement the designer host.
该过程的最后一步是将服务实现挂钩到设计时环境中—在讨论完如何实现设计器宿主之后,我将演示如何进行挂钩。
It also defines methods for component changed and changing events, which are called by the design-time environment when a component is changing or has changed (such as when a property is changed).
它还为组件的已更改事件和正在更改的事件定义了方法,当组件正在更改或已经更改时(例如,当属性更改时),这些方法由设计时环境调用。
It also defines methods for component changed and changing events, which are called by the design-time environment when a component is changing or has changed (such as when a property is changed).
它还为组件的已更改事件和正在更改的事件定义了方法,当组件正在更改或已经更改时(例如,当属性更改时),这些方法由设计时环境调用。
应用推荐