Thank you, for your immediate response. I thnk, your solution works fine in case of a pure C# program. But what I like to have is a C#/WPF solution with MVVM pattern. That is, I have
1.) a model for the function f(x). The evaluation of this function yiels the Points and depends on the limits of x: XMin, XMax.
public
double XMin {
get;
set; }
public
double XMax {
get;
set; }
public IList<DataPoint> Points{
get {
return evaluatedPoints; } }
2.) a view model where OnPropertyChanged of the Points and the changed limit is raised.
public IList<DataPoint> Points {
get { return model.Points; } }
public double XMax // same for XMin
{
get { return model.XMax; }
set
{
model.XMax =
value;
OnPropertyChanged("XMax");
OnPropertyChanged("Points");
}
}
3.) a WPF view where the axis properties are modified. With respect to XMax we have for instance
<oxy:Plot.Axes>
<oxy:LinearAxis
Position="Bottom">
<oxy:LinearAxis.Maximum>
<Binding Mode="TwoWay"
Path="XMax"
Source="{StaticResource viewModel}"
UpdateSourceTrigger="PropertyChanged" />
</oxy:LinearAxis.Maximum>
</oxy:LinearAxis>
<oxy:Plot.Axes/>
The problem is that there is no dependency property for ActualMaximum and ActualMinimum. Of course, I could implement this. But I don't like this approach, because than I am modifying your library. As a consequence I have to do this modification for all
future versions.
To this end, I would like to ask you, if you can do this?
