I think that this is a general question: I have a RadDocking with document host. Generally I can load many tab inside the panel, every tab has his viewmodel that it is an instance of the same class.
When I binding a control property to a viewmodel property I need to bind it to the correct instance.
Now I use binding in code behind using a variable index such as
pane.SetBinding(RadPane.HeaderProperty, new Binding() { Path = new($"MainVM.Partitions[{_vm.MainVM.PartitionAttiva.Partition.Id}]) });
My question is if is there a more standard method to achieve this goal
Thank you
Luigi
I am not familiar with your view models structure, the RadDocking setup and the exact expected result, so I can't give a very specific suggestion. However, you can take a peek at the PaneSource support and see if this is what you are looking for. If this doesn't help, you can share the beforementioned information, so I can see if I there is a more concrete idea that I can suggest.