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
There seems to be an issue that whenever defining two ToolkitBoolOptions the source generator throws an error. Seems that whenever the second bool is bind to it crashes. Probably due to changes made in: CommunityToolkit/Labs-Windows#336
Tested with two ToolkitTextOptions and that seemed to work fine.
System.InvalidOperationException: Sequence contains no matching element at System.Linq.Enumerable.First[TSource](IEnumerable1 source, Func2 predicate) at SettingsControlsExperiment.Samples.SettingsExpanderSample.get_IsCardEnabled() in C:\Repos\Labs-Windows\labs\SettingsControls\samples\SettingsControls.Samples\CommunityToolkit.Labs.Core.SourceGenerators\CommunityToolkit.Labs.Core.SourceGenerators.ToolkitSampleOptionGenerator\SettingsControlsExperiment.Samples.SettingsExpanderSample.Property.IsCard
Describe the bug
There seems to be an issue that whenever defining two ToolkitBoolOptions the source generator throws an error. Seems that whenever the second bool is bind to it crashes. Probably due to changes made in: CommunityToolkit/Labs-Windows#336
This works:
This does not (see change in order):
Tested with two ToolkitTextOptions and that seemed to work fine.
System.InvalidOperationException: Sequence contains no matching element at System.Linq.Enumerable.First[TSource](IEnumerable
1 source, Func2 predicate) at SettingsControlsExperiment.Samples.SettingsExpanderSample.get_IsCardEnabled() in C:\Repos\Labs-Windows\labs\SettingsControls\samples\SettingsControls.Samples\CommunityToolkit.Labs.Core.SourceGenerators\CommunityToolkit.Labs.Core.SourceGenerators.ToolkitSampleOptionGenerator\SettingsControlsExperiment.Samples.SettingsExpanderSample.Property.IsCard
@Arlodotexe FYI
Steps to reproduce
Expected behavior
Not crash
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Additional context
No response
Help us help you
Yes, but only if others can assist.
The text was updated successfully, but these errors were encountered: