Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions src/Controls/tests/TestCases.HostApp/Issues/Issue19338.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?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.Issue19338">
<StackLayout>
<CollectionView
x:Name="CV"
HeightRequest="300"
Margin="0,50,0,0">
<CollectionView.Header>
<Border BackgroundColor="Red">
<Label
FontSize="16"
AutomationId="HeaderLabel"
HorizontalTextAlignment="Center"
Text="(Header) This is a border with shadows">
</Label>
<Border.Shadow>
<Shadow
Brush="Green"
Radius="4"
Offset="0,4"/>
</Border.Shadow>
</Border>
</CollectionView.Header>
<CollectionView.Footer>
<Label
FontSize="16"
HorizontalTextAlignment="Center"
Text="(Footer) This is a label with shadows">
<Label.Shadow>
<Shadow
Brush="Green"
Radius="4"
Offset="0,4"/>
</Label.Shadow>
</Label>
</CollectionView.Footer>
</CollectionView>
</StackLayout>
</ContentPage>
11 changes: 11 additions & 0 deletions src/Controls/tests/TestCases.HostApp/Issues/Issue19338.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace Maui.Controls.Sample.Issues;

[XamlCompilation(XamlCompilationOptions.Compile)]
[Issue(IssueTracker.Github, 19338, "Border.Shadow hide the collectionView Header", PlatformAffected.iOS)]
public partial class Issue19338 : ContentPage
{
public Issue19338()
{
InitializeComponent();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

namespace Microsoft.Maui.TestCases.Tests.Issues
{
public class Issue19338 : _IssuesUITest
{
public Issue19338(TestDevice testDevice) : base(testDevice)
{
}

public override string Issue => "Border.Shadow hide the collectionView Header";

[Test]
[Category(UITestCategories.CollectionView)]
public void HeaderAndFooterShouldBeVisible()
{
App.WaitForElement("HeaderLabel");
VerifyScreenshot();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Snapshots available in the latest build:
image
Could you commit the images?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to add margin to the collection, so I need to re-upload screenshots
HeaderAndFooterShouldBeVisible

}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.