Hi
I was trying to bind DoubleRange type property to the VisibleRange property of LogarimethicNumericAxis.
Since DoubleRange is not a primitive type, OnPropertyChanged command didn’t work in c#.
Is there any way to reslove this problem?
My code is as below.
in View
<sci:SciChartSurface.XAxis>
<sci:LogarithmicNumericAxis AutoRange="Never"
DrawMajorGridLines="False"
DrawMinorGridLines="False"
DrawMajorBands="False"
Visibility="Visible"
VisibleRange="{Binding Path=AxisVisibleRange,Mode=OneWay, UpdateSourceTrigger=PropertyChanged}">
</sci:LogarithmicNumericAxis>
</sci:SciChartSurface.XAxis>
in View model
public DoubleRange AxisVisibleRange
{
get
{
DoubleRange dr = new DoubleRange(0.1,100);
return dr;
}
}
- Yungjun Yoo asked 6 years ago
- last active 5 years ago