This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [iOS] Fix BackgroundColor issue with Frame (#11032) * Fixed regression issue with Frame * Removed wrong set of BackgroundColor to null * Fix FrameRenderer background; Make Frame CornerRadius test actually count; Fix Frame BackgroundColor consistency test; * Make the radius bigger to get the shadow out of the way Co-authored-by: E.Z. Hart <[email protected]> fixes #11031 * Remove ignore attribute now that 9625 is fixed Co-authored-by: Javier Suárez <[email protected]> Co-authored-by: E.Z. Hart <[email protected]>
- Loading branch information
1 parent
474d348
commit 1c5aec6
Showing
5 changed files
with
63 additions
and
5 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue11031.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using Xamarin.Forms.CustomAttributes; | ||
using Xamarin.Forms.Internals; | ||
|
||
#if UITEST | ||
using Xamarin.UITest; | ||
using NUnit.Framework; | ||
using Xamarin.Forms.Core.UITests; | ||
#endif | ||
|
||
namespace Xamarin.Forms.Controls.Issues | ||
{ | ||
#if UITEST | ||
[Category(UITestCategories.Frame)] | ||
#endif | ||
[Preserve(AllMembers = true)] | ||
[Issue(IssueTracker.Github, 11031, | ||
"[Bug] Regression in 4.7-pre4: Frames are broken", | ||
PlatformAffected.Android)] | ||
public class Issue11031 : TestContentPage | ||
{ | ||
public Issue11031() | ||
{ | ||
} | ||
|
||
protected override void Init() | ||
{ | ||
Title = "Issue 11031"; | ||
|
||
var layout = new StackLayout(); | ||
|
||
var frame = new Frame | ||
{ | ||
BackgroundColor = Color.Red, | ||
BorderColor = Color.Black, | ||
CornerRadius = 24, | ||
Margin = 12 | ||
}; | ||
|
||
var label = new Label | ||
{ | ||
HorizontalTextAlignment = TextAlignment.Center, | ||
TextColor = Color.White, | ||
Text = "Issue 11031" | ||
}; | ||
|
||
frame.Content = label; | ||
|
||
layout.Children.Add(frame); | ||
|
||
Content = layout; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters