04-10-2017 02:29 PM
Hi,
I'm trying to remove the axes and the lines from a Graph in WPF. Anyone know how to proceed?
Thanks!
Solved! Go to Solution.
04-10-2017 05:02 PM
You can set MajorGirdLines
to null
to hide the grid lines within the plot area, and you can set Visibility
to Collapsed
to hide the axis itself.
04-11-2017 07:23 AM - edited 04-11-2017 07:25 AM
Hi, Thanks for your response. For the axis it works, but I can't set MajorGirdLines to null.
<ni:Graph.Axes>
<ni:AxisDouble Visibility="Collapsed" MajorGridLines="null" x:Name="AxeX" Orientation="Horizontal" ScaleKind="LogarithmBase2" />
<ni:AxisDouble Visibility="Collapsed" x:Name="AxeY" Orientation="Vertical" ScaleKind="LogarithmBase2" />
</ni:Graph.Axes>
Can you help me please ?
Edit : Ok nevermind I found it 🙂
AxeX.MajorGridLines = null;
AxeY.MajorGridLines = null;
04-11-2017 09:30 AM
Sorry for not mentioning it before: in XAML, you can use Property="{x:Null}"
to set a property to null
.