Thanks. I've mostly figured out a workaround at this point, but maybe you can suggest a better way. The situation is that I have subclassed ScatterPlot and ScatterGraph in order to extend the functionality (lets say mine are called MyScatterGraph and MyScatterPlot). I want to allow the user to add new plots to MyScatterGraph and I was using a PropertyGrid to display the MyScatterGraph properties to the user (which displays the inherited properties from ScatterGraph). However, when they clicked the [...] button for the Plots property (which is of type ScatterPlotCollection), the property grid displayed an instance of:
NationalInstruments.Design.UI.XYPlotCollectionEditor
The XYPlotCollectionEditor's Add button creates instances of ScatterPlot instead of MyScatterPlot. The workaround is that I created a wrapper class for ScatterPlotCollection along with a custom editor (MyPlotCollectionEditor), that creates instances of MyScatterPlot when the add button is pressed.
Let me know if there is an easier way of accomplishing this. Also, do you know if it is legal for a measurement studio licensee to redistribute the NationalInstruments.Design.DLL assembly with their application? Thanks again.
- Dave