You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, my point was that you might need to convert it manually.. (from string to x). See the previous example.
Might be the same for the speed stuff.. could be that it's parsed as a string, but your control asks for a double. Adding a function to convert should solve that (or using the NumericOption which is more appropriate)
Activity
Arlodotexe commentedon Feb 24, 2023
@niels9001 I think you made changes here recently, any idea?
niels9001 commentedon Feb 24, 2023
@Arlodotexe @Avid29 CommunityToolkit/Labs-Windows#336 introduced changes in this space.
@Avid29 We now have the NumericOption (see example in the PR above) and is more appropriate. Could you try that to see if that works?
Avid29 commentedon Feb 24, 2023
@niels9001 I will try it for speed, however the
RepeatBehavioris still broken and requires the Multi-Choiceniels9001 commentedon Feb 24, 2023
See https://github.com/CommunityToolkit/Labs-Windows/blob/main/components/SegmentedControl/samples/SegmentedControlBasicSample.xaml.cs#L12
To parse strings to enum a concerting method is required. See the XAML/CS in the above file as a sample.
Avid29 commentedon Feb 24, 2023
RepeatBehavior is not an enum
niels9001 commentedon Feb 24, 2023
Yeah, my point was that you might need to convert it manually.. (from string to x). See the previous example.
Might be the same for the speed stuff.. could be that it's parsed as a string, but your control asks for a double. Adding a function to convert should solve that (or using the NumericOption which is more appropriate)
michael-hawker commentedon Feb 24, 2023
This seems related to this feature request I had added I think? CommunityToolkit/Labs-Windows#149