-
Notifications
You must be signed in to change notification settings - Fork 710
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
TreeView crash when too many TreeviewNode is expanded. #7618
Comments
WinUITreeviewErrors.zip |
yes, you are right.
the exception is issued by different class type of TreeViewItemViewModel, using abstract class inherit for specific tree node.
so, i use one class type of TreeViewItemViewModelBase, using TreeNodeType Enum to distinguish specific tree node.
now, the exception not occur again
----- 原始邮件 -----
发件人:Suriman ***@***.***>
收件人:microsoft/microsoft-ui-xaml ***@***.***>
抄送人:herolss ***@***.***>, Author ***@***.***>
主题:Re: [microsoft/microsoft-ui-xaml] TreeView crash when too many TreeviewNode is expanded. (Issue #7618)
日期:2023年02月07日 00点09分
The same happens to us. I post here a sample application and a picture with the exception. It seems like it is trying to reuse a node but if it was bound formerly to a specific viewmodel type, and later it is bound to another type, it still tries to cast the current viewmodel to the other one's type.
PD.- You get the exception right after starting the application.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
thanks for that.
----- 原始邮件 -----
发件人:ADD-Lorenzo-Martin ***@***.***>
收件人:microsoft/microsoft-ui-xaml ***@***.***>
抄送人:herolss ***@***.***>, Author ***@***.***>
主题:Re: [microsoft/microsoft-ui-xaml] TreeView crash when too many TreeviewNode is expanded. (Issue #7618)
日期:2023年02月07日 01点03分
WinUITreeviewErrors.zip
This is the sample application.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
You are welcome :) |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
For the ones navigating in this TreeView nightmare, refers to #8791. |
Describe the bug
using template Selector,Loaded about thousands Treeview Node。
System.ArgumentException
HResult=0x80070057
Message=Source object type is not a projected type and does not inherit from a projected type. Arg_ParamName_Name
Source=WinRT.Runtime
StackTrace:
在 WinRT.CastExtensions.GetRefForObject(Object value)
Steps to reproduce the bug
Expected behavior
No response
Screenshots
NuGet package version
1.1.4
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 21H2 (22000)
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: