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

[Windows] Exception while using VirtualListView in a MCT Popup #25

Open
GuidoNeele opened this issue Feb 8, 2024 · 0 comments
Open

Comments

@GuidoNeele
Copy link

Hi @Redth,

First off, I really like the project and the thought behind it, I think it has a lot of potential to replace the default CollectionView and ListView in .NET MAUI. I wanted to use VLV in our own project but ran into an issue while using it in a MAUI Community Toolkit Popup. Tried it on Windows and Android and the exception only occurred on Windows. I tried debugging this issue myself and searched for similar issues with WinUI, and did find something (microsoft/microsoft-ui-xaml#428) that resembles this issue, but couldn't figure out a solution to this problem.

Exception:
Exception thrown: 'System.Runtime.InteropServices.COMException' in System.Private.CoreLib.dll
WinRT information: Element is already the child of another element.
An exception of type 'System.Runtime.InteropServices.COMException' occurred in System.Private.CoreLib.dll but was not handled in user code
WinRT information: Element is already the child of another element.
No installed components were detected.

Element is already the child of another element.

Sample repository:
I forked your repository and added MCT and a sample popup to the sample project. If you run it on Windows you will run into the issue when opening the popup from the MainPage.
https://github.com/GuidoNeele/Maui.VirtualListView

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

1 participant