Skip to content

StickyHeaderBehavior would not take effect in 7.0.0.preview5 if we switch NavigationView #3799

@zhuxb711

Description

@zhuxb711

Describe the bug

StickyHeaderBehavior would not take effect in 7.0.0.preview5 if we use ListView.HeaderTemplate to define the layout and set custom object to ListView.Header

  • Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:

Steps to Reproduce

  • Can this be reproduced in the Sample App? (Either in a sample as-is or with new XAML pasted in the editor.) If so, please provide custom XAML or steps to reproduce. If not, let us know why it can't be reproduced (e.g. more complex setup, environment, dependencies, etc...)

Steps to reproduce the behavior:

  1. Use HeaderTemplate, and set Header (some custion class object) in C#
  2. Header will not be sticky and will move with ListViewItems

Expected behavior

Header should be sticky

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

NuGet Package(s): 7.0.0 preview-5

Package Version(s): 

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [x] May 2020 Update (19041)
- [ ] Insider Build (build number: )

App min and target version:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [x] May 2019 Update (18362)
- [x] May 2020 Update (19041)
- [ ] Insider Build (xxxxx)

Device form factor:
- [x] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [ ] 2017 (version: )
- [x] 2019 (version: latest) 
- [ ] 2019 Preview (version: )

Metadata

Metadata

Assignees

Labels

feature request 📬A request for new changes to improve functionalityhelp wantedIssues identified as good community contribution opportunities

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions