[WPF - MVVM - Caliburn.Micro] How can I manipulate the location of my controls?

Fares, Mario 1 Reputation point
2022-07-22T21:05:27.993+00:00

I'm using WPF, and MVVM with Caliburn Micro (for the first time).

My UI has 2 textboxes that look like this:
![223904-image.png]2

Well, each is actually a Dock panel that contains another Dock panel (black thing) and the actual textbox.

Originally, I had 2 function like so:
223905-image.png

They are supposed to switch the orientation of the Textboxes b/w horizontal and vertical. I made these functions when I wasn't using MVVM. Now that I am, I don't know how to go on about doing this.

Developer technologies | Windows Presentation Foundation
Developer technologies | XAML
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.