This project is read-only.
1

Resolved

Bug when AutoScale=true and MinValue is set

description

When AutoScale is set to True and I specify MinValue in XAML markup, the behavior is strange:
1)
Image
2) when I move to another cycle, I'm receiving all zeros,
Image
And in the rest, needle do not display adeqate value, because there is an offset between degree and percent increment calculations.

I worked around this issue by ignoring MinValue at all when AutoScale is set to True by modifying the code in the UpdateAngle() method:
if (this.AutoScale) {
    var v = GetGreatestValue();
    this.MaxValue = v.GetGaugeTop();
    MinValue = 0;
}
BTW, you made very good job on this control. I'm just trying to adapt it to my needs and fixing issues as possible.

file attachments

comments

wrote Nov 11, 2013 at 9:15 PM

Fixed using Camelot's code.

wrote Nov 11, 2013 at 9:17 PM

Resolved with changeset 29679.

tjscience wrote Nov 11, 2013 at 9:21 PM

** Closed by tjscience 11/11/2013 1:17 PM

wrote Nov 11, 2013 at 9:21 PM

wrote Nov 11, 2013 at 9:21 PM

wrote Dec 1 at 5:17 AM