jsuarezruiz / AlohaKit.Controls

A set of .NET MAUI drawn controls.
MIT License
410 stars 46 forks source link

Slider Issues #52

Open BinaryAssault opened 1 year ago

BinaryAssault commented 1 year ago

I was working with the slider and ran into a few issues.

This is using vs 2022 preview 17.6 preview 1/A10

  1. Slider min/max are not honored. A max of X can result in values over X. Same with the minimum values
  2. Minimum cannot be negative. A negative minimum value breaks the slider from being usable
  3. Value reported is not accurate (may be related to #1). With a max of 1, sliding to 1 in my control sometimes is 1.(something) then the next time its 2.(something)

Simple xaml:

 xmlns:ak="clr-namespace:AlohaKit.Controls;assembly=AlohaKit"

 <ak:Slider
                    Grid.Column="0"
                    Grid.ColumnSpan="3"
                    Maximum="2" 
                    Minimum="0"
                    Value="{Binding Balance, Mode=TwoWay}" />