This project has moved. For the latest updates, please go here.

DoubleUpDown bug

Feb 27, 2013 at 9:50 PM
Edited Feb 28, 2013 at 7:00 PM
<strikeout>I have a control that has an adorner on it that's used to rotate the control. This control's rotation angle is also bound to a DoubleUpDown property item in the property grid. When I use the spin buttons on the updown to change the angle, it goes through the entire range of possible values (0-360). However, if I use the adorner to rotate the control, the number updown stops updating after the value reaches 180, and then it's set to zero.

I have the updown in an editor definition with Minimum set to 0, and Maximum set to 360, and the bound property is decorated with attributes like so:
    [MaximumInt32ValueFromStringRule(360, "Value must be between 0 and 360")]
    [MinimumInt32ValueFromStringRule(0, "Value must be between 0 and 360")]
Is it something I'm doing wrong?</strikeout>

Nevermind - it was a dumb programmer trick.