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.
Maintain Editor BackgroundColor when focused on UWP
- Loading branch information
1 parent
a7b30d8
commit 128a891
Showing
4 changed files
with
81 additions
and
9 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue13573.xaml
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,45 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<controls:TestContentPage | ||
xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:controls="clr-namespace:Xamarin.Forms.Controls" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:d="http://xamarin.com/schemas/2014/forms/design" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
x:Class="Xamarin.Forms.Controls.Issues.Issue13573" | ||
Title="Issue 13573" | ||
BackgroundColor="Black"> | ||
<ContentPage.Content> | ||
<StackLayout> | ||
<Label | ||
Padding="12" | ||
TextColor="White" | ||
Text="Put the focus on the Editor, if the background color remains white, the test has passed. "/> | ||
<StackLayout> | ||
<Label | ||
Text="Entry"/> | ||
<Entry | ||
Placeholder="Some long text, doesn't really matter" | ||
PlaceholderColor="Gray" | ||
VerticalOptions="Start" | ||
HorizontalOptions="FillAndExpand" | ||
MaxLength="4000" | ||
FontSize="12" | ||
BackgroundColor="White" | ||
TextColor="Black" /> | ||
<Label | ||
Text="Editor"/> | ||
<Editor | ||
Placeholder="Some long text, doesn't really matter" | ||
PlaceholderColor="Gray" | ||
VerticalOptions="Start" | ||
HorizontalOptions="FillAndExpand" | ||
MaxLength="4000" | ||
FontSize="12" | ||
HeightRequest="100" | ||
BackgroundColor="White" | ||
TextColor="Black" /> | ||
</StackLayout> | ||
</StackLayout> | ||
</ContentPage.Content> | ||
</controls:TestContentPage> |
24 changes: 24 additions & 0 deletions
24
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue13573.xaml.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,24 @@ | ||
using Xamarin.Forms.CustomAttributes; | ||
|
||
#if UITEST | ||
using Xamarin.Forms.Core.UITests; | ||
using Xamarin.UITest; | ||
using NUnit.Framework; | ||
#endif | ||
|
||
namespace Xamarin.Forms.Controls.Issues | ||
{ | ||
[Issue(IssueTracker.Github, 13573, "[Bug] Editor PlaceholderColor and BackgroundColor incorrect on UWP after upgrading to Xamarin.Forms 4.8 (from 4.5)", PlatformAffected.UWP)] | ||
public partial class Issue13573 : TestContentPage | ||
{ | ||
public Issue13573() | ||
{ | ||
#if APP | ||
InitializeComponent(); | ||
#endif | ||
} | ||
protected override void Init() | ||
{ | ||
} | ||
} | ||
} |
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