Hello. I'm using Ultimate edition complect of your UI elements. I'm trying create a chart that have 2 possible state. First state have one Y axis and one ScatterLineSerie. Second state have two axis and two ScatterLineSerie (this state shown on the picture). All states a build on the same axis(Time). Values of Max, Min, Color and Visibility of axis are binded to the properties in VM. Axis of first state and one of the axis of second state positinated at the left.
Problem that after binding (and not only binding, even if manual set) axis that must be Collapsed are not collapsed (shown on the picture with red rectangle). At the same time Axis stroke are not visible.
Kind regards,
Alexey
Is there now (Version 12.1) a more direct possibility to bind the axis-Visibility to e.g. a Checkbox?In my case, using a booleanToVisibility converter, the lineseries is already hiding but the axis of the series is still visible and doesn't care about the Visibility-Binding.
Hello.
And today is only good news. It's worked needed axis a hided.
Thank's for reasonable solution.
I have found out from our Engineering team that the AxisLabelSettings is not part of the logical tree in the current version of xamDataChart control. As result it does not inherit the DataContext that I set in my sample solution and this is why all three axes were shown on screen. However, there is a work around that you can use to change the visibility of axis labels based on the state of data.
The work around for the issue of binding to properties of AxisLabelSettings is as follows:
1 Defined the data view model as a resource
<Window.Resources> <models:DataViewModel x:Key="dataVM" /> </Window.Resources>
2 Bind the data view model to the AxisLabelSettings by specifying source to a static resource
<ig:NumericYAxis.LabelSettings> <ig:AxisLabelSettings Extent="60" Visibility="{Binding Source={StaticResource dataVM}, Path=DataStates[0].LeftAxisSettings.Visibility}" Location="OutsideLeft" /> </ig:NumericYAxis.LabelSettings>
I attached revised version of my sample project with the work around so you can try it on your own. Let me know if you have more questions about this or if something is not clear.
And one thing more. Previous post was also mine))
Hi mtrela.
First of all thanks for quick reply and for good example.
But... I don't sure it was misunderstooded mistake or something going wrong on my PC.
Cauz I have an a result of switching that the all three axis are shown on screen.
Anyway. I continue to digging around my problem. If you have any suggests why this can happens, it will be good.
P.S. I check this problem on 2 PC's. With same installed options. Check on version 10.3.20103.2196, 10.3.20103.2018 and 10.3.20103.1003/