04-06-2018 05:39 AM
Hi,
We are using NationalInstrument.Controls.Graph from Measurement Studio 2015 in our C# WPF projects. And we just found that, after doing some zooming in, the right edge of the plot area stretches to the right in length. Is there a way to freeze the plot area in its size programmatically? Please find attached the before and after snapshots.
Thank you very much,
OxTS
Solved! Go to Solution.
04-06-2018 10:19 AM
You can use DesiredPlotAreaMargin
to read the size requested by all of the scales, and use PlotAreaMargin
to specify a fixed value for any or all of the edges. For example, graph.PlotAreaMargin = new Thickness( double.NaN ) { Right = 100 }
will fix the right edge at 100 pixels wide, and let the other sides continue to match the DesiredPlotAreaMargin
produced by the scales.
04-09-2018 04:57 AM
Hi Paul,
graph.PlotAreaMargin is just what I was looking for. Thank you very much!
~OxTS