How to bind scatter series points from one window to another window having same scatter chart at runtime?
如何在运行时将散射系列点从一个窗口绑定到另一个具有相同散点图的窗口?
I have a resulted scatter chart points in one window, and I want to perform different operation on the same points in another window.
我在一个窗口中有一个结果散点图点,我想对另一个窗口中的相同点执行不同的操作。
thanks in advance
提前致谢
1 个解决方案
#1
1
If you are using MVVM, you can bind the source of your scatter charts to a property in a viewmodel/class.
如果您使用的是MVVM,则可以将散点图的源绑定到viewmodel / class中的属性。
For example:
例如:
private Series _plotVariable;
public Series PlotVariable
{
get
{
return _plotVariable;
}
set
{
_plotVariable = value;
}
}
If you bind the source of your scatter charts to PlotVariable, when your class sets the value of _plotVariable, the scatter charts will update.
如果将散点图的源绑定到PlotVariable,则当您的类设置_plotVariable的值时,散点图将更新。
#1
1
If you are using MVVM, you can bind the source of your scatter charts to a property in a viewmodel/class.
如果您使用的是MVVM,则可以将散点图的源绑定到viewmodel / class中的属性。
For example:
例如:
private Series _plotVariable;
public Series PlotVariable
{
get
{
return _plotVariable;
}
set
{
_plotVariable = value;
}
}
If you bind the source of your scatter charts to PlotVariable, when your class sets the value of _plotVariable, the scatter charts will update.
如果将散点图的源绑定到PlotVariable,则当您的类设置_plotVariable的值时,散点图将更新。