09-14-2013 10:06 PM - edited 09-14-2013 10:36 PM
For reasons I don't understand, my company has site licenses for Visual Studio and Measurement Studio 2010 and not for the current 2012 versions. The 2010 Measurement Studio only has controls for Winforms. I am making an automation program that I want to last at least ten years before obsolescence. I want to use the Intensity Graph, but it is only available in Winforms, not WPF. I can re-create the Intensity Graph functionality using WPF, but this feels like re-inventing the wheel. Is it possible to use the IntensityGraph Winforms control in a WPF GUI? Do I run a big risk of obsolescence in the next few years if I build the whole GUI with Winforms (this is what I get told on StackOverflow)?
09-16-2013 11:11 AM
You can use a WindowsFormsHost
to display a Windows Forms control in a WPF application.
For others that might visit this question, there is a WPF IntensityGraph
implementation in Measurement Studio 2012 and later.
Since Windows Forms is based on the Win32 API, it is unlikely Microsoft would declare it "obsolete" (as in "discontinued/unsupported") while they still support the Desktop. That said, I do not believe Microsoft is doing any active development on Windows Forms, and it is not very amenable to modern software design practices, so it could be considered "obsolete" in that sense.