10-07-2005 03:33 AM
10-07-2005 11:23 AM
Design-time support for Windows Forms controls depends on several designer services. Several of these services are listed in the System.ComponentModel.Design namespace. These services are available at design-time because they are implemented by the designer. Only a subset of these services are available at run-time, though, because the services that are only implemented by the designer are not available. If you're using the type editors at run-time via PropertyGrid, the editors only have access to services that are implemented by PropertyGrid.
The drop-down editor to select the plot for the XYCursor.Plot property depends on IReferenceService. It uses IReferenceService.GetReferences to find the plot references that can be set to the XYCursor.Plot property, and then it uses IReferenceService.GetName to get the name of the reference to display in the drop-down.
IReferenceService is a designer service interface that is implemented by the designer, but is not implemented by PropertyGrid. Therefore, editors that depend on IReferenceService, such as the editor for XYCursor.Plot, cannot support the same functionality at run-time as they do at design-time when they're accessed via PropertyGrid.
- Elton
10-10-2005 02:09 AM