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
I'm trying to enable NativeAOT compilation for my app.
I am using Community Toolkit 8.2 Preview 2 (with CsWinRT 2.2) in WinAppSDK/WinUI 1.6.4 on .NET 9.0.1
With AOT enabled, when I click on a ColorPickerButton, which should show a ColorPicker my app crashes with a NotSupportedException. It works perfectly without AOT.
'ICustomProperty support used by XAML binding for type 'CommunityToolkit.WinUI.Controls.SegmentedItem' (property 'Name') requires the type to marked with 'WinRT.GeneratedBindableCustomPropertyAttribute'. If this is a built-in type or a type that can't be marked, a wrapper type should be used around it that is marked to enable this support.'
Describe the bug
I'm trying to enable NativeAOT compilation for my app.
I am using Community Toolkit 8.2 Preview 2 (with CsWinRT 2.2) in WinAppSDK/WinUI 1.6.4 on .NET 9.0.1
With AOT enabled, when I click on a ColorPickerButton, which should show a ColorPicker my app crashes with a NotSupportedException. It works perfectly without AOT.
Steps to reproduce
My colorpickerbutton looks like this:
Expected behavior
No exception
Screenshots
Can provide if required.
Code Platform
Windows Build Number
Other Windows Build number
Windows 11 24H2 (Build 26100)
App minimum and target SDK version
Other SDK version
Windows 11, version Build 22621
Visual Studio Version
2022
Visual Studio Build Number
Version 17.12.4
Device form factor
Desktop
Additional context
I believe this Binding in ColorPicker might be at fault:
Windows/components/ColorPicker/src/ColorPicker.xaml
Line 241 in 9830e43
And I can indeed, like the exception says, not find any GeneratedBindableCustomProperty attribute on SegmentedItem.
Help us help you
No, I'm unable to contribute a solution.
The text was updated successfully, but these errors were encountered: