forked from dotnet/maui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed the picker title's color (dotnet#16737)
- Loading branch information
Showing
4 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/Controls/tests/TestCases.HostApp/Issues/Issues16737.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,20 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="Maui.Controls.Sample.Issues.Issue16737"> | ||
<VerticalStackLayout> | ||
<Label Text="Picker test"/> | ||
<Picker | ||
AutomationId="picker" | ||
Title="Select something" | ||
TitleColor="Red" | ||
TextColor="Red"> | ||
<Picker.ItemsSource> | ||
<x:Array Type="{x:Type x:String}"> | ||
<x:String>Maui</x:String> | ||
<x:String>Maui</x:String> | ||
</x:Array> | ||
</Picker.ItemsSource> | ||
</Picker> | ||
</VerticalStackLayout> | ||
</ContentPage> |
15 changes: 15 additions & 0 deletions
15
src/Controls/tests/TestCases.HostApp/Issues/Issues16737.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,15 @@ | ||
using Microsoft.Maui.Controls; | ||
using Microsoft.Maui.Controls.Xaml; | ||
|
||
namespace Maui.Controls.Sample.Issues | ||
{ | ||
[XamlCompilation(XamlCompilationOptions.Compile)] | ||
[Issue(IssueTracker.Github, 16737, "Title colour on Android Picker, initially appears grey", PlatformAffected.All)] | ||
public partial class Issue16737 : ContentPage | ||
{ | ||
public Issue16737() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue16737.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,25 @@ | ||
#if ANDROID | ||
using NUnit.Framework; | ||
using NUnit.Framework.Legacy; | ||
using UITest.Appium; | ||
using UITest.Core; | ||
|
||
namespace Microsoft.Maui.TestCases.Tests.Issues | ||
{ | ||
public class Issue16737 : _IssuesUITest | ||
{ | ||
public Issue16737(TestDevice device) : base(device) { } | ||
|
||
public override string Issue => "Title colour on Android Picker, initially appears grey"; | ||
|
||
[Test] | ||
public void Issue16737Test() | ||
{ | ||
_ = App.WaitForElement("picker"); | ||
|
||
// The test passes if the title's color is red | ||
VerifyScreenshot(); | ||
} | ||
} | ||
} | ||
#endif |
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