c# - WPF System.ComponentModel.Win32Exception (0x80004005): Invalid window handle -
i'm getting following error on wpf. i'm using mvvm databinding datacontext + collectionviewsources on window. there code in view model , view post, i'm wondering find no line number comes up.
the window using wpf databinding converters, telerik controls in there also.
this after calling
tabitemselectioneditor.updatelayout()
tabitemselectioneditor system.windows.control.tabitem
system.componentmodel.win32exception (0x80004005): invalid window handle
at ms.win32.unsafenativemethods.getwindowtext(handleref hwnd, stringbuilder lpstring, int32 nmaxcount)
at system.windows.automation.peers.windowautomationpeer.getnamecore()
at system.windows.automation.peers.automationpeer.updatesubtree()
at system.windows.contextlayoutmanager.fireautomationevents()
at system.windows.contextlayoutmanager.updatelayout()
at system.windows.uielement.updatelayout()
at system.windows.controls.virtualizingstackpanel.<>c_displayclassb.b_7()
at system.windows.threading.exceptionwrapper.internalrealcall(delegate callback, object args, int32 numargs)
at ms.internal.threading.exceptionfilterhelper.trycatchwhen(object source, delegate method, object args, int32 numargs, delegate catchhandler)
inner exception nothing!
do not have displayclass
method in code?
i can see there virtualizingstackpanel
involved , error occurred when called uielement.updatelayout()
method on children.
that's can work out error , without more information, can't further.
Comments
Post a Comment