Skip to content
Discussion options

You must be logged in to vote

Hey @Omega596,

You can do this by setting the RenderTransformOrigin and changing the RenderTransform of the element. Here is an example:

<Border Background="Red"
        Width="110"
        Height="110"
        Margin="0,20"
        RenderTransformOrigin="0.5,0.5">
   <Border.RenderTransform>
      <RotateTransform Angle="150" />
   </Border.RenderTransform>
   <TextBlock Text="Rotate"
              Foreground="White"
              FontWeight="Bold"
              HorizontalAlignment="Center"
              VerticalAlignment="Center" />
</Border>

You can also find a sample here: https://gallery.platform.uno/ > UI features > Transforms. I hope this helps.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by morning4coffe-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants