Greetings I want to make such an application in Visual Studio where TreeListControl (DevExpress) would always reside to the left. There is no other usual TreeView in DevExpress (seemingly). And on the right there was an area that would change (the page or panel would change) when selecting any node (item) from the treeview. And still this page could contain any controls, and any logic was carried out. This is how the web application interface for configuring network devices.

Here prompt, in this connection, what controls here should be used with reference to DevExpress (it is desirable).

    1 answer 1

    It's simple.

    In View, put in the 0th column the Grid 'a TreeListControl , in the 1st control, displaying the node with details.

    In your VM, you need to pry a TreeListControl.SelectedItem on a property (for example) CurrentItem . And DataContext from the first column View on the same CurrentItem .

    If your nodes are of different types, instead of the control in the first column, you need a ContentPresenter + DataTemplate set.

    • I, probably, will understand it all as you explained, but not now ..) Grid-it will be in my area to the right (large), where I will have controls with different logic? In the same place, depending on which node or subnode I click (select), then on the Grid, that the picture on the right should change .. (I want it) - vlazarev
    • @vlazarev: Not-not, the Grid contains both a TreeView (in the 0th column) and an area with controls (in the 1st column). - VladD
    • Everything! introduced as it should be! And in the Grid, you can generally want to invest. Thank! - vlazarev