Skip to content

Is WinUI.TableView suitable for AOT ? #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DiagProf opened this issue May 8, 2025 · 0 comments
Open

Is WinUI.TableView suitable for AOT ? #140

DiagProf opened this issue May 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@DiagProf
Copy link

DiagProf commented May 8, 2025

First of all, thank you for the project.

I have a Winui3 application where I managed to set everything up so that it compiles AOT.

But now I'm failing with the WinUI.TableView.

As soon as I set PublishAot to true true I get this error:

ICustomProperty support used by XAML binding for type 'WinUI.TableView.TableViewRow' (property 'TableView') 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.

Unfortunately, I have no idea what I could do to solve the problem.

Attached is a small example project.

TableViewTest.zip

It would be nice if there was a solution. I just need the TableView as a display without any bells and whistles.
Thanks!

@DiagProf DiagProf added the bug Something isn't working label May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant