Skip to content

Fix the issue causing crashes with LayoutTransformControl in AOT publishing. #692

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
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

qian-o
Copy link

@qian-o qian-o commented May 26, 2025

Fixes #691

  1. Adjusted the use of Size.Empty in layout calculations. This property was set to negative infinity, which appeared to be the direct cause of the crash.
  2. Improved the TemplatePart attribute to ensure proper functionality after AOT publishing.

What is the current behavior?

  • After AOT publishing, LayoutTransformControl causes crashes.
  • PropertyChangeEventSource uses two-way binding between dependency properties to handle property changes.

What is the new behavior?

  • LayoutTransformControl no longer crashes after AOT publishing.
  • PropertyChangeEventSource now uses the RegisterPropertyChangedCallback method to register property change callbacks.

…y layout in layout calculations, and improve the TemplatePart attribute to ensure proper functionality after AOT publishing.
@qian-o
Copy link
Author

qian-o commented May 26, 2025

@dotnet-policy-service agree

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.

[WinUI3] LayoutTransformControl crashes when running in AOT mode.
1 participant