Rotation property of control inside a Border is not working on Windows.Β #15772
Open
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:
Steps to Reproduce
- Create a new MAUI project.
- Put a Border in a Border in the MainPage.
- Apply Rotation property to the inner border.
- 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