dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.03k stars 1.73k forks source link

Button control: inconsistent border visibility behaviour iOS vs Android when BackgroundColor is Transparent (also with respect to Xamarin.Forms) #24864

Open inimirpaz opened 4 days ago

inimirpaz commented 4 days ago

Description

(see repo) <Button BorderWidth="1" BackgroundColor="Transparent" TextColor="White" Text="Hello World" Margin="10" /> Android (which was the expected behavior in Xamarin.Forms for both Android and iOS) vs iOS Screenshot 2024-09-23 alle 09 54 14

Is it a bug in iOS? If not, which behavior is to be expected to be the default in .NET MAUI?

Steps to Reproduce

No response

Link to public reproduction project repository

https://github.com/inimirpaz/maui_issues/tree/button_border_issue

Version with bug

8.0.90 SR9

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

github-actions[bot] commented 4 days ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

ninachen03 commented 3 days ago

This issue has been verified using Visual Studio 17.12.0 Preview 2.0(8.0.90 & 8.0.3). Can repro this issue. but not repro in 17.11.4 NET7 (7.0.101)