MikeK Posted August 17, 2010 Report Posted August 17, 2010 When I change the visibility, shape, etc. of a series attribute it is not always updating live. To ensure I could reproduce the problem I took the AddiontalAxesAndPanes example provided and added a button to the window.xaml file. Then in the window.xaml.cs file I added the following code: private Visibility _visibility = Visibility.Collapsed; private void Button_Click (object sender, RoutedEventArgs e) { if (_visibility == System.Windows.Visibility.Visible) _visibility = System.Windows.Visibility.Collapsed; else _visibility = System.Windows.Visibility.Visible; foreach (var series in chart1.Series) { series.Marker.Size = 12; series.Marker.Shape = MarkerShape.Circle; series.Marker.Visibility = _visibility; } } When I click the button the markers do not become visible but if I change the date or seperate the panes it does become visible. What do I need to do to ensure the markers are updated when I change the SeriesAttribute.Marker properties. Thanks, Michael Quote
JuanC Posted August 18, 2010 Report Posted August 18, 2010 I copied your code "as is" and it worked fine, i.e. the chart got updated properly. Please check the version of ChartFX.WPF.dll that you are using and/or download our most recent hotfix/service pack. If you are using recent bits it might be necessary to reproduce the problem in a small standalone app so that we can test it here, as it might be related to other properties/state of the control. JuanC Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.