Quantcast
Channel: OxyPlot (moved to GitHub)
Viewing all articles
Browse latest Browse all 2061

New Post: Trouble getting plot to refresh

$
0
0
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

Viewing all articles
Browse latest Browse all 2061

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>