SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
I do not seem to be able to set the property YAxis.Visibility of BaseRenderableSeries as part of a Trigger.
<Style TargetType="s:BaseRenderableSeries"> <Style.Triggers> <Trigger Property="IsVisible" Value="True"> <Setter Property="YAxis.Visibility" Value="Visible"/> </Trigger> <Trigger Property="IsVisible" Value="False"> <Setter Property="YAxis.Visibility" Value="Collapsed"/> </Trigger> </Style.Triggers> </Style>
I want to make the associated yAxis Visiblity be a function of whether the matching Renderable Series is visible or not. I checked and BaseRenderableSeries has a YAxis property that can be set. Why is “YAxis.Visibility” in the setter property throwing an error in xaml?
Note: I have multiple yAxes in one surface and each renderable series has its own yAxis
What error is it showing in XAML?
I’m guessing that because BaseRenderableSeries.YAxis is not a dependency property, the trigger won’t work.
What about workaround around this by having an attached behaviour that modifies BaseRenderableSeries.YAxis.Visibility directly?
Please login first to submit.