[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.

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,762 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
{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.