Skip to content
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

AOT throws exception when using the custom control #1886

Open
sudharsan-narayanan opened this issue Dec 12, 2024 · 1 comment
Open

AOT throws exception when using the custom control #1886

sudharsan-narayanan opened this issue Dec 12, 2024 · 1 comment

Comments

@sudharsan-narayanan
Copy link

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

Windows App SDK 1.6.3: 1.6.241114003

Packaging type

Packaged (MSIX)

Windows version

No response

IDE

Visual Studio 2022

Additional context

No response

@RDMacLachlan RDMacLachlan transferred this issue from microsoft/WindowsAppSDK Dec 12, 2024
@Sergio0694
Copy link
Member

What's the returned value from InnerItemsSource if you try to read it back?

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

No branches or pull requests

2 participants