unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
9.08k stars 739 forks source link

`Slider` in Droid only allows negative values if the Minimum property is set to a negative value #5403

Closed jasonxz closed 1 year ago

jasonxz commented 3 years ago

Current behavior

When setting the Minimum property of a Slider to a negative number, the Maximum is automatically set to 0.

Expected behavior

Setting the Minimum should not affect the Maximum as long as the Minimum is less than or equal to the set Maximum.

How to reproduce it (as minimally and precisely as possible)

The following XAML will produce a Slider with Minimum of -500 and a Maximum of 0 (even though Maximum is explicitly set to 500). <Slider Margin="4,0" Maximum="500" Minimum="-500"/> Carousel.zip

Workaround

If you set Minimum before Maximum, this works correctly: <Slider Margin="4,0" Minimum="-500" Maximum="500"/>

Environment

Nuget Package:

Nuget Package Version(s):

Affected platform(s):

IDE:

Relevant plugins:

Anything else we need to know?

MartinZikmund commented 1 year ago

This seems to be working correctly now