Я пытаюсь открыть всплывающее окно с помощью windows.ShowDialog(), но в этой строке во время выполнения возникло исключение. Я попробовал множество решений, доступных в Stack Overflow, но они не сработали.
at System.Windows.Controls.ItemCollection.VerifyRefreshNotDeferred()
at System.Windows.Controls.ItemCollection.get_Count()
at Xceed.Wpf.DataGrid.Automation.DataGridContextAutomationPeer.GetChildrenCore()
at Xceed.Wpf.DataGrid.Automation.DataGridControlAutomationPeer.GetChildrenCore()
at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
at System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32 invalidateLimit)
at System.Windows.Automation.Peers.AutomationPeer.UpdateChildren()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.ContextLayoutManager.fireAutomationEvents()
at System.Windows.ContextLayoutManager.UpdateLayout()
Я пытаюсь открыть всплывающее окно с помощью windows.ShowDialog(), но в этой строке во время выполнения возникло исключение. Я попробовал множество решений, доступных в Stack Overflow, но они не сработали. [code]at System.Windows.Controls.ItemCollection.VerifyRefreshNotDeferred() at System.Windows.Controls.ItemCollection.get_Count() at Xceed.Wpf.DataGrid.Automation.DataGridContextAutomationPeer.GetChildrenCore() at Xceed.Wpf.DataGrid.Automation.DataGridControlAutomationPeer.GetChildrenCore() at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren() at System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32 invalidateLimit) at System.Windows.Automation.Peers.AutomationPeer.UpdateChildren() at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree() at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree() at System.Windows.ContextLayoutManager.fireAutomationEvents() at System.Windows.ContextLayoutManager.UpdateLayout() [/code] В окне вывода: [img]https://i.sstatic.net/QIYXQXnZ.png[/img]