Hello,
Welcome to Microsoft Q&A,
Assigning value to UIElement.Rotation
in the code can implement control rotation.
Alternatively, you can also use UIElement.RenderTransform
property and RotateTransform class in XAML to complete the rotation. For example,
<TextBlock.RenderTransform>
<RotateTransform Angle="40" />
</TextBlock.RenderTransform>
Note, these two properties cannot be used at the same time.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.