I am trying to produce a list of servers for browsing on a network such that it produces a tree view which looks like this:
-Local Server
- Endpoint 1
- En
Can't you just expose a new collection from your ViewModel that the tree can bind to?
Something like:
public Server LocalServer;
public ObservableCollection RemoteServers;
public IEnumerable ServerTree { return new[] { LocalServer, RemoteServers } }
After all your ViewModel is a ViewModel. It should be exposing exactly what is needed by the view.