Skip to content

fix: Native AOT crash when opening column filter flyout - #432

Merged
w-ahmad merged 2 commits into
mainfrom
fix/native-aot-filter-flyout
Sep 12, 2026
Merged

w-ahmad merged 2 commits into
mainfrom
fix/native-aot-filter-flyout

Conversation

@w-ahmad

@w-ahmad w-ahmad commented Sep 11, 2026

Copy link
Copy Markdown
Owner

Description

Fixes a XamlParseException that occurs when opening the column filter flyout in Native AOT applications.

TableViewFilterMenuFlyout.Items was exposed as IList<MenuFlyoutItemBase>. Under CsWinRT / Native AOT, this can be projected as IVector<MenuFlyoutItemBase>, which fails when XAML adds derived MenuFlyoutItem and MenuFlyoutSeparator instances to the collection.

This changes the property type to the concrete List<MenuFlyoutItemBase>, allowing the flyout items to be created correctly in Native AOT builds.

Related Issue

Closes #422

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 📝 Documentation update
  • ♻️ Refactor
  • 🧪 Test
  • 🔧 Chore / maintenance

Checklist

  • This PR is not from my main branch
  • Tested with WinUI target
  • Tested with Uno Platform target
  • Unit / integration tests added or updated
  • Documentation updated to reflect changes
  • Code follows the project's coding conventions

Screenshots / Recordings

Not applicable.

Additional Notes

This is a one-line type change from IList<MenuFlyoutItemBase> to List<MenuFlyoutItemBase> and does not change the behavior of the filter flyout outside of resolving the Native AOT collection projection issue.

@w-ahmad
w-ahmad merged commit 04e77df into main Sep 12, 2026
11 checks passed
@w-ahmad
w-ahmad deleted the fix/native-aot-filter-flyout branch September 12, 2026 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Native AOT] v1.5.0-preview1 crashes when creating the column filter flyout

1 participant