Skip to content

Rotation property of control inside a Border is not working on Windows.Β #15772

Open
@ChiNoel-osu

Description

Description

I just started to learn MAUI, formerly uses WPF, so correct me if I did things wrong.

So something like this doesn't work on Windows:

<Border Stroke="MediumPurple" StrokeThickness="5">
	<Border Stroke="White"
		StrokeThickness="2"
		HeightRequest="200"
		WidthRequest="200"
		Rotation="45"> <!--The Rotation property will not be applied when deploying to Windows-->
		<Border.GestureRecognizers>
			<!--Can I have a hold gesture please. I need something like a MouseDown equivalent.-->
		</Border.GestureRecognizers>
	</Border>
</Border>

But when I changed the number and hot reload it while it's running, it will be rotated as normal.

However on Android, everything worked out well. Here're screenshots of the same app on Windows and on Android:
Windows Android

Steps to Reproduce

  1. Create a new MAUI project.
  2. Put a Border in a Border in the MainPage.
  3. Apply Rotation property to the inner border.
  4. Compile & Observe.

Link to public reproduction project repository

https://github.com/ChiNoel-osu/BorderInBorderBug

Version with bug

7.0.86

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 10.0.19041.0

Did you find any workaround?

Put it outside

<Grid>
	<Border Stroke="MediumPurple"
		StrokeThickness="5" />
	<Border Stroke="White"
		StrokeThickness="2"
		HeightRequest="200"
		WidthRequest="200"
		Rotation="45" />
</Grid>

Relevant log output

No response

Metadata

Assignees

No one assigned

    Labels

    area-animationAnimation, Transitions, Transformsarea-drawingShapes, Borders, Shadows, Graphics, BoxView, custom drawingplatform/windows πŸͺŸs/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions