Skip to content
Open
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [55.3.1]
- [SearchPage][Android] Fix bug where `ScrollableHeader` were not added.

## [55.3.0]
- [SearchPage] Added `ScrollableHeader` property to allow consumers to provide a header that scrolls with search results.
- [SearchPage] Replaced `OnLoaded`/`OnUnloaded` event subscriptions with `OnHandlerChanged` override.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public SearchPage()
AutomationId = "ResultCollectionView".ToDUIAutomationId<SearchPage>(),
HeaderTemplate = new DataTemplate(() => new Grid { Padding = new Thickness(0, Sizes.GetSize(SizeName.content_margin_large), 0, 0) })
};

m_resultCollectionView.SetBinding(StructuredItemsView.HeaderProperty, static (SearchPage searchPage) => searchPage.BindingContext, source: this);

m_resultCollectionView.Scrolled += OnCollectionViewScrolled;
m_resultCollectionView.SetBinding(ItemsView.ItemTemplateProperty, static (SearchPage searchPage) => searchPage.ResultItemTemplate, source: this);
Expand Down Expand Up @@ -258,7 +260,7 @@ private void OnSearchModeChanged()

private void OnScrollableHeaderChanged()
{
m_resultCollectionView.Header = ScrollableHeader;
m_resultCollectionView.HeaderTemplate = new DataTemplate(() => ScrollableHeader);
}
Comment on lines 261 to 264

private void OnFooterViewChanged()
Expand Down
Loading