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

Compatibility issue with CustomControls compiled against WinAppSDK 1.3 #8962

Closed
RobertK66 opened this issue Oct 10, 2023 · 0 comments
Closed
Labels
area-ItemsRepeater bug Something isn't working closed-Duplicate Described behavior is already captured by another issue. team-Controls Issue for the Controls team

Comments

@RobertK66
Copy link

Describe the bug

If you (only) reference a WinSDK 1.3 compiled DLL with CustomControl(s) where the Resources dictionary makes use of an ItemsRepeater in its Generic.xaml then a working WinSDK 1.4 App can(!) crash with:

WinRT information: Failed to assign to property 'Microsoft.UI.Xaml.Controls.ItemsRepeater.ItemTransitionProvider'. [Line: 0 Position: 0]

See: https://github.com/RobertK66/WinUi3

In this example repos you can avoid the crash by simply renaming the 'AClassLibrary' project to 'ZClassLibrary'!
It seems that the first DLL loading its resources determines the version of the ItemsRepeater class used!? When the 1.4 App tries to initialize its ItemsRepeater it can not load the 1.4 introduced Property 'ItemTransitionProvider'!

Steps to reproduce the bug

  • Make new Solution
  • Make App using WinAppSDK 1.4.230913002
  • Use some Component with an ItemsRepeater (e.g. ItemsView)

Run and test the App to work properly

  • Add a CustomComponent Library named 'AClassLibrary'!
    (keep the library at using WinAppSDK version 1.3.230724000!)
  • write some Style using a ItemsRepeater in its TemplateSetter-Template

Recompile solution -> App crashes with above Error.

Expected behavior

It should be possible to use CustomComponents compiled against prior versions without side effects.
See also CommunityToolkit/Windows#234 (comment)

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.4.1: 1.4.230913002

Windows version

Windows 11 (22H2): Build 22621

Additional context

Note: This is a duplicate of #8810
I did not know how to 'bump this up'.
I think in its generic form this points to some more serious issues and should be investigated ....

@RobertK66 RobertK66 added the bug Something isn't working label Oct 10, 2023
@codendone codendone added area-ItemsRepeater team-Controls Issue for the Controls team labels Oct 17, 2023
@llongley llongley closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2023
@llongley llongley added the closed-Duplicate Described behavior is already captured by another issue. label Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-ItemsRepeater bug Something isn't working closed-Duplicate Described behavior is already captured by another issue. team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

3 participants