Skip to content

AOT throws exception when using the custom control #10409

@sudharsan-narayanan

Description

@sudharsan-narayanan

Describe the bug

Hi Team,

I have prepared the sample with the custom control by using the AOT support. In Custom sample, I have used the ComboBox ItemsSource and assigned the Observerable String to ItemsSource. So, When AOT is enable, it throws exception when it is empty or assigned any items to ItemsSource.

Please find the image below,

Image

Attached the sample and exception below,

Image

CustomSampleAOT.zip

Steps to reproduce the bug

  1. Open the Sample.
  2. Ensure the AOT is enabled in the project.
  3. Now, run the sample.
  4. Note: Exception is thrown in AOT sample.

Expected behavior

Sample should run smoothly without any issue.

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.6.5: 1.6.250205002

Windows version

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions