Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Property editor

I have two waveform plots and  one Property editor component. When I check RadioButton1 I want to edit property of WaveformPlot1 ( change PropertyEditor source /object to WaveformPlot1 ), or when i check RadioButton2 I want to edit property of WaveformPlot2. How to change PropertyEditor source/object programmatically ? Thank you in advance.

0 Kudos
Message 1 of 2
(2,946 Views)

MMozart,

 

I programmed an example of this and have uploaded it to our community site.

 

Community Example

 

 

I used the following line of code to change the source of the property editor.

 

 

propertyEditor1.Source = new PropertyEditorSource(waveformGraph1, "Visible");

 

 

Here I was testing the functionality with an easily recognizable property, visible, but you could replace it with any other property you want to edit.

 


National Instruments
0 Kudos
Message 2 of 2
(2,925 Views)