Hi. I write WPF MVVM Prism 6 modular application where I try to use RadTreeView. I add items to RadTreeView through ObservableCollection (to which RadTreeView is bound) using the "Add" method of the collection. I begin to add items to root item of the tree. After completion of code of adding of a child item to tree root item the "+" appears on the left of this root item. When I click on this "+" by the mouse it turns into "-" but added item is not visible in the RadTreeView. Below is the complete code of the class representing the type of element added (as child) to the tree root item:
Below isProfileElementType base class. It is base for both Gruop and Register classes.
Below is definition of instance of group (root item element) in view model:
In my application I have two classes of tree nodes: "Group" and "Register". I won't show Register class definition (because I'm experimenting with Group class now) but ItemStyleSelector class is below:
Below is XAML of view in wich RadTreView is located (this XAML is shortened here in the post):
Below is RootHeader definition in the view model:
Below is HandleProfileElementSelectionCommand command method (though here it does not matter as it seems to me):
Below is command method for adding of new group:
Below is ProfileElement definition in the view model:
Below is command method for saving added Group instance in the RadTreeView:
As you can see adding to RadTreeView performs via ObservableCollection to which root node of RadTreeView is bound. Why added child element is not visible? Please help me to eliminate this error. In attach files there are solution structure (in Snapshot_10.png file), RadTreeView in collapsed status after adding the element (in Collapsed_Tree.png file) and RadTreeView in unwrapped status (in Unwrapped_Tree.png file). I hope for your help very much.