Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2085
XamDataChart CategoryDateTimeXAxis Layout Space Preserved When Hidden
posted

I have the following XAML which creates several X-axes, all but one should not be displayed.  When the application runs, screen layout space is still reserved for these "hidden" axes instead of the XamDataChart expanding to the bottom of the available display area.  How can I truly hide/collapse these axes?

        <ig:XamDataChart x:Name="PhysAnalysis" VerticalZoomable="True" HorizontalZoomable="True" Grid.Row="1" Grid.Column="0">
            <ig:XamDataChart.Axes>
 
                <ig:CategoryDateTimeXAxis x:Name="_1_xAxis" DateTimeMemberPath="XOADate" Visibility="Collapsed" />
                <ig:CategoryDateTimeXAxis x:Name="_2_xAxis" DateTimeMemberPath="XOADate" Visibility="Collapsed" />
 
                <ig:CategoryDateTimeXAxis x:Name="_3_xAxis" DateTimeMemberPath="XOADate" Visibility="Collapsed" />
                <ig:CategoryDateTimeXAxis x:Name="_4_xAxis" DateTimeMemberPath="XOADate" Visibility="Collapsed" />
 
                <ig:NumericXAxis x:Name="visible_xAxis" Title="xAxis" />
                <ig:NumericYAxis x:Name="visible_yAxis" Title="yAxis" />
 
            </ig:XamDataChart.Axes>
            <ig:XamDataChart.Series>

Parents
No Data
Reply
  • 34810
    Verified Answer
    Offline posted

    Hello Gary,

    Thank you for your post.

    By setting the Visibility property of the axis in this case, you are hiding the axis, but the space for the labels will still be reserved, as the axis label panels will still be visible. To truly collapse the space needed for the axis and its labels, I would recommend defining an AxisLabelSettings element under your CategoryDateTimeXAxis.LabelSettings. This AxisLabelSettings element has a Visibility property, which I would recommend setting to "Collapsed." This should collapse the space needed for the labels as well as the space for the axis.

    I hope this helps. Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Associate Developer
    Infragistics Inc.
    www.infragistics.com/support

Children