Tested a little bit the new handling of RequestForEvaluation() with OnMouseWheel and OnKeyPress events (as reported here I use timers to reduce the evaluations to the minimum necessary)
I've used the simple NumericUpDownRegion (SVN) for debugging.
- RequestForEvaluation seems triggered from the second wheel scroll, and when is triggered a previous value is sent to the worksheet. (BTW an Invalidate() now is required; this is not a problem but is by design or is a bug?)
From the RegionHolder:
- Using ForceEvaluation, all works fine.
void ForceEvaluation()
{
using (this.Parent.History.CreateTransaction())
{
this.RequestForEvaluation();
}
}
From the Region Canvas;
- ForceEvalueation as written above doesn't work at all.