I have a WPF application that includes a TreeView. The user adds content to the tree using right click and context menu. This creates a new TreeViewItem that is added to the tree's ItemCollection.
The problem is that sometimes the new items are not shown, although they were added. If you minimize/maximize the window they suddenly appear. I tried to call TreeView.UpdateLayout() after the addition of the new item, but the result is the same.
Any suggestions?