This project is read-only.
1

Resolved

No needle is shown when gauge is initialized

description

it is collapsed in the UpdateAngle() method:
internal void UpdateAngle()
        {
            // TODO: Improve this...
            if (this.Value == double.NegativeInfinity)
            {
                Needle.Visibility = System.Windows.Visibility.Collapsed;
                return;
            }
<...>
I think, it is better to show the needle, but set it 10 (or so) degree left the first major mark:
internal void UpdateAngle() {
    if (this.Value == double.NegativeInfinity) {
        NeedleRotateTransform.Angle = StartAngle - 10;
        NeedleDropShadowEffect.Direction = StartAngle - 10;
        DrawElements();
        return;
    }
<...>
Image

file attachments

comments

wrote Nov 11, 2013 at 9:23 PM

Resolved with changeset 29680.

wrote Nov 11, 2013 at 9:23 PM

wrote Dec 1 at 5:17 AM