10-01-2013 08:33 AM - edited 10-01-2013 08:35 AM
I do not like WPF. I don't like data binding. For me, there's nothing better than graph.Plots[0].PlotXY(x, y).
I have done a project with Measurement Studio 2013 using WPF so I do have experience using it.
My question is, for future projects, will the Measurement Studio for Winforms continue to be supported?
10-01-2013 04:09 PM
You can use either WPF or Windows Forms controls according to your preference. The product life cycle page currently describes the policy from a VS/OS platform perspective, but I have asked for an update to answer your question. You may also be interested in the opinion in this question: Winforms controls in a WPF GUI.
Note that the WPF and the Windows Forms graphs support the same data scenarios, although with different APIs. Data binding is an option on both the WPF and Windows Forms controls, but it is not a requirement. As an example, with the extension method below you can update the data in a WPF graph with the graph.Plots[0].PlotXY(x, y)
code snippet you showed earlier:
public static class PlotExtensions {
public static void PlotXY( this Plot plot, double[] xData, double[] yData ) {
Point[] data = new Point[xData.Length];
for( int i = 0; i < data.Length; ++i )
data[i] = new Point( xData[i], yData[i] );
Graph graph = (Graph)plot.GraphParent;
graph.Data[plot.Index] = data;
}
}
10-02-2013 06:17 AM - edited 10-02-2013 06:20 AM
Thanks for the reply Paul. I understand that I can use Winforms or WPF. However, I don't want to use WPF at all.
Thanks for the code snippet too. I was too hung up on the data binding thing and didn't even consider extension methods.
Good info in the link you provided, but it didn't answer my question.
If I could rephrase it I'd ask it this way:
Will the Winforms side of measurement studio will continue to be developed (or at least supported) along side of WPF?
10-02-2013 09:41 AM
Hi WayneS1234,
Our current plan is to continue to support and maintain the existing Measurement Studio Windows Forms controls as long as the Microsoft .NET Framework supports Windows Forms. We do not currently have any plans to enhance the Measurement Studio Windows Forms controls.
Warm Regards,