Skip to content

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

@Arlodotexe Arlodotexe self-requested a review June 5, 2025 16:32
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