dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.28k stars 1.76k forks source link

CollectionView: Header, Footer, and Empty View Missing When Using it as Templates; Footer Moves to Bottom when Empty View is Enabled #24968

Open praveenkumarkarunanithi opened 2 months ago

praveenkumarkarunanithi commented 2 months ago

Description

When using templates in the CollectionView, the header, footer, and empty view are not displayed as expected. when using header, footer, empty as views the footer moves to the bottom of the page, and the header overlaps with the empty view in windows platform.

This issue is a sub-issue of https://github.com/dotnet/maui/issues/11896. It focuses on the specific problem in windows platform.

Steps to Reproduce

  1. Create a maui app with a collectionview
  2. Define header/footer/emptyview as templates
  3. with empty view template observe what happens in view. The Empty view, Header and Footer all are missing.

Link to public reproduction project repository

https://github.com/tranb3r/Issues/tree/main/MauiAppCollectionViewHeaderOrEmpty

Version with bug

9.0.0-rc.1.24453.9

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

similar-issues-ai[bot] commented 2 months ago

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by šŸ‘ or šŸ‘Ž this comment.

Zhanglirong-Winnie commented 1 month ago

This issue has been verified using Visual Studio 17.12.0 Preview 2.1(8.0.91 & 9.0.0-rc.1.24453.9). Can repro this issue on windows platform.