Skip to content

[WinUI3] LayoutTransformControl crashes when running in AOT mode. #691

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
3 of 24 tasks
qian-o opened this issue May 26, 2025 · 0 comments · May be fixed by #692
Open
3 of 24 tasks

[WinUI3] LayoutTransformControl crashes when running in AOT mode. #691

qian-o opened this issue May 26, 2025 · 0 comments · May be fixed by #692
Assignees
Labels
bug Something isn't working nativeaot The dependency on dotnet NativeAOT

Comments

@qian-o
Copy link

qian-o commented May 26, 2025

Describe the bug

When using LayoutTransformControl, running the application after publishing with AOT results in a crash. I will provide a simple WinUI sample program.

You can copy the following code into a test project, publish it, and then run the application.

<controls:LayoutTransformControl>
    <controls:LayoutTransformControl.Transform>
        <RotateTransform x:Name="Rotate" />
    </controls:LayoutTransformControl.Transform>

    <Border Width="20"
            Height="100"
            Background="Green"
            BorderBrush="Black"
            BorderThickness="1" />
</controls:LayoutTransformControl>
public double Angle { get => Rotate.Angle; set => Rotate.Angle = value; }

Expected behavior

Run the AOT published version normally.

Screenshots

No response

Code Platform

  • UWP
  • WinAppSDK / WinUI 3
  • Web Assembly (WASM)
  • Android
  • iOS
  • MacOS
  • Linux / GTK

Windows Build Number

  • Windows 10 1809 (Build 17763)
  • Windows 10 1903 (Build 18362)
  • Windows 10 1909 (Build 18363)
  • Windows 10 2004 (Build 19041)
  • Windows 10 20H2 (Build 19042)
  • Windows 10 21H1 (Build 19043)
  • Windows 10 21H2 (Build 19044)
  • Windows 10 22H2 (Build 19045)
  • Windows 11 21H2 (Build 22000)
  • Other (specify)

Other Windows Build number

No response

App minimum and target SDK version

  • Windows 10, version 1809 (Build 17763)
  • Windows 10, version 1903 (Build 18362)
  • Windows 10, version 1909 (Build 18363)
  • Windows 10, version 2004 (Build 19041)
  • Windows 10, version 2104 (Build 20348)
  • Windows 11, version 22H2 (Build 22000)
  • Other (specify)

Other SDK version

No response

Visual Studio Version

2022

Visual Studio Build Number

17.14.2

Device form factor

Desktop

Additional context

App1.zip

Help us help you

Yes, I'd like to be assigned to work on this item.

@Arlodotexe Arlodotexe added bug Something isn't working nativeaot The dependency on dotnet NativeAOT labels Jun 5, 2025
@Arlodotexe Arlodotexe self-assigned this Jun 5, 2025
@Arlodotexe Arlodotexe moved this to 🆕 New in Toolkit 8.x Jun 5, 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 nativeaot The dependency on dotnet NativeAOT
Projects
Status: 🆕 New
Development

Successfully merging a pull request may close this issue.

2 participants