Skip to content

Conversation

joesdu
Copy link

@joesdu joesdu commented Aug 6, 2025

Pull request type

Please check the type of change your PR introduces:

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

Issue Number: # 1503

What is the new behavior?

Allows page scrolling to be disabled (use ui:NavigationView.IsScrollable="False"), allowing controls such as ListView and ListBox to automatically use the remaining space and display the scrollbar.

Other information

@Copilot Copilot AI review requested due to automatic review settings August 6, 2025 15:58
@joesdu joesdu requested a review from pomianowski as a code owner August 6, 2025 15:58
@github-actions github-actions bot added controls Changes to the appearance or logic of custom controls. styles Topic is related to styles PR Pull request navigation Changes to navigation related controls. gallery WPF UI Gallery dotnet release tray labels Aug 6, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements an attached property IsScrollable for NavigationView that allows disabling scrolling in the NavigationView content presenter. The feature addresses issue #1503 by providing developers control over whether page content should be scrollable within the NavigationView.

  • Added IsScrollable attached property to control content scrolling behavior
  • Enhanced NavigationView template parts to locate and manage the content ScrollViewer
  • Created demo page showing ListView with disabled NavigationView scrolling

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
NavigationViewContentPresenter.xaml Added x:Name to content ScrollViewer for programmatic access
NavigationView.TemplateParts.cs Added template part definition and logic to find content ScrollViewer
NavigationView.Navigation.cs Added scroll behavior update logic when navigating to new content
NavigationView.AttachedProperties.cs Implemented IsScrollable attached property definition
InternalNotifyIconManager.cs Updated context menu placement using SetCurrentValue
NotifyIcon.cs Enhanced DataContext handling for tray icon context menus
MainWindow.xaml.cs Added tray menu event handling functionality
ListViewScrollPage files Created demo page showcasing the new IsScrollable feature
MainWindowViewModel.cs Updated tray menu items with icons and enhanced structure
ListViewViewModel.cs Added big array generation for scroll testing

@joesdu joesdu changed the title enable ui:NavigationView.IsScrollable="False" Enable ui:NavigationView.IsScrollable="False" on Page Aug 7, 2025
@github-actions github-actions bot added the ⭐ top pull request Top pull request. label Aug 9, 2025
@github-actions github-actions bot mentioned this pull request Aug 9, 2025
joesdu and others added 3 commits August 11, 2025 09:22
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
controls Changes to the appearance or logic of custom controls. dotnet gallery WPF UI Gallery navigation Changes to navigation related controls. PR Pull request release ⭐ top pull request Top pull request. styles Topic is related to styles tray
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant