- Home
- Forum
- Xamarin.Forms
- Setting TickFrequency equal or higher as Maximum causes an error on iOS
Setting TickFrequency equal or higher as Maximum causes an error on iOS
Hi,
I'm setting the TickFrequency to the same number as the Maximum to achieve no only a tick on start and end.
However this is causing issues on iOS.
<range:SfRangeSlider
LabelFormat="{}{0:N0} %"
Orientation="Horizontal"
WidthRequest="135"
HeightRequest="36"
Value="{Binding Multiplier}"
Margin="0,4"
Minimum="50" Maximum="200"
StepFrequency="1"
TickFrequency="200"
ShowValueLabel="True"
ValueChangeMode="Default"
>
<range:SfRangeSlider.Behaviors>
<behaviors:EventToCommandBehavior
EventName="ThumbTouchUp"
Command="{Binding SetFlowMultiplierCommand}"
/>
</range:SfRangeSlider.Behaviors>
</range:SfRangeSlider>
Once I set the TickFrequency slower than the Maximum, the error below disappears.
2021-01-16 10:06:54.119247+0100 RemoteControlRepetierServer.iOS[47948:487747] [Unknown process name] Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.
2021-01-16 10:06:54.119528+0100 RemoteControlRepetierServer.iOS[47948:487747] [Unknown process name] If you want to see the backtrace, please set CG_NUMERICS_SHOW_BACKTRACE environmental variable.
2021-01-16 10:06:54.119642+0100 RemoteControlRepetierServer.iOS[47948:487747] [Unknown process name] CGContextAddLineToPoint: no current point.
2021-01-16 10:06:54.119762+0100 RemoteControlRepetierServer.iOS[47948:487747] [Unknown process name] Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.
2021-01-16 10:06:54.119889+0100 RemoteControlRepetierServer.iOS[47948:487747] [Unknown process name] If you want to see the backtrace, please set CG_NUMERICS_SHOW_BACKTRACE environmental variable.
2021-01-16 10:06:54.120003+0100 RemoteControlRepetierServer.iOS[47948:487747] [Unknown process name] CGContextAddLineToPoint: no current point.
2021-01-16 10:06:54.153740+0100 RemoteControlRepetierServer.iOS[47948:487747] [Unknown process name] Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.
2021-01-16 10:06:54.153933+0100 RemoteControlRepetierServer.iOS[47948:487747] [Unknown process name] If you want to see the backtrace, please set CG_NUMERICS_SHOW_BACKTRACE environmental variable.
2021-01-16 10:06:54.154052+0100 RemoteControlRepetierServer.iOS[47948:487747] [Unknown process name] CGContextAddLineToPoint: no current point.
2021-01-16 10:06:54.154174+0100 RemoteControlRepetierServer.iOS[47948:487747] [Unknown process name] Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.
2021-01-16 10:06:54.154261+0100 RemoteControlRepetierServer.iOS[47948:487747] [Unknown process name] If you want to see the backtrace, please set CG_NUMERICS_SHOW_BACKTRACE environmental variable.
2021-01-16 10:06:54.154369+0100 RemoteControlRepetierServer.iOS[47948:487747] [Unknown process name] CGContextAddLineToPoint: no current point.
I also tried to set TickFrequency to 0, this solves the issue as well, however the first and last tick is not shown.
Thanks for looking into this.
SIGN IN To post a reply.
2 Replies
1 reply marked as answer
AR
Andreas Reitberger
January 16, 2021 09:15 AM UTC
Ok, I figured out that this only happens if the Minimum is not 0. Once I set it the Minimum to 0, the error also disappears.
Hope this helps.
Thank you,
Andreas
Andreas
SS
Suganya Sethuraman
Syncfusion Team
January 18, 2021 07:10 AM UTC
Hi Andreas,
Greetings from Syncfusion.
We have analyzed your query. We have prepared the sample based on the code snippet provided. We would like to let you know that we have to set TickFrequency to be less than or equal to the difference between Maximum and Minimum as below the code snippet,
Code Snippet
Greetings from Syncfusion.
We have analyzed your query. We have prepared the sample based on the code snippet provided. We would like to let you know that we have to set TickFrequency to be less than or equal to the difference between Maximum and Minimum as below the code snippet,
Code Snippet
|
<range:SfRangeSlider
LabelFormat="{}{0:N0} %"
Orientation="Horizontal"
WidthRequest="135"
HeightRequest="36"
Value="100"
Minimum="50"
Maximum="200"
StepFrequency="1"
TickFrequency="150"
ShowValueLabel="True"
ValueChangeMode="Default"/> |
Please have the sample for your reference,
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/SfRangeSliderSample-672340307
Please let us know if you have any concerns.
Regards,
Suganya Sethuraman.
Marked as answer
SIGN IN To post a reply.
- 2 Replies
- 2 Participants
- Marked answer
-
AR Andreas Reitberger
- Jan 16, 2021 09:11 AM UTC
- Jan 18, 2021 07:10 AM UTC