Closed
Description
Describe the bug
My Project uses Microsoft.WindowsAppSDK 1.4 and the new ItemsView Control.
When adding the CommunityToolkit.WinUI.Controls.SettingsControls (8.0.230907) package as new dependency the working ItemsView does not longer initialize. It crashes with:
WinUi3Test.exe: WinRT originate error - 0x802B000A : 'Failed to assign to property Microsoft.UI.Xaml.Controls.ItemsRepeater.ItemTransitionProvider'
Steps to reproduce
- Use a new ItemsView Control in Windows App SDK 1.4 (1.4.230822000) application.
- bind to an ItemsSource and test correct behavior.
- add reference to CommunityToolkit.WinUI.Controls.SettingsControls (8.0.230907)
- rebuild solution
- Retest -> ItemsView crashes with above error message.
see also: microsoft/microsoft-ui-xaml#8810
see this repo for reproducing the crash: https://github.com/RobertK66/SettingsExpanderExample/tree/issue/sdk_8810
Expected behavior
ItemsView should work as before adding reference.
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
Windows 11 Pro 22H2 22621.2134
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
No response
Device form factor
Desktop
Additional context
I found a fix/workaround by manually adding the CommunityToolkit.WinUI.Controls.Segmented package !
it seems there is a unwanted/unsatisfied transient dependency here ...
Help us help you
Yes, but only if others can assist.
Metadata
Metadata
Assignees
Type
Projects
Status
✅ Done