I am using WPF and I have a problem with prototyping. I have a docked panel (not WPF, I just checked my control inside). And when the user wants to dock this panel to the left or right of the screen, I will need to configure my controls in one way. But when the user wants to dock this panel up or down, I need to expand my controls in a different way.
My question is the best way to implement the dynamic layout of WPF controls, which depends on some conditions?
I understand that I can use the grid and dynamically change the position of my controls inside the grid. But I am not very happy with this decision. I am looking for a solution without code intervention, only for xaml. And in case this is impossible, at least with minimal interference with the code.
Thanks in advance.
source share