Languages

Menu
Sites
Language
Stepper control is broken

   It looks like the stepper control is really broken. I'm trying to use it in Tizen.NET Xamarin wearable application. In the XAML I put a stepper control

 

        <Stepper Grid.Column="0" Grid.ColumnSpan="2" Margin="0,-38,0,0" Value="{Binding Parameter.UnitValue}" Increment="0.4" Minimum="0" Maximum="999" />

 

 

   In the result the sequence of numbers in absolutely surprising. It goes like this: 0; 0; 1; 1.2; 1.6; 2.0; 2.4; 3; 3.2; 3.6; 4.0; 4.4; 5; 5.2 and so on. I would expect it to be: 0; 0.4; 0.8; 1.2; 1.6; 2.0; 2.4; 2.8; 3.2; 3.6; 4.0; 4.4; 4.8; 5.2. It seems the control tries to render whole numbers. It renders 3 instead of 2.8 and then 5 instead of 4.8. In the beginning somehow it renders just zeros. I tried to use Increment 0.5 the result was suprising as well. In some cases it displays N.0 in other cases it displays just N. For example it can display 23.0; 23.5; 24.0; 24.5 but then suddenly 25; 25.5; 26; 26.5.

   Am I missing something? Is there a way to make it work in a predictable manner?

Thank you

 

Responses

1 Replies
Tizen .NET

Hello. Thanks for reporting an issue.

The issue has been specified and fixed on Tizen Stepper renderer. This fix will soon be applied on Xamarin.Forms. 

We will update you when it's released.

Thanks.