Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Validate issue 14433 (#14576)
Browse files Browse the repository at this point in the history
* Added repro sample

* Updated sample

Co-authored-by: Gerald Versluis <[email protected]>
  • Loading branch information
jsuarezruiz and jfversluis authored Sep 8, 2021
1 parent 1de8909 commit 75be615
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8" ?>
<local:TestContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
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"
Title="Test 14433" xmlns:local="using:Xamarin.Forms.Controls"
x:Class="Xamarin.Forms.Controls.Issues.Issue14433"
BackgroundColor="Yellow">
<StackLayout>
<Label
Padding="12"
BackgroundColor="Black"
TextColor="White"
Text="If gradient renders correctly, the test has passed."/>
<Frame
InputTransparent="True"
VerticalOptions="End"
HeightRequest="57"
Padding="0"
CornerRadius="0"
HasShadow="False"
Opacity="0.8">
<Frame.Background>
<LinearGradientBrush
StartPoint="0.0, 0"
EndPoint="1.0, 0">
<GradientStop
Color="#00FF0000"
Offset="0" />
<GradientStop
Color="#00FF00"
Offset="1" />
</LinearGradientBrush>
</Frame.Background>
</Frame>
</StackLayout>
</local:TestContentPage>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
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
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Github, 14433,
"[Bug] LinearGradientBrush Background with alpha channel color don't works",
PlatformAffected.iOS)]
public partial class Issue14433 : TestContentPage
{
public Issue14433()
{
#if APP
InitializeComponent();
#endif
}

protected override void Init()
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1764,6 +1764,7 @@
<Compile Include="$(MSBuildThisFileDirectory)Issue13684.xaml.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue12300.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue12150.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue14433.xaml.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue12590.xaml.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue13726.xaml.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue11795.xaml.cs" />
Expand Down Expand Up @@ -2202,6 +2203,9 @@
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Issue13684.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Issue14433.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Issue12590.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
Expand Down

0 comments on commit 75be615

Please sign in to comment.