Hello! I am developing a program in which the user can connect to a specific client (the same program) on a local network or via the Internet and upload his files or download existing ones. The list of clients is displayed using the ListBox. In the program, it looks like this: in MainViewModel there is an ObservableCollection of elements of type RemoteClientViewModel associated with a ListBox. The RemoteClientViewModel in turn is a ViewModel for the RemoteClient model class . View in this case is an item of the ListBox list. The window also has a ListView for displaying a list of remote client files. And in the RemoteClientViewModel class , in theory, there should be a collection with information about these files: size, type, change date, and so on.
The question is how to connect this collection to the ListView? Provided that this collection itself will be located in an instance of the RemoteClientViewModel class. And it in turn in the collection, which is the data source for the ListBox and is in the MainViewModel.