SharpDevelop
SharpDevelop copied to clipboard
float property of custom user control are not handled correctly if negative
I have an UserControl (WinForms) that has a MinValue and MaxValue properties. Seems that both properties are setted to zero only switching from Source/Design.
I have a test case : www.stefanofraccaro.org/sd_bug.zip
How to reproduce :
Set MinValue to -80 Set MaxValue to -20 Switch to Source Code Switch to Design Mode MinValue is 0 (expected -80) MaxValue is 0 (expected -20)
SharpDevelop Version : 5.1.0.4936-Beta-3ea20cfa .NET Version : 4.5.50938 OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1 Current culture : Italian (Italy) (it-IT) Running under WOW6432, processor architecture: x86-64 Working Set Memory : 89828kb GC Heap Memory : 10793kb
The same project works correctly with SD 4.4 :bug:
There was a similar Bug in the WPF Designer! There were the Min/Max values of the Up/Down Controls wrong! Maybe something similar in Winforms?
Any news about this bug? I have a custom control with MinValue -100 and MaxValue +100 that changes everytime to 0-100 :-( If you don't have enough time, tell me please where I can look inside the SharpDevelop code
Similar problem with Chart.ChartArea.Axis.Minimum in particular (and other properties in the Chart). Currently I work round the problem by setting the properties in the form constructor
Any news about that?
any news about this?
I written a "patch" 2 year ago : is it possible to merge the patch? It is very small and seems to workaround the problem. Maybe a developer can write better the patch in no more than 5 minutes.
https://github.com/icsharpcode/SharpDevelop/pull/648/commits/59f894b9dce6157a8ca3e7de91039b8c64a86a25