Skip to content

Commit 3377c8d

Browse files
committed
Removed unwanted changes and updated screenshot
1 parent c363566 commit 3377c8d

File tree

5 files changed

+18
-9
lines changed

5 files changed

+18
-9
lines changed
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
namespace Maui.Controls.Sample;
1+
using System.Collections.ObjectModel;
2+
3+
namespace Maui.Controls.Sample;
24

35
public partial class MainPage : ContentPage
46
{
57
public MainPage()
68
{
79
InitializeComponent();
810
}
11+
}
12+
public class CollectionViewViewModel
13+
{
14+
public ObservableCollection<string> ItemList { get; set; }
15+
16+
public CollectionViewViewModel()
17+
{
18+
ItemList = new ObservableCollection<string>();
19+
}
920
}

src/Controls/src/Core/Handlers/Items/iOS/StructuredItemsViewController.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,6 @@ internal void UpdateFooterView()
9595
UpdateHeaderFooterPosition();
9696
}
9797

98-
// private protected override void LayoutSupplementaryViews()
99-
// {
100-
// base.LayoutSupplementaryViews();
101-
// UpdateHeaderFooterPosition();
102-
// }
10398
internal void UpdateHeaderView()
10499
{
105100
UpdateSubview(ItemsView?.Header, ItemsView?.HeaderTemplate, HeaderTag,

src/Controls/tests/TestCases.HostApp/Issues/Issue28604.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ public Issue28604()
1818
AutomationId = "CollectionView",
1919
ItemsSource = ViewModel.ItemList,
2020
EmptyView = "EmptyView",
21-
Header = new StackLayout
21+
Background = Colors.AliceBlue,
22+
Header = new VerticalStackLayout
2223
{
2324
BackgroundColor = Colors.Red,
2425
Children =
@@ -30,7 +31,7 @@ public Issue28604()
3031
}
3132
}
3233
},
33-
Footer = new StackLayout
34+
Footer = new VerticalStackLayout
3435
{
3536
BackgroundColor = Colors.Yellow,
3637
Children =

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue28604.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if IOS || MACCATALYST
12
using NUnit.Framework;
23
using UITest.Appium;
34
using UITest.Core;
@@ -18,4 +19,5 @@ public void FooterShouldDisplayAtBottomOfEmptyView()
1819
App.WaitForElement("CollectionView");
1920
VerifyScreenshot();
2021
}
21-
}
22+
}
23+
#endif
9.26 KB
Loading

0 commit comments

Comments
 (0)