Click here to Skip to main content
15,891,895 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
Hi,

I am using Presentation framework for UI in wpf and am getting error in
PresentationFramework dll on window.showdialog() method and my window is not null also .Even when I have already put a breakpoint before this line while debugging ,it is not stopping at the breakpoint but giving this error on showdialog.The details of error are provided below.Kindly help.

Source : PresentationFramework

Stack Trace:
at System.Windows.Automation.Peers.DataGridItemAutomationPeer..ctor(Object item, DataGridAutomationPeer dataGridPeer)
at System.Windows.Automation.Peers.DataGridAutomationPeer.CreateItemAutomationPeer(Object item)
at System.Windows.Automation.Peers.ItemsControlAutomationPeer.GetChildrenCore()
at System.Windows.Automation.Peers.DataGridAutomationPeer.GetChildrenCore()
at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
at System.Windows.Automation.Peers.AutomationPeer.GetChildren()
at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
at System.Windows.Automation.Peers.AutomationPeer.ValidateConnected(AutomationPeer connectedPeer)
at MS.Internal.Automation.ElementProxy.StaticWrap(AutomationPeer peer, AutomationPeer referencePeer)
at System.Windows.Automation.Peers.AutomationPeer.ProviderFromPeer(AutomationPeer peer)
Posted
Comments
Sergey Alexandrovich Kryukov 19-Dec-14 1:10am    
Just think at this: what's the use of showing exception stack without showing the code throwing the exception?
—SA
User-8870171 19-Dec-14 1:26am    
I have a class which is implementing InotifyPropertyChanged
in that I have a property where I am setting the following:

ModernHome home = new ModernHome();
home.ShowDialog();

The second line gives error after running for sometime when I click on the links in the left pane of the ModernUI dll from FirstFloor .Error is :
System.ArgumentNullException was unhandled
HResult=-2147467261
Message=Value cannot be null.
Parameter name: item
Source=PresentationFramework
ParamName=item
User-8870171 22-Dec-14 4:38am    
Anyway,I got the solution guys.
Ujwaliyer31 15-Jun-16 13:12pm    
pls update ur solution.. i am getting the same problem
Member 10759752 10-Sep-15 10:20am    
What was the solution? I am having the very same problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900