I think it is just a binding problem, you should implement INotifyPropertyChanged for your main class:
YourClass : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
PlotModel cloudLayerPlotModel;
public PlotModel CloudLayerPlotModel {
get{ return cloudPlotModel ; }
set
{
cloudPlotModel = value;
OnPropertyChanged("CloudLayerPlotModel");
}
}
protected void OnPropertyChanged(string name)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (handler != null)
{
handler(this, new PropertyChangedEventArgs(name));
}
}
}
I hope this will resolve your problem