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
I attached WPF application that performs the same task.
public class AxisSettings : ObservableModel { public AxisSettings() { this.Visibility = Visibility.Visible; } private Visibility _visibility; public Visibility Visibility { get { return _visibility; } set { if (_visibility == value) return; _visibility = value; OnPropertyChanged("Visibility"); } } }
public abstract class ObservableModel : INotifyPropertyChanged { #region INotifyPropertyChanged public event PropertyChangedEventHandler PropertyChanged; protected void OnPropertyChanged(string propertyName) { PropertyChangedEventHandler handler = this.PropertyChanged; if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName)); } public void OnAsyncPropertyChanged(string propertyName) { if (PropertyChanged != null) { Deployment.Current.Dispatcher.BeginInvoke(() => { PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); }); } } #endregion }