Compatibility issue with CustomControls compiled against WinAppSDK 1.3 #8962
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
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
Run and test the App to work properly
(keep the library at using WinAppSDK version 1.3.230724000!)
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 ....
The text was updated successfully, but these errors were encountered: