[BUG] Information label and bound value in CompareConverter
sample don't match
#1980
Closed
2 tasks done
Labels
area/converters
Issue/Discussion/PR that has to do with Converters
bug
Something isn't working
unverified
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
In the
CompareConverterPage
sample, theSlider
has a range of 0 to 10.The
ComparingValue
is set to 0.5.The label text informs the user:
As such, when the slider is a value of < 0.5 it indicates FALSE, but any value >= 0.5 it indicates TRUE. This does not match the label text, and is 0.5 instead of 5 (which is 50% of the slider range)
Expected Behavior
When the slider label is >=50% of it's range, the label should indicate TRUE, otherwise FALSE. As such, the
ComparingValue
should be 5 and not 0.5.Steps To Reproduce
Sample
solution from the repo.Converters
CompareConverter
Slider
to witness the bug.Link to public reproduction project repository
https://github.com/GeorgeLeithead/CommunityToolkitMaui
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: